]> 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)
committerjohn-griffith <john.griffith@solidfire.com>
Fri, 4 Apr 2014 14:33:38 +0000 (08:33 -0600)
commitd0262065921cb3015619bdce8ca1cae596cde9b2
treeb60f41357137ff2a31661bc21fa77f5658ec15bf
parent5a1fcc88ce613b01cf50c55f2508c01bbc609ed4
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
(cherry picked from commit bf006ecb4a52db6300aa0fe1abe7df621e9f6174)
cinder/tests/test_glusterfs.py
cinder/volume/drivers/glusterfs.py