← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1452788] [NEW] cannot delete image with status='deleted' and deleted=0

 

Public bug reported:

Hi,

in my OpenStack Juno I have created a snapshot that gone into status='deleted' after creation.
When I try to delete this image I got a 404 "Image not found " and I cannot delete image in no way.

In "images" table DB the record fields are:

*************************** 1. row ***************************
              id: 5c79d539-f256-422c-b376-4c27c1d06b96
            name: my_image
            size: 901840896
          status: deleted
       is_public: 0
      created_at: 2015-05-07 15:24:45
      updated_at: 2015-05-07 15:25:18
      deleted_at: NULL
         deleted: 0
     disk_format: qcow2
container_format: bare
        checksum: 4483088a8840fa463d518085ae515b7b
           owner: fdd21cc5a7b144b8920cc815ab8ea2a9
        min_disk: 1
         min_ram: 0
       protected: 0
    virtual_size: NULL


For replicate this issue, I have created an image and I have change the status (via mysql UPDATE) from "active" to "deleted".

UPDATE images SET status='deleted' WHERE id =
'5c79d539-f256-422c-b376-4c27c1d06b96';

and if I run:

# glance image-delete 5c79d539-f256-422c-b376-4c27c1d06b96

result is:

<html>
 <head>
  <title>404 Not Found</title>
 </head>
 <body>
  <h1>404 Not Found</h1>
  Image 5c79d539-f256-422c-b376-4c27c1d06b96 not found.<br /><br />

 </body>
</html> (HTTP 404): Unable to delete image 5c79d539-f256-422c-b376-4c27c1d06b96

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: delete juno

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

Title:
  cannot delete image with status='deleted' and deleted=0

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Hi,

  in my OpenStack Juno I have created a snapshot that gone into status='deleted' after creation.
  When I try to delete this image I got a 404 "Image not found " and I cannot delete image in no way.

  In "images" table DB the record fields are:

  *************************** 1. row ***************************
                id: 5c79d539-f256-422c-b376-4c27c1d06b96
              name: my_image
              size: 901840896
            status: deleted
         is_public: 0
        created_at: 2015-05-07 15:24:45
        updated_at: 2015-05-07 15:25:18
        deleted_at: NULL
           deleted: 0
       disk_format: qcow2
  container_format: bare
          checksum: 4483088a8840fa463d518085ae515b7b
             owner: fdd21cc5a7b144b8920cc815ab8ea2a9
          min_disk: 1
           min_ram: 0
         protected: 0
      virtual_size: NULL

  
  For replicate this issue, I have created an image and I have change the status (via mysql UPDATE) from "active" to "deleted".

  UPDATE images SET status='deleted' WHERE id =
  '5c79d539-f256-422c-b376-4c27c1d06b96';

  and if I run:

  # glance image-delete 5c79d539-f256-422c-b376-4c27c1d06b96

  result is:

  <html>
   <head>
    <title>404 Not Found</title>
   </head>
   <body>
    <h1>404 Not Found</h1>
    Image 5c79d539-f256-422c-b376-4c27c1d06b96 not found.<br /><br />

   </body>
  </html> (HTTP 404): Unable to delete image 5c79d539-f256-422c-b376-4c27c1d06b96

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


Follow ups

References