]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
GPFS Driver missing clone depth limit for snapshots
authorBill Owen <billowen@us.ibm.com>
Wed, 18 Sep 2013 21:30:07 +0000 (14:30 -0700)
committerBill Owen <billowen@us.ibm.com>
Thu, 19 Sep 2013 14:31:25 +0000 (07:31 -0700)
commitcbb057169094e9d633162cc5645fa19a82325d49
tree802319fa229b66160ffa066870c11b7344434b6e
parent1b2ee3baabfe0dd12e26cf6afc08386b0dcc8cab
GPFS Driver missing clone depth limit for snapshots

GPFS driver is fixed to handle snapshot clones correctly. Previously,
these were allowed to grow without respecting limit defined in config
flag gpfs_max_clone_depth.  This change adds the depth check operation
in create_snapshot.

To ensure that all clone files are cleaned up, the delete_snapshot
method now marks snapshots to be deleted with ts file extension
and attempts to delete the snapshot.  If the snapshot cannot be
deleted because it has clone children, it will be deleted when the
child is deleted.

Closes-Bug: #1227366

Change-Id: I4fb2a720b55dbe033159e6fb341f6e2f1508776e
cinder/tests/test_gpfs.py
cinder/volume/drivers/gpfs.py