]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
NetApp E-Series: Fix instance live-migration with attached volumes
authorAlex Meade <mr.alex.meade@gmail.com>
Tue, 24 Feb 2015 21:22:58 +0000 (16:22 -0500)
committerAlex Meade <mr.alex.meade@gmail.com>
Thu, 23 Apr 2015 14:57:38 +0000 (14:57 +0000)
commitc5dcb730e94626b2f296af4565ed6f6bf6c24009
treef7675545302d7aa73d41aa941ac083789d877f69
parentcbcbc90cf64d91a33b7bcfb826c59d4b69697486
NetApp E-Series: Fix instance live-migration with attached volumes

Currently, live migrations of instances with attached volumes that live
on a NetApp E-Series backend will fail and break connectivity to the
guest. This patch adds the 'netapp_enable_multiattach' configuration
option that enables multiattach operations with the E-Series driver.
It defaults to allowing these operations but needs to be configurable
since allowing for multiple attachments imposes a limit of 256 volumes
on the backend due to how multiple attachments must be managed by
E-Series.

Multiattach operations are enabled by mapping volumes to an E-Series
host group on the backend called 'cinder-host-group'. Host groups can
only have 256 mappings at a time and so we must limit the number of
volumes in order to guarantee any volume created could then be attached.

Closes-bug: 1433825
Change-Id: Icb73f5b65b12decbd7b7f21c2fcec6fe700eaf59
cinder/tests/unit/test_netapp_eseries_iscsi.py
cinder/tests/unit/volume/drivers/netapp/eseries/fakes.py [new file with mode: 0644]
cinder/tests/unit/volume/drivers/netapp/eseries/test_host_mapper.py [new file with mode: 0644]
cinder/tests/unit/volume/drivers/netapp/eseries/test_iscsi.py
cinder/tests/unit/volume/drivers/netapp/fakes.py
cinder/volume/drivers/netapp/eseries/client.py
cinder/volume/drivers/netapp/eseries/exception.py [new file with mode: 0644]
cinder/volume/drivers/netapp/eseries/host_mapper.py [new file with mode: 0644]
cinder/volume/drivers/netapp/eseries/iscsi.py
cinder/volume/drivers/netapp/eseries/utils.py
cinder/volume/drivers/netapp/options.py