]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
3PAR: Delete missing snapshot stuck in error_del
authorRamy Asselin <ramy.asselin@hp.com>
Mon, 24 Feb 2014 20:29:01 +0000 (12:29 -0800)
committerRamy Asselin <ramy.asselin@hp.com>
Mon, 24 Feb 2014 20:29:01 +0000 (12:29 -0800)
commite31b9e78374bcaeae573cce2915897ceb870ffc3
tree78ce69b6b7b212ada11b5bac757d987a2cff4ea7
parentf2137b37e89de52443152ac51e2d117333dbb2fb
3PAR: Delete missing snapshot stuck in error_del

If the snapshot is deleted outside of cinder, attempting
to delete it again results in the snapshot state stuck in
error_deleting.

This is because the current code raises a NotFound exception,
but the base cinder code does not catch this and update its db.

Instead, log a warning, and simply tell the base cinder code that it was
successfully deleted.

Change-Id: I5c5d24bc113e320346ff4f1f4f62fffdf7cddfc4
Closes-Bug: #1283233
cinder/tests/test_hp3par.py
cinder/volume/drivers/san/hp/hp_3par_common.py