← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1474236] Re: unexpect response when create an image with locations in api v2

 

In v2, locations can be added to an image using the PATCH method.

Please refer http://developer.openstack.org/api-ref-
image-v2.html#updateImage-v2.  If you are using the cli, that would be
glance --os-image-api-version 2 add-location --url <url> <image>.


** Changed in: glance
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1474236

Title:
  unexpect response when create an image with  locations in api v2

Status in Glance:
  Invalid

Bug description:
  When create an image with the parameter 'owner' or 'locations' in api
  v2, it will raise an error like:

  403 Forbidden
  Attribute 'locations' is reserved.

  Reproduce:

  Create an image like:

  POST    http://hostip:v2/images

  body:

  {
    "name": "v2_test",
    "tags": [
   "ubuntu",
   "quantal"
    ],
    "disk_format": "qcow2",
    "container_format": "bare",
    "locations": [
      {
        "url": "xxxxxx",
        "metadata":{}
      }
    ]
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1474236/+subscriptions


References