hpe-storage / python-hpedockerplugin

HPE Native Docker Plugin
Apache License 2.0
36 stars 64 forks source link

FC Driver initialization fails on 3PAR Array when the iscsi vlans are not present #669

Closed wdurairaj closed 5 years ago

wdurairaj commented 5 years ago

python-3parclient queries showport -iscsivlans as part of iscsi vlan support. When this check is done on an 3PAR Array where the ports are empty as in this array, it fails the error

chgvash3pt10 cli% showport -iscsivlans
no ports listed
chgvash3pt10 cli% showport -iscsi
N:S:P State   IPAddr  Netmask/PrefixLen Gateway TPGT  MTU Rate iSNS_Addr iSNS_Port STGT VLAN
0:2:1 offline 0.0.0.0 0.0.0.0           0.0.0.0   21 1500  n/a 0.0.0.0        3205   21 Y
0:2:2 offline 0.0.0.0 0.0.0.0           0.0.0.0   22 1500  n/a 0.0.0.0        3205   22 Y
1:2:1 offline 0.0.0.0 0.0.0.0           0.0.0.0  121 1500  n/a 0.0.0.0        3205  121 Y
1:2:2 offline 0.0.0.0 0.0.0.0           0.0.0.0  122 1500  n/a 0.0.0.0        3205  122 Y
--------------------------------------------------------------------------------------------

Error log seen:

MountVolume.SetUp failed for volume "sc1-90ad0972-9ce0-11e9-85b5-566f4fb90000" : mount command failed, status: Failure, reason: HPE Docker Volume Plugin Mount Failed: ('Initialize Connection Failed: connection info retrieval failed, error is: ', 'pop from empty list')

This is a temporary workaround until the PR on python-3parclient -- https://github.com/hpe-storage/python-3parclient/pull/71 is merged as part of the next dist.

Please note the .egg file contains the change from the pull request https://github.com/hpe-storage/python-3parclient/pull/71 on python-3parclient.

nilangekarss commented 5 years ago

As per William's description this changes are needed for smooth functioning of FC driver initialization when array has offline iscsi ports. This change will be removed later in next version of plugin when dist for 3par client with new version is available at pypi. I am okay with this changes.