yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74496
[Bug 1750892] Re: Image remains in queued status after location set via PATCH
** Changed in: glance
Milestone: None => stein-1
** Changed in: glance
Assignee: (unassigned) => iain MacDonnell (imacdonn)
** Also affects: glance/rocky
Importance: Undecided
Status: New
** Changed in: glance/rocky
Milestone: None => rocky-stable-1
** Changed in: glance/rocky
Assignee: (unassigned) => iain MacDonnell (imacdonn)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1750892
Title:
Image remains in queued status after location set via PATCH
Status in Glance:
Fix Released
Status in Glance rocky series:
New
Bug description:
Pike release, with show_image_direct_url and show_multiple_locations
enabled.
Attempting to create an image using the HTTP backend with the glance
v2 API. I create a new/blank image (goes into "queued" status), then
set the location with:
curl -g -i -X PATCH -H 'Accept-Encoding: gzip, deflate' -H 'Accept:
*/*' -H 'User-Agent: imacdonn-getting-dangerous' -H 'X-Auth-Token:
xxx' -H 'Content-Type: application/openstack-images-v2.1-json-patch'
-d '[{"op":"replace", "path": "/locations", "value": [{"url":
"http://my_http_server/cirros.img", "metadata": {}}]}]'
http://my_glance_api_endpoint:9292/v2/images/e5581f14-2d05-4ae7-8d78-9da42731a37e
This results in the direct_url getting set correctly, and the size of
the image is correctly determined, but the image remains in "queued"
status. It should become "active".
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1750892/+subscriptions
References