]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Added extra-spec key scoping to the 3PAR drivers
authorKurt Martin <kurt.f.martin@hp.com>
Mon, 24 Dec 2012 00:47:58 +0000 (16:47 -0800)
committerKurt Martin <kurt.f.martin@hp.com>
Mon, 24 Dec 2012 19:02:28 +0000 (11:02 -0800)
commitbbc4b9abd7c2034ef78f87abae143b9c7bfd7f56
tree8a77115e6176b751fa0b78ea7133f007b1226d9f
parent1bf8bfad290eeca17c666ca19d5a032e6fefe298
Added extra-spec key scoping to the 3PAR drivers

The Filter scheduler uses the extra-specs data to determine capabilities
and back-end, and it also enforces strict checking. As a result previous
method of setting all the 3PAR settings(cpg, snap_cpg, persona, provisioning)
on the 3PAR volume using extra-specs on a volume type will not work with the
default scheduler. The filter scheduler will look at these keys and fail to
schedule deployment of the volume because no suitable back-end reports those
capabilities.

This fix will allow the custom keys (ie: hp3par:cpg=TEST_CPG,
hp3par:provisioning=full,...) to be scoped, unfortunately this requires
additional checks in the common driver to parse the keys.

I'll update the 3PAR driver section of the OpenStack Block Storage Admin
Guide in a follow-up patch.
DocImpact
Fixes: bug 1194289
Change-Id: Id3fde3b3a185eedf2b8193fd0dc6324d904e8834
cinder/volume/drivers/san/hp/hp_3par_common.py