yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #16955
[Bug 1338567] [NEW] delete the image using v2 api when we upload a image using v1 api, glance don't delete the image data after finishing the uploading.
Public bug reported:
First, I use glance cli to upload a image
glance image-create --name myimage --disk-format=raw --container-format=bare --file /path/to/file.img
At the same time, I use the v2 api to delete the image
curl -i -X DELETE -H 'X-Auth-Token: $TOKNE_ID' -H 'Content-Type: application/json' http://localhost:9292/v2/images/$IMAGE_ID.
After the uploading is finished, the response shows that the image status is active and the image is deleted. The image data that has been uploaded has not been removed from glance store backend.
The right response should be "Image xxxx could not be found after upload. The image may have been deleted during the upload." as we see when we upload image using v1 api and delete using v1 api or we upload image using v2 api and delete using 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/1338567
Title:
delete the image using v2 api when we upload a image using v1 api,
glance don't delete the image data after finishing the uploading.
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
First, I use glance cli to upload a image
glance image-create --name myimage --disk-format=raw --container-format=bare --file /path/to/file.img
At the same time, I use the v2 api to delete the image
curl -i -X DELETE -H 'X-Auth-Token: $TOKNE_ID' -H 'Content-Type: application/json' http://localhost:9292/v2/images/$IMAGE_ID.
After the uploading is finished, the response shows that the image status is active and the image is deleted. The image data that has been uploaded has not been removed from glance store backend.
The right response should be "Image xxxx could not be found after upload. The image may have been deleted during the upload." as we see when we upload image using v1 api and delete using v1 api or we upload image using v2 api and delete using v2 api.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1338567/+subscriptions
Follow ups
References