]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
GlusterFS: Complete snapshot_delete when info doesn't exist
authorEric Harney <eharney@redhat.com>
Tue, 19 Nov 2013 21:25:47 +0000 (16:25 -0500)
committerEric Harney <eharney@redhat.com>
Mon, 2 Dec 2013 17:05:15 +0000 (12:05 -0500)
commitd8a11168c908fe6c6a07fbb30a5bc88a6df6e939
treed7b8a96b9d600fdaa5af6ce8d4547ee4e1bf696b
parent371fa540600b20b97eae389e1f976145866cadae
GlusterFS: Complete snapshot_delete when info doesn't exist

The snapshot_delete operation will fail if the snapshot info file
doesn't contain a record for the snapshot, or does not exist.
This happens in cases such as when snapshot_create fails to commit
anything to disk.

The driver should allow the manager to delete the snapshot
in this case, as there is no action required for the driver
to delete anything.

Closes-Bug: #1252864

Change-Id: I8686a1be09dbb7984072538bff6c026bb84eeb52
cinder/tests/test_glusterfs.py
cinder/volume/drivers/glusterfs.py