]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add ConsistencyGroupStatus enum field
authorSlade Baumann <baumann@us.ibm.com>
Mon, 28 Dec 2015 16:44:34 +0000 (10:44 -0600)
committerSlade Baumann <baumann@us.ibm.com>
Mon, 11 Jan 2016 18:39:06 +0000 (12:39 -0600)
commit14ef9330b16cb11a5707213ec56f5585ee9d55e3
treea6b546444068503bbe8249c10ad0254a2bc8f006
parent81f7986c16ecd589017486e60fb39544c5c409a8
Add ConsistencyGroupStatus enum field

This change adds a new enum and field, ConsistencyGroupStatus and
ConsistencyGroupStatusField, that will hold the constants for the
'status' field of the ConsistencyGroup object. This enum and field
are based off the base oslo.versionedobjects enum and field. This
also changes over the ConsistencyGroup object to use the new field
(and bumps the version so newer versions know to enforce
valid values). Finally, all uses of strings for comparison and
assignment to this field are changed over to use the constants
defined within the enum.

Change-Id: Icee2727f0a550541876c63b6e7340acf3de553c8
Implements:  bp cinder-object-fields
33 files changed:
cinder/consistencygroup/api.py
cinder/db/sqlalchemy/api.py
cinder/objects/consistencygroup.py
cinder/objects/fields.py
cinder/tests/unit/api/contrib/test_consistencygroups.py
cinder/tests/unit/fake_driver.py
cinder/tests/unit/objects/test_consistencygroup.py
cinder/tests/unit/objects/test_fields.py
cinder/tests/unit/objects/test_objects.py
cinder/tests/unit/scheduler/test_scheduler.py
cinder/tests/unit/test_dellsc.py
cinder/tests/unit/test_emc_vmax.py
cinder/tests/unit/test_emc_vnx.py
cinder/tests/unit/test_gpfs.py
cinder/tests/unit/test_hpe3par.py
cinder/tests/unit/test_hpelefthand.py
cinder/tests/unit/test_ibm_xiv_ds8k.py
cinder/tests/unit/test_prophetstor_dpl.py
cinder/tests/unit/test_solidfire.py
cinder/tests/unit/test_storwize_svc.py
cinder/tests/unit/test_volume.py
cinder/tests/unit/utils.py
cinder/volume/drivers/emc/emc_vmax_common.py
cinder/volume/drivers/emc/emc_vnx_cli.py
cinder/volume/drivers/emc/xtremio.py
cinder/volume/drivers/hpe/hpe_3par_common.py
cinder/volume/drivers/hpe/hpe_lefthand_iscsi.py
cinder/volume/drivers/ibm/gpfs.py
cinder/volume/drivers/ibm/storwize_svc/storwize_svc_common.py
cinder/volume/drivers/prophetstor/dplcommon.py
cinder/volume/drivers/pure.py
cinder/volume/drivers/solidfire.py
cinder/volume/manager.py