]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove a vol in error state from a CG
authorAlon Marx <alonma@il.ibm.com>
Wed, 20 Jan 2016 20:14:14 +0000 (22:14 +0200)
committerAlon Marx <alonma@il.ibm.com>
Thu, 3 Mar 2016 14:26:03 +0000 (16:26 +0200)
commit80620b1fea79a24f4b22fdfb9213e2aec69ef826
tree82528044082a515f7b98049e1b47e7e504533dbc
parentc4770f74667d5ecd2885716ab2b5f1903affc5ac
Remove a vol in error state from a CG

Before calling update_consistencygroup, a validation is done if volumes
are in valid states for action.

Divide the states allowed for adding and removing volumes from a CG,
and allow volume removal in states error and error_deleting.

Also added missing verification in manager update_consistencygroup in
case state has changed from cinder-api to cinder-volume.

Change-Id: I6f5fa8e9af67e17ab49e7f3423d4469640df790c
Closes-Bug: #1519377
cinder/consistencygroup/api.py
cinder/tests/unit/api/contrib/test_consistencygroups.py
cinder/volume/manager.py
releasenotes/notes/remove-vol-in-error-from-cg-1ed0fde04ab2b5be.yaml [new file with mode: 0644]