]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
GlusterFS: Delete volume-<uuid>.info file when volume is deleted.
authorThang Pham <thang.g.pham@gmail.com>
Mon, 31 Mar 2014 19:22:47 +0000 (15:22 -0400)
committerThang Pham <thang.g.pham@gmail.com>
Mon, 31 Mar 2014 20:31:24 +0000 (16:31 -0400)
commitbf006ecb4a52db6300aa0fe1abe7df621e9f6174
tree1c8715f57e4b3b62b51f9e5f40b94f70a3748f16
parent6b3d177695ef360fce9454c890fd262d2429e0b8
GlusterFS: Delete volume-<uuid>.info file when volume is deleted.

glusterfs creates a file named volume-<uuid>.info to hold volume
data, mapping cinder snapshot UUIDs and filenames. When the
volume and its associated snapshots are both deleted, this file
remains. This patch deletes the volume-<uuid>.info (if one exists)
when the volume is deleted.

Change-Id: Iefc8bd4768b30a75c648c4689d935daeab3afe98
Closes-Bug: #1299182
cinder/tests/test_glusterfs.py
cinder/volume/drivers/glusterfs.py