← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1144681] Re: Segmented images not deleted cleanly from swift

 

** Changed in: glance/grizzly
       Status: New => Fix Released

** Changed in: glance/grizzly
    Milestone: None => 2013.1

** Changed in: glance/grizzly
     Assignee: (unassigned) => Stuart McLaren (stuart-mclaren)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1144681

Title:
  Segmented images not deleted cleanly from swift

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in Glance grizzly series:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1144681/+subscriptions