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

Bug #1226233 reported by Samuel XJ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
New
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)
Changed in glance:
importance: Undecided → Wishlist
Changed in glance:
importance: Wishlist → Low
zwei (suifeng20)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.