]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Disallow transferring volume in consistency group
authorAccela Zhao <accelazh@gmail.com>
Sat, 16 Jan 2016 06:43:29 +0000 (22:43 -0800)
committerAccela Zhao <accelazh@gmail.com>
Sat, 16 Jan 2016 06:52:21 +0000 (22:52 -0800)
commit780c6003a1f70e3ccaa46ffe35cfa268fb22732d
tree420a75294b125b91b9974babbdb8165f06354fb6
parent05b07b1c41c26808b96b5b6d2cba0d3dfcf0a6d0
Disallow transferring volume in consistency group

Currently, transferring a volume in a consistency group would
success. But consistency group is not designed to span multiple
tenants. If the accepted volume is attached to an instance, and
the original user try to delete the CG, it would fail and could
not find the attachment.

This patch fixes it by adding a check in transfer API accept. It
raises InvalidVolume exception if the volume being transferred
belongs to a consistency group.

Change-Id: I597d32a301a1ded87ba711de6168995b5f62c4d8
Closes-bug: #1499584
cinder/tests/unit/test_volume_transfer.py
cinder/transfer/api.py