commit eba4586ef3db648bdda9cf0ffeb76398f0a761ea
Author: Goutham Pacha Ravi <email address hidden>
Date: Mon Mar 21 13:28:16 2016 -0400
Fix force-delete on snapshot resource
When using snapshot-delete API, if the share driver
logs an exception, the status of the snapshot is set
to 'error_deleting'. If an administrator wants to remove
this snapshot, he/she would expect to use the
snapshot-force-delete API. However, if the share
driver still cannot delete the resource, it will remain
in 'error_deleting' state; leaving the administrator
with no choice but to resort to making changes to
the snapshot record in Manila's database.
Propagate the force flag to the share manager and log
driver exceptions, while ignoring them to obliterate
the snapshot on Manila's database if the delete
operation is forced.
Also fix data being sent in create/delete snapshot
driver interfaces and refactor corresponding unit tests.
Change-Id: Ic2494e1f9eb9104f96ef3a50f12d0f304735ee4f
Closes-Bug: #1560119
(cherry picked from commit 35648819aa00afe2cdd7ebba63f42def8c43e971)
Reviewed: https:/ /review. openstack. org/349750 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=eba4586ef3d b648bdda9cf0ffe b76398f0a761ea
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit eba4586ef3db648 bdda9cf0ffeb763 98f0a761ea
Author: Goutham Pacha Ravi <email address hidden>
Date: Mon Mar 21 13:28:16 2016 -0400
Fix force-delete on snapshot resource
When using snapshot-delete API, if the share driver force-delete API. However, if the share
logs an exception, the status of the snapshot is set
to 'error_deleting'. If an administrator wants to remove
this snapshot, he/she would expect to use the
snapshot-
driver still cannot delete the resource, it will remain
in 'error_deleting' state; leaving the administrator
with no choice but to resort to making changes to
the snapshot record in Manila's database.
Propagate the force flag to the share manager and log
driver exceptions, while ignoring them to obliterate
the snapshot on Manila's database if the delete
operation is forced.
Also fix data being sent in create/delete snapshot
driver interfaces and refactor corresponding unit tests.
Change-Id: Ic2494e1f9eb910 4f96ef3a50f12d0 f304735ee4f 2cdd7ebba63f42d ef8c43e971)
Closes-Bug: #1560119
(cherry picked from commit 35648819aa00afe