]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Delete volume transfer in volume_destroy function
authorling-yun <zengyunling@huawei.com>
Mon, 20 Jan 2014 10:48:43 +0000 (18:48 +0800)
committerling-yun <zengyunling@huawei.com>
Fri, 24 Jan 2014 12:52:53 +0000 (20:52 +0800)
commit19d8040d61d453ec3916d74c628189ca0b54ac59
treefc1cf8999f009c31bfe2b1dc25b3858b3b163f46
parentc24e82d046abb4e64f83cb7201d717b9cb403517
Delete volume transfer in volume_destroy function

Doing volume force delete operation on volume-A will change volume-A's
status to 'deleted', so all related data about volume-A should be deleted.
Now current version's volume_destroy function doesn't delete related data
of volume transfer. If there is volume transfer about volume-A, first do
force delete operation on volume A, and thus the volume-A's transfer data
would be residual. So remove the related data of volume transfer in
volume_destroy function.

Change-Id: Id80a6e0cc061fccb02af60706244be043abdd72d
Closes-Bug: #1270785
cinder/db/sqlalchemy/api.py
cinder/tests/test_volume_transfer.py