Netapp Cinder: lun mapping behavior is inconsistent when initiator connected to a custom igroup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Gorka Eguileor |
Bug Description
In the case where a iSCSI (and one can assume FCP as well) initiator is associated with a non openstack igroup:
1) Upon issuance of the command openstack server add volume, the cinder NetApp driver maps the NetApp LUN with the existing igroup.
2) Upon deletion of the of the nova instance, the cinder NetApp driver is not unmapping the LUN from the pre-existing igroup.
3) The next time cinder tries to map the same LUN, mapping fails as the LUN is already mapped
4) Because the LUN is already mapped, cinder fails to attach the LUN (cinder volume) again.
5) Manual unmapping within ONTAP alleviates the issue (though the same issue is encountered the next time the cinder volume is detached - reattached).
Here is my assesment:
1) As cinder generated igroups are preferable over custom created igroups, cinder should always create its own igroup even if one already exists to which the initiator is connected.
2) In contrast, Cinder should never map to a pre-existing non-openstack generated igroup. If 1) above is deemed unsafe or inappropriate by engineering, then mapping should fail and appropriate error reported in the error log stating the pre-existance of a non-openstack generated igroup.
3) If it is deemed appropriate to use a pre-existing non openstack generated igroup to which the initiator is already assigned, as cinder is presently doing, then an unmap must be issued just as the map is issued.
Here is the error from the volume.log:
2017-06-12 11:31:04.455 16260 ERROR cinder.
2017-06-12 11:31:04.455 16260 ERROR cinder.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.457 16260 ERROR oslo_messaging.
2017-06-12 11:31:04.947 16260 WARNING cinder.
tags: | added: drivers netapp |
Changed in cinder: | |
assignee: | nobody → Naresh Kumar Gunjalli (nareshkumarg) |
Fix proposed to branch: master /review. opendev. org/730936
Review: https:/