]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Using extra-specs in cloned vols for Nimble driver
authorSonia Ghanekar <sonia.ghanekar@nimblestorage.com>
Mon, 2 Nov 2015 21:58:42 +0000 (13:58 -0800)
committerSonia Ghanekar <sonia.ghanekar@nimblestorage.com>
Mon, 2 Nov 2015 22:16:16 +0000 (14:16 -0800)
commit8484a234a8047019627184efbc2656f6ce2cb06d
tree2e41665ff5ed6c9643d7a41424adbf2c9badd0e0
parent547f107867619a8d0d670e86959addf2f41c6de0
Using extra-specs in cloned vols for Nimble driver

This patch uses the set extra-specs while cloning a volume. All
existing extra-specs: 'nimble:encryption', 'nimble:perfpol-name'
and 'nimble:multi-initiator' are being reflected in the cloned
volume.

In the existing code, the extra-specs were not being considered
while cloning volumes; the parent volume attributes were used
directly in the cloned volume. This patch uses the extra-spec
values if they are set or if not then uses the default values
for the same.

Change-Id: I7610377e557720038f77ebd318422456e658e2ce
Closes-Bug: #1507821
cinder/tests/unit/test_nimble.py
cinder/volume/drivers/nimble.py