]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Delete consistency group failed
authorXing Yang <xing.yang@emc.com>
Fri, 5 Sep 2014 21:48:00 +0000 (17:48 -0400)
committerXing Yang <xing.yang@emc.com>
Wed, 10 Sep 2014 05:04:34 +0000 (01:04 -0400)
commit764c5ec749821d36bb0215dc6002d3caea95d3b1
treee7ae8836d70219ad1e015ae9602dec8d1a0cb43c
parentbee98cd04f42d46b3348c390421d2463f9966110
Delete consistency group failed

Delete CG failed because it compares host@backend with host@backend#pool
(in delete_consistencygroup in volume/manager.py). The fix is to call
extract_host before doing the comparison.

Another issue is about deleting a CG with no host. This will throw exception
when extract_host(group['host']) is called in delete_consistencygroup in
volume/rpcapi.py. The solution is to check the host field in consistencygroup/
api.py and delete it from db there.

Change-Id: Ife28a4f91bd8a4e123c74dac9748ee31cc7b7306
Closes-Bug: #1366205
cinder/consistencygroup/api.py
cinder/tests/api/contrib/test_consistencygroups.py
cinder/tests/test_volume.py
cinder/volume/manager.py