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
Change-Id: Ib999138ddbbcd62e0c99a69e5c6d37b4e49f871f
(cherry picked from commit cc5d3437cabab4688df8492e071ea8c597311113)
Reviewed: https:/ /review. openstack. org/409715 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0080a12361b 480f5b87ebdb622 85b4100550d0b1
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 0080a12361b480f 5b87ebdb62285b4 100550d0b1
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 88df8492e071ea8 c597311113)
Change-Id: Ib999138ddbbcd6
(cherry picked from commit cc5d3437cabab46