]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Prevent force delete if the volume is attached
authorMike Perez <thingee@gmail.com>
Fri, 31 May 2013 07:11:24 +0000 (00:11 -0700)
committerMike Perez <thingee@gmail.com>
Fri, 31 May 2013 07:33:24 +0000 (00:33 -0700)
commit8829bb1a1d726bd6b1b6b623c0ac498d1ec05d41
treea567c8e30d117f8906b87a7afa96a0d8452ac8a2
parentf30afa6e70612b004a3da82d08a7e5fd0fb1a17d
Prevent force delete if the volume is attached

Force deletes were eventually failing on the volume manager layer due to
being in an attached state. This will check that up front to inform the
user that they need to detach first.

Fixes: bug #1164929
Change-Id: I24ade24fd750dc647331ef25b835f45f29c10fd7
cinder/api/v2/volumes.py
cinder/tests/api/v2/test_volumes.py
cinder/tests/test_volume.py
cinder/volume/api.py