commit 2bb70e7b15e6cfef4652e2e49c4e02d151d2dbdf
Author: Matt Riedemann <email address hidden>
Date: Thu Dec 8 13:44:54 2016 -0500
Don't trace on ImageNotFound in delete_image_on_error
The point of the delete_image_on_error decorator is to
cleanup an image used during snapshot operations, so it
makes little sense to log an exception trace if the image
delete fails because the image no longer exists, which it
might not since _snapshot_instance method will proactively
delete non-active images in certain situations.
So let's just handle the ImageNotFound and ignore it.
Reviewed: https:/ /review. openstack. org/408771 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=2bb70e7b15e 6cfef4652e2e49c 4e02d151d2dbdf
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2bb70e7b15e6cfe f4652e2e49c4e02 d151d2dbdf
Author: Matt Riedemann <email address hidden>
Date: Thu Dec 8 13:44:54 2016 -0500
Don't trace on ImageNotFound in delete_ image_on_ error
The point of the delete_ image_on_ error decorator is to
cleanup an image used during snapshot operations, so it
makes little sense to log an exception trace if the image
delete fails because the image no longer exists, which it
might not since _snapshot_instance method will proactively
delete non-active images in certain situations.
So let's just handle the ImageNotFound and ignore it.
Change-Id: I14e061a28678ad 28e38bd185e3d0a 35cae41a9cf
Closes-Bug: #1648574