yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00848
[Bug 1098651] Re: v1/images/delete return 'null' body
** Changed in: glance
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1098651
Title:
v1/images/delete return 'null' body
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
[root@nova1 fog]# glance -d delete 66ceef41-7505-45db-a1cc-98dd72ac3d46
Delete image 66ceef41-7505-45db-a1cc-98dd72ac3d46? [y/N] y
curl -i -X HEAD -H 'X-Auth-Token: 02101a0a8fbe46cb807a03408182c8ba' -H 'Content-Type: application/octet-stream' -H 'User-Agent: python-glanceclient' http://localhost:9292/v1/images/66ceef41-7505-45db-a1cc-98dd72ac3d46
HTTP/1.1 200 OK
content-length: 0
x-image-meta-id: 66ceef41-7505-45db-a1cc-98dd72ac3d46
date: Fri, 11 Jan 2013 17:07:54 GMT
x-image-meta-deleted: False
x-image-meta-container_format: ami
x-image-meta-protected: False
x-image-meta-min_disk: 0
x-image-meta-created_at: 2013-01-11T17:07:06
x-image-meta-size: -200
x-image-meta-status: active
location: http://localhost:9292/v1/images/66ceef41-7505-45db-a1cc-98dd72ac3d46
x-image-meta-is_public: False
x-image-meta-min_ram: 0
x-image-meta-owner: 75f40ba4cdb54f608e7184a823bd68bf
x-image-meta-updated_at: 2013-01-11T17:07:06
content-type: text/html; charset=UTF-8
x-openstack-request-id: req-dd51cd94-5c7e-4497-9ca0-070780649548
x-image-meta-disk_format: ami
x-image-meta-name: foo
curl -i -X DELETE -H 'X-Auth-Token: 02101a0a8fbe46cb807a03408182c8ba'
-H 'Content-Type: application/octet-stream' -H 'User-Agent: python-
glanceclient' http://localhost:9292/v1/images/66ceef41-7505-45db-a1cc-
98dd72ac3d46
HTTP/1.1 200 OK
date: Fri, 11 Jan 2013 17:07:54 GMT
content-length: 4
content-type: application/json; charset=UTF-8
x-openstack-request-id: req-619443d0-899d-42d7-a574-264e224e04c4
null
-----
Ideally we could actually return HTTP 204 (no content)... but for
backwards compat we still return HTTP 200 for a v1/image DELETE
request. Even so... according to the docs "This operation does not
return a response body" so I think 'null' should actually just be ''.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1098651/+subscriptions