Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Jul 3, 2019

Conversation

wdurairaj
Copy link
Collaborator

@wdurairaj wdurairaj commented Jul 3, 2019

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 -- hpe-storage/python-3parclient#71 is merged as part of the next dist.

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

@nilangekarss
Copy link
Collaborator

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.

@wdurairaj wdurairaj merged commit 3f748bf into plugin_v2 Jul 3, 2019
@wdurairaj wdurairaj deleted the fc_driver_fix branch July 3, 2019 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants