]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
HP 3PAR: Don't ignore extra-specs snap_cpg when missing cpg
authorMark Sturdevant <mark.sturdevant@hp.com>
Sat, 13 Sep 2014 06:48:16 +0000 (23:48 -0700)
committerMark Sturdevant <mark.sturdevant@hp.com>
Fri, 10 Oct 2014 17:58:04 +0000 (17:58 +0000)
commita1fa72b9e02973c064136c1f723d2af2558e578b
treea34194ade699d2d10ddc93ff1dce0421df0470b9
parentd1c889da1e1db9f748022d82c401aa2b1bf42393
HP 3PAR: Don't ignore extra-specs snap_cpg when missing cpg

When snap_cpg is specified in extra-specs, it should be used.
For some reason, it was being ignored when extra-specs did not
also specify a user cpg.

When using a volume-type, the snapCPG should come from (in this order
of preference):
1. extra specs snap_cpg,
2. extra specs cpg,
3. config hp3par_cpg_snap,
4. config hp3par_cpg.

Change-Id: I649e3dc49f7775a8071229fc315f0ee5f23aa833
Closes-Bug: 1368972
cinder/tests/test_hp3par.py
cinder/volume/drivers/san/hp/hp_3par_common.py