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 <email address hidden>
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /801003 /opendev. org/openstack/ nova/commit/ ad60f23be3d5624 22b350aade04aa9 2ade39fb32
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit ad60f23be3d5624 22b350aade04aa9 2ade39fb32
Author: Mark Mielke <email address hidden>
Date: Thu Jul 15 18:34:36 2021 -0400
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: Id0539d2ee909d8 6ffef07ae566697 db8ae0f83b4
Signed-off-by: Mark Mielke <email address hidden>