Segmented images not deleted cleanly from swift

Bug #1144681 reported by Stuart McLaren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Stuart McLaren
Grizzly
Fix Released
Undecided
Stuart McLaren

Bug Description

This change:

https://review.openstack.org/#/c/21182/

appears to be a subset of this change:

https://review.openstack.org/#/c/12012/

however there is a missing piece which means that when an image is deleted
a stray object remains in the swift container:

 $ glance --os-username glance --os-password XXX --os-tenant-name service --os-auth-url http://localhost:5000/v2.0 image-create --disk-format=qcow2 --container-format=bare --name="ImageSegmented5" < /tmp/dd.out
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | f1c9645dbc14efddc7d8a322685f26eb |
| container_format | bare |
| created_at | 2013-03-04T16:06:41 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | e1a10848-956b-48a0-8b38-16dd09d191c1 |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | ImageSegmented5 |
| owner | 12724b658f4b42169705160bf266adfe |
| protected | False |
| size | 10485760 |
| status | active |
| updated_at | 2013-03-04T16:06:41 |
+------------------+--------------------------------------+

$ swift --os-username glance --os-password XXX --os-tenant-name service --os-auth-url http://localhost:5000/v2.0 list glance |grep 91c1
e1a10848-956b-48a0-8b38-16dd09d191c1
e1a10848-956b-48a0-8b38-16dd09d191c1-00001
e1a10848-956b-48a0-8b38-16dd09d191c1-00002
e1a10848-956b-48a0-8b38-16dd09d191c1-00003
e1a10848-956b-48a0-8b38-16dd09d191c1-00004
e1a10848-956b-48a0-8b38-16dd09d191c1-00005
e1a10848-956b-48a0-8b38-16dd09d191c1-00006

$ glance --os-username glance --os-password XXX --os-tenant-name service --os-auth-url http://localhost:5000/v2.0 image-delete e1a10848-956b-48a0-8b38-16dd09d191c1

$ swift --os-username glance --os-password XXX --os-tenant-name service --os-auth-url http://localhost:5000/v2.0 list glance |grep 91c1
e1a10848-956b-48a0-8b38-16dd09d191c1 <<< this is stale

Changed in glance:
assignee: nobody → Therese McHale (therese-mchale)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/23442

Changed in glance:
status: New → In Progress
Changed in glance:
assignee: Therese McHale (therese-mchale) → Stuart McLaren (stuart-mclaren)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/23442
Committed: http://github.com/openstack/glance/commit/157cce770736de4671e99ab21e65e34c0ca8c3c1
Submitter: Jenkins
Branch: master

commit 157cce770736de4671e99ab21e65e34c0ca8c3c1
Author: Therese McHale <email address hidden>
Date: Mon Mar 4 17:42:10 2013 +0000

    Segmented images not deleted cleanly from swift.

    Ensure the manifest is deleted in addition to the image data segments.

    Fixes Bug #1144681

    Change-Id: I64dd07e6b7a1c4bcbb0a230ec3b7f4d365ec5ae8

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
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.