Activity log for bug #1511061

Date Who What changed Old value New value Message
2015-10-28 17:48:21 Hemanth Makkapati bug added bug
2015-10-28 17:49:09 Nikhil Komawar description [0] shows a sample image that was left in an inconsistent state when a call to registry failed during image deletion. Glance API makes two registry calls when deleting an image. The first call [1] is made to to set the status of an image to deleted/pending_delete. And, the other [2], to delete the rest of the metadata, which sets 'deleted_at' and 'deleted' fields in the db. If the first call fails, the image deletion request fails and the image is left intact in it's previous status. However, if the first call succeeds and the second one fails, the image is left in an inconsistent status where it's status is set to pending_delete/deleted but it's 'deleted_at' and 'deleted' fields are not set. If delayed delete is turned on, these images are never collected by the scrubber as they won't appear as deleted images because their deleted field is not set. So, these images will continue to occupy storage in the backend. Also, further attempts at deleting these images will fail with a 404 because the status is already set to pending_delete/deleted. [0] http://paste.openstack.org/show/477577/ [1]: https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L1115-L1116 [2]: https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L1132 [0] shows a sample image that was left in an inconsistent state when a call to registry failed during image deletion. Glance v1 API makes two registry calls when deleting an image. The first call [1] is made to to set the status of an image to deleted/pending_delete. And, the other [2], to delete the rest of the metadata, which sets 'deleted_at' and 'deleted' fields in the db. If the first call fails, the image deletion request fails and the image is left intact in it's previous status. However, if the first call succeeds and the second one fails, the image is left in an inconsistent status where it's status is set to pending_delete/deleted but it's 'deleted_at' and 'deleted' fields are not set. If delayed delete is turned on, these images are never collected by the scrubber as they won't appear as deleted images because their deleted field is not set. So, these images will continue to occupy storage in the backend. Also, further attempts at deleting these images will fail with a 404 because the status is already set to pending_delete/deleted. [0] http://paste.openstack.org/show/477577/ [1]: https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L1115-L1116 [2]: https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L1132
2015-10-28 17:51:22 Nikhil Komawar glance: status New Triaged
2015-10-28 17:51:26 Nikhil Komawar glance: importance Undecided Critical
2015-10-28 17:51:32 Nikhil Komawar glance: milestone mitaka-1
2015-10-28 17:51:42 Nikhil Komawar glance: assignee Hemanth Makkapati (hemanth-makkapati)
2015-10-28 17:51:59 Nikhil Komawar nominated for series glance/kilo
2015-10-28 17:51:59 Nikhil Komawar bug task added glance/kilo
2015-10-28 17:51:59 Nikhil Komawar nominated for series glance/juno
2015-10-28 17:51:59 Nikhil Komawar bug task added glance/juno
2015-10-28 17:51:59 Nikhil Komawar nominated for series glance/liberty
2015-10-28 17:51:59 Nikhil Komawar bug task added glance/liberty
2015-10-28 17:55:48 Nikhil Komawar information type Public Public Security
2015-10-29 07:54:56 Tristan Cacqueray bug task added ossa
2015-10-29 07:55:19 Tristan Cacqueray ossa: status New Incomplete
2015-11-17 16:49:37 Tristan Cacqueray ossa: status Incomplete Won't Fix
2016-03-08 21:38:42 Hemanth Makkapati information type Public Security Public
2016-11-29 10:10:26 Hassaan bug added subscriber Hassaan
2016-11-29 10:19:10 Hassaan removed subscriber Hassaan
2016-11-29 10:19:26 Hassaan bug added subscriber Hassaan
2016-11-29 10:19:29 Hassaan removed subscriber Hassaan
2016-11-29 12:22:33 Hassaan bug added subscriber Hassaan
2018-01-31 10:04:38 Prateek Goel glance: assignee Hemanth Makkapati (hemanth-makkapati) Prateek Goel (prateek.goel)
2018-01-31 10:04:46 Prateek Goel glance: status Triaged In Progress
2018-03-12 16:05:30 Prateek Goel glance: status In Progress Invalid