]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix to allow RBD delete an unprotected snapshot
authorYuriy Nesenenko <ynesenenko@mirantis.com>
Mon, 28 Dec 2015 13:35:47 +0000 (15:35 +0200)
committerYuriy Nesenenko <ynesenenko@mirantis.com>
Mon, 28 Dec 2015 17:10:14 +0000 (19:10 +0200)
commit61bf5d86d00025fbe44582693ca4e8858bd4301e
tree169bcb1586be1e23b0ed0f5b034bffd58b6689c9
parent20a4e887821181ea14682b247cc9caaa0353e03b
Fix to allow RBD delete an unprotected snapshot

RBD creates snapshots and marks it as protected. Before deleting,
RBD tries to 'unprotect' a snapshot. In the case when the snapshot
was already marked as 'unprotected' RBD failed to remove it. This
patch allow RBD delete such a snapshot.

Change-Id: Ic1ea72cc107c2eb949c5748a309f0a8956ea8082
Closes-Bug: 1529626
cinder/tests/unit/test_rbd.py
cinder/volume/drivers/rbd.py