dev iqn comparison failing for multipath devices

Bug #1773341 reported by Chhavi Agarwal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypowervm
Invalid
Undecided
Unassigned

Bug Description

find_dev_by_iqn fails to return the device as the below comparison fails

if ((isinstance(iqn, six.string_types) and outiqn == iqn) or
outiqn in iqn):

It should look for the subset of iqn in outiqn.

https://github.com/powervm/pypowervm/blob/master/pypowervm/tasks/hdisk/_iscsi.py#L75

2018-05-24 06:30:23.378 16532 WARNING pypowervm.tasks.hdisk._iscsi [req-cbdd7c32-b422-411b-b982-121642ae6cf7 ba76c27e1112207f0626de3fba476c7adc710437896584a5b0f6583b2421e138 f10cb9d10e0c494e9b03e60abd8138b1 - 00c4917bae0c4b46a6639c962083c3e4 00c4917bae0c4b46a6639c962083c3e4] Invalid device output: iqn.1986-03.com.ibm:2145.c387f15u41v7000.node2
2018-05-24 06:30:23.379 16532 WARNING pypowervm.tasks.hdisk._iscsi [req-cbdd7c32-b422-411b-b982-121642ae6cf7 ba76c27e1112207f0626de3fba476c7adc710437896584a5b0f6583b2421e138 f10cb9d10e0c494e9b03e60abd8138b1 - 00c4917bae0c4b46a6639c962083c3e4 00c4917bae0c4b46a6639c962083c3e4] Invalid device output: iqn.1986-03.com.ibm:2145.c387f15u41v7000.node1
2018-05-24 06:30:23.379 16532 ERROR pypowervm.tasks.hdisk._iscsi [req-cbdd7c32-b422-411b-b982-121642ae6cf7 ba76c27e1112207f0626de3fba476c7adc710437896584a5b0f6583b2421e138 f10cb9d10e0c494e9b03e60abd8138b1 - 00c4917bae0c4b46a6639c962083c3e4 00c4917bae0c4b46a6639c962083c3e4] Expected IQN [u'iqn.1986-03.com.ibm:2145.c387f15u41v7000.node2', u'iqn.1986-03.com.ibm:2145.c387f15u41v7000.node1'] not found on iscsi target [u'9.114.23.41:3260', u'9.114.23.42:3260']

Changed in pypowervm:
status: New → Incomplete
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.