Attempting to delete an image from Glance that is in use breaks subsequent usage of that image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder-tempest-plugin |
New
|
Medium
|
Sofia Enriquez | ||
tripleo |
In Progress
|
High
|
Giulio Fidente |
Bug Description
Steps to Reproduce:
1.Upload the image to Glance:
$ glance image-create-
2. Create a volume from this image:
$ openstack volume create --image centos7-
3. Attempt to delete the image while it is in use:
$ openstack image delete centos7-
Failed to delete image with name or ID 'centos7-
Failed to delete 1 of 1 images.
4. Attempt to create another image from:
$ openstack volume create --image centos7-
5. Review volume status:
$ openstack volume list
+------
| ID | Name | Status | Size | Attached to |
+------
| 72b54a39-
| 497ddbb2-
+------
Actual results:
Image is not deleted, still present in Ceph/Glance. But all future use of the image is not possible.
$ openstack image list
+------
| ID | Name | Status |
+------
| 8d7e12cb-
+------
$ rbd ls -p images
8d7e12cb-
$ rbd ls -p volumes
volume-
$ ceph df
...
POOLS:
POOL ID STORED OBJECTS USED %USED MAX AVAIL
images 1 2.3 GiB 296 6.8 GiB 0 22 TiB
volumes 2 1.3 KiB 6 36 KiB 0 22 TiB
...
Changed in tripleo: | |
assignee: | nobody → Giulio Fidente (gfidente) |
Changed in cinder-tempest-plugin: | |
importance: | Undecided → Medium |
assignee: | nobody → Sofia Enriquez (lsofia-enriquez) |
Fix proposed to branch: stable/victoria /review. opendev. org/c/openstack /tripleo- heat-templates/ +/818320
Review: https:/