← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1750892] Re: Image remains in queued status after location set via PATCH

 

Reviewed:  https://review.openstack.org/592775
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=e2c54d58b33c7350c78629cc7726b5fa4509637b
Submitter: Zuul
Branch:    master

commit e2c54d58b33c7350c78629cc7726b5fa4509637b
Author: imacdonn <iain.macdonnell@xxxxxxxxxx>
Date:   Fri Aug 17 00:55:08 2018 +0000

    Update status to active when locations replaced
    
    Image status should be changed from 'queued' to 'active' when
    'locations' has been successfully replaced.
    
    Change-Id: I966688e67475e00a1eeb0cbe1632d5c811e41e4f
    Closes-Bug: 1750892


** Changed in: glance
       Status: In Progress => 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/1750892

Title:
  Image remains in queued status after location set via PATCH

Status in Glance:
  Fix Released

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