interrupted update on DB/image store may lead to resource leakage

Bug #1226233 reported by Samuel XJ on 2013-09-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Low
Unassigned

Bug Description

During image registration/deletion, if the update of DB state or image store is interrupted (e.g., by fault), then it may lead to resource leakage.

Below are two examples:

1. glance registration example
1.1 issue command "glance image-create" with "copy-from=http" option
1.2 image is copied to the glance host
1.3 image state in glance DB is updated

If a fault occurs between 1.2 and 1.3 (e.g., glance service crashes and then restarts), then the image may exist on glance host but is not correctly recorded in the DB. Subsequent image deletion cannot remove such an image from the glance host (in particular because the image location information in DB may be incorrect in such cases).

2. glance deletion example
2.1 issue command "glance image-delete"
2.2 image state in glance DB is updated
2.3 image is removed from the glance host

If a fault occurs between 2.2 and 2.3, then the image record may be removed from DB but the image itself remains on the glance host.

Revision history for this message
Feilong Wang (flwang) wrote :
Ian Cordasco (icordasc) on 2014-12-26
Changed in glance:
importance: Undecided → Wishlist
Changed in glance:
importance: Wishlist → Low
zwei (suifeng20) on 2016-03-08
Changed in glance:
assignee: nobody → zwei (suifeng20)
status: New → In Progress
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Removing owner and status since it has been over a year with no update.

Changed in glance:
assignee: zwei (suifeng20) → nobody
status: In Progress → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers