nova/nova/image
Wangpan 3e766e5bd4 Handle glance exception during rotating instance backup
Glance image backends may return HTTPConflict in many cases
during deleting image, for example, an rbd image is used for
booting a new instance, or rbd image has snapshot(s).

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 the first one of the backup
images are deleted failed with HTTPConflict or other exceptions,
all images exceeding rotation limit will be left over.

This patch handles ImageDeleteConflict and all other exceptions
during deleting backup images, logs a message and continues
deleting all of the remaining images.

Closes-Bug: #1734838

Change-Id: Ie8091fe3e0e4275717ddc50166345f1c9df4b889
2018-01-03 10:05:03 +08:00
..
download Remove translation of log messages 2017-07-18 09:03:39 +00:00
__init__.py Align internal image API with volume and network 2014-05-21 16:30:10 -04:00
api.py remove glance usage inside compute 2017-12-01 00:02:38 +08:00
glance.py Handle glance exception during rotating instance backup 2018-01-03 10:05:03 +08:00