Add image location fails when show_multiple_locations = false
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Background:
I'm working on getting full glance v2 support into Horizon with this patch: https:/
I provided the curl calls below for clarity to reproduce this, but Horizon uses python-glanceclient to send the REST api calls.
I reproduced this issue with the latest devstack as of 6/22/16 on ubuntu 14.04.
Steps to reproduce:
1. Create an image via the glance v2 api (seems to work fine):
curl -g -i -X POST -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-
{"status": "queued", "name": "bradtest", "tags": [], "container_format": "bare", "created_at": "2016-06-
2. Update the image with a location:
curl -g -i -X PATCH -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-
The update call fails with this error:
403 Forbidden
It's not allowed to add locations if locations are invisible.
I see this in the glance-api log:
2016-06-22 07:17:35.083 29566 INFO eventlet.
If I set show_multiple_
It's entirely possible we're doing something wrong in Horizon when using the v2 api, but I'm wondering if this behavior from the v2 api is expected.
Changed in glance: | |
status: | New → Confirmed |
Tim Symanczyk pointed this out to me: /wiki.openstack .org/wiki/ Glance- v2-v1-client- compatability
https:/
image-create and image-update with the --location option both say they're not implemented in v2. I'm not sure if that means specifying a location is no longer supposed to be supported in v2.