summaryrefslogtreecommitdiff
path: root/nova/virt/libvirt/volume/iscsi.py
diff options
context:
space:
mode:
authorLee Yarwood <lyarwood@redhat.com>2021-03-12 13:20:31 +0000
committerLee Yarwood <lyarwood@redhat.com>2021-12-03 12:07:02 +0000
commitfcbba7d2ae6d7c11d85cdcc53b79a12d64aca0ca (patch)
tree69ba54cdb6a51100cda9cf26f7eeb014988bf683 /nova/virt/libvirt/volume/iscsi.py
parent7670303aabe16d1d7c25e411d7bd413aee7fdcf3 (diff)
downloadnova-fcbba7d2ae6d7c11d85cdcc53b79a12d64aca0ca.tar.gz
libvirt: Ensure all volume drivers log the instance whenever possible
This trivial change ensures the instance is logged within the volume drivers whenever possible to ease debugging. Change-Id: Ib61ba7266ad58b311adcac566a96149839cb688e
Diffstat (limited to 'nova/virt/libvirt/volume/iscsi.py')
-rw-r--r--nova/virt/libvirt/volume/iscsi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/libvirt/volume/iscsi.py b/nova/virt/libvirt/volume/iscsi.py
index ff7b6b8022..564bac14cc 100644
--- a/nova/virt/libvirt/volume/iscsi.py
+++ b/nova/virt/libvirt/volume/iscsi.py
@@ -60,9 +60,9 @@ class LibvirtISCSIVolumeDriver(libvirt_volume.LibvirtBaseVolumeDriver):
def connect_volume(self, connection_info, instance):
"""Attach the volume to instance_name."""
- LOG.debug("Calling os-brick to attach iSCSI Volume")
+ LOG.debug("Calling os-brick to attach iSCSI Volume", instance=instance)
device_info = self.connector.connect_volume(connection_info['data'])
- LOG.debug("Attached iSCSI volume %s", device_info)
+ LOG.debug("Attached iSCSI volume %s", device_info, instance=instance)
connection_info['data']['device_path'] = device_info['path']