summaryrefslogtreecommitdiff
path: root/nova/virt/libvirt/volume
diff options
context:
space:
mode:
authorMark Mielke <mark.mielke@gmail.com>2021-07-15 18:34:36 -0400
committerMark Mielke <mark.mielke@gmail.com>2021-07-15 18:45:54 -0400
commitad60f23be3d562422b350aade04aa92ade39fb32 (patch)
tree0fd9fff4371621834858e330c855395e3f3e03e0 /nova/virt/libvirt/volume
parent3545356ae3a719442833cb8c3c911408d4bd3c15 (diff)
downloadnova-ad60f23be3d562422b350aade04aa92ade39fb32.tar.gz
extend_volume of libvirt/volume/iscsi should not use device_path
The connection_info['data']['device_path'] field is not always available. In cases that it was not available, it would cause the debug code to raise a KeyError instead of proceeding. Other similar debug messages in the same file do not include device_path. As a simple fix, just drop the device_path from the log. Closes-Bug: #1936439 Change-Id: Id0539d2ee909d86ffef07ae566697db8ae0f83b4 Signed-off-by: Mark Mielke <mark.mielke@gmail.com>
Diffstat (limited to 'nova/virt/libvirt/volume')
-rw-r--r--nova/virt/libvirt/volume/iscsi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/virt/libvirt/volume/iscsi.py b/nova/virt/libvirt/volume/iscsi.py
index 9eb08b0a90..ff7b6b8022 100644
--- a/nova/virt/libvirt/volume/iscsi.py
+++ b/nova/virt/libvirt/volume/iscsi.py
@@ -84,7 +84,6 @@ class LibvirtISCSIVolumeDriver(libvirt_volume.LibvirtBaseVolumeDriver):
"""Extend the volume."""
LOG.debug("calling os-brick to extend iSCSI Volume", instance=instance)
new_size = self.connector.extend_volume(connection_info['data'])
- LOG.debug("Extend iSCSI Volume %s; new_size=%s",
- connection_info['data']['device_path'],
+ LOG.debug("Extend iSCSI Volume: new_size=%s",
new_size, instance=instance)
return new_size