Handle ImageNotFound exception during instance backup
If user have already backed up instance to few numbers and then
execute backup api with rotation 1, then nova will delete the
previously created images exceeding rotation limit.
During deleting these images, if user mistakenly deletes one of the
image in advance, then backup instance won't be able to delete all
images exceeding rotation limit causing api failure.
This patch handles ImageNotFound exception during deleting backup
images, logs a warning message and continues deleting all of the
remaining images.
Reviewed: https:/ /review. openstack. org/388519 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=cc5d3437cab ab4688df8492e07 1ea8c597311113
Committed: https:/
Submitter: Jenkins
Branch: master
commit cc5d3437cabab46 88df8492e071ea8 c597311113
Author: bhagyashris <email address hidden>
Date: Mon Oct 17 19:29:21 2016 +0530
Handle ImageNotFound exception during instance backup
If user have already backed up instance to few numbers and then
execute backup api with rotation 1, then nova will delete the
previously created images exceeding rotation limit.
During deleting these images, if user mistakenly deletes one of the
image in advance, then backup instance won't be able to delete all
images exceeding rotation limit causing api failure.
This patch handles ImageNotFound exception during deleting backup
images, logs a warning message and continues deleting all of the
remaining images.
Closes-Bug: #1634773 2e0c99a69e5c6d3 7b4e49f871f
Change-Id: Ib999138ddbbcd6