← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1383973] [NEW] image data cannot be removed when deleting a saving status image

 

Public bug reported:

The image data in /var/lib/glance/images/ cannot be removed when I
delete a image that status is saving.

1. create a image
 glance image-create --name image-v1 --disk-format raw --container-format bare --file xx.image --is-public true

2. list the created image, the status is saving
[root@node2 ~]# glance image-list
+--------------------------------------+----------+-------------+------------------+------+--------+
| ID                                   | Name     | Disk Format | Container Format | Size | Status |
+--------------------------------------+----------+-------------+------------------+------+--------+
| 00ec3d8d-41a5-4f7c-9448-694099a39bcf | image-v1 | raw         | bare             | 18   | saving |
+--------------------------------------+----------+-------------+------------------+------+--------+

3. delete the created image
glance image-delete image-v1

4. the image has been deleted but the image data still exists
[root@node2 ~]# glance image-list
+----+------+-------------+------------------+------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+----+------+-------------+------------------+------+--------+
+----+------+-------------+------------------+------+--------+

[root@node2 ~]# ls /var/lib/glance/images
00ec3d8d-41a5-4f7c-9448-694099a39bcf

This problem exists in both v1 and v2 API.

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  image data cannot be removed when deleting a saving status image

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

Bug description:
  The image data in /var/lib/glance/images/ cannot be removed when I
  delete a image that status is saving.

  1. create a image
   glance image-create --name image-v1 --disk-format raw --container-format bare --file xx.image --is-public true

  2. list the created image, the status is saving
  [root@node2 ~]# glance image-list
  +--------------------------------------+----------+-------------+------------------+------+--------+
  | ID                                   | Name     | Disk Format | Container Format | Size | Status |
  +--------------------------------------+----------+-------------+------------------+------+--------+
  | 00ec3d8d-41a5-4f7c-9448-694099a39bcf | image-v1 | raw         | bare             | 18   | saving |
  +--------------------------------------+----------+-------------+------------------+------+--------+

  3. delete the created image
  glance image-delete image-v1

  4. the image has been deleted but the image data still exists
  [root@node2 ~]# glance image-list
  +----+------+-------------+------------------+------+--------+
  | ID | Name | Disk Format | Container Format | Size | Status |
  +----+------+-------------+------------------+------+--------+
  +----+------+-------------+------------------+------+--------+

  [root@node2 ~]# ls /var/lib/glance/images
  00ec3d8d-41a5-4f7c-9448-694099a39bcf

  This problem exists in both v1 and v2 API.

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


Follow ups

References