]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add manage/unmanage volume support for Nimble
authorSonia Ghanekar <sonia.ghanekar@nimblestorage.com>
Wed, 26 Aug 2015 17:08:53 +0000 (10:08 -0700)
committerSonia Ghanekar <sonia.ghanekar@nimblestorage.com>
Wed, 26 Aug 2015 17:08:53 +0000 (10:08 -0700)
commit9c3e6aa9cd8702a16b7de69267bf994c7e421890
tree4c94404502406f1532a8b63e18619adb56d6b6e8
parentbad85a2b10274bbe22d626228eac32dbb3f82293
Add manage/unmanage volume support for Nimble

This patch adds support for volume manage/unmanage for a Nimble
ISCSI driver. It uses an additional field 'agent-type' on the
backend for distinguishing volumes managed by the Nimble driver.
While managing an existing volume it sets the agent-type to
Openstack and while unmanaging sets it back to None.

Since this field was not used in the earlier versions, in order
to be backward compatible, during the initialization of the driver,
the 'agent-type' is updated to Openstack for all the existing
Nimble volumes.

Implements: blueprint nimble-add-volume-manage-unmanage-support
Change-Id: Ia960f2a2911288409977324cfc287c216b60b589
cinder/tests/unit/test_nimble.py
cinder/volume/drivers/nimble.py