]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Delete volumes with snapshots
authorEric Harney <eharney@redhat.com>
Thu, 7 Jan 2016 21:25:52 +0000 (16:25 -0500)
committerEric Harney <eharney@redhat.com>
Sun, 28 Feb 2016 14:11:37 +0000 (14:11 +0000)
commitbf2b6b9d90a59e66684a1294f536558ccafb4fd7
treef45a938e7a966cf72f3468f9cef540d0e117e208
parentd46fbf0e130ed752fb428ea1b2bbaff9288a454f
Delete volumes with snapshots

This adds the 'cascade' parameter to volume delete,
which deletes snapshots along with a volume in
one call.

This is done in the volume manager, and not in
a driver-optimized way, which will be a later
improvement.

Blueprint: del-vols-with-snaps
Change-Id: I33d15b76d4bd0de14c635d404b2c97096c977a58
cinder/api/v2/volumes.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/tests/unit/api/contrib/test_volume_unmanage.py
cinder/tests/unit/api/v2/test_volumes.py
cinder/tests/unit/test_volume.py
cinder/tests/unit/test_volume_rpcapi.py
cinder/volume/api.py
cinder/volume/manager.py
cinder/volume/rpcapi.py