Bad args to iscsiadm for iSCSI multipath target
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned | ||
os-brick |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Cinder 3rd party CI tests fail for multipath iSCSI targets due to an incorrect invocation of iscsiadm:
Called from connect_volume() in a multipath, multiattach configuration, ISCSIConnector.
The system is running Ubuntu 16.04 with open-iscsi 2.0.873+
Patching _recover_
diff --git a/os_brick/
index a875b76..c428772 100644
--- a/os_brick/
+++ b/os_brick/
@@ -1178,7 +1178,7 @@ class ISCSIConnector(
# as discovering target.
# So target_iqn is updated, and other values aren't updated.
- recover_
+ recover_
Attached is a stack trace showing the symptom. In this scenario a volume from the target has been attached to one instance and the test case is attempting to attach the same volume to a second instance.
Reviewed: https:/ /review. opendev. org/674669 /git.openstack. org/cgit/ openstack/ os-brick/ commit/ ?id=81f26f822d6 6c71c29ea25fd41 58ac41fc162964
Committed: https:/
Submitter: Zuul
Branch: master
commit 81f26f822d66c71 c29ea25fd4158ac 41fc162964
Author: Chris M <email address hidden>
Date: Mon Aug 5 18:13:33 2019 +0000
Fix bad argument to iscsiadm in iSCSI discovery
Fix a call to _iscsiadm_update() in which a list was being passed as
the target_iqn connection property. This property is used directly as
an argument to the iscsiadm -T option, so it must be a plain string.
Change-Id: I9c2ff1de1f89fb 49dd6c5a90679d5 c4238d5476a
Closes-bug: 1838820