Image operations result in MultipleChoice exceptions

Asked by Wyllys Ingersoll on 2013-02-15

Im trying to setup glance and add a new image. db_sync ran cleanly and the database appears to be OK. However any attempt to add a new image or view images results in the following errors:

# glance add name="Ubuntu 12.04 LTS" is_public=true container_format=ovf disk_format=qcow2 location=file://`pwd`/images/ubuntu-12.04-server-cloudimg-amd64-disk1.img
Failed to add image. Got error:
The request returned a 302 Multiple Choices. This generally means that you have not included a version indicator in a request URI.

The body of response returned:
{"versions": [{"status": "CURRENT", "id": "v1.1", "links": [{"href": "http://127.0.0.1:9292/v1/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v1.0", "links": [{"href": "http://127.0.0.1:9292/v1/", "rel": "self"}]}]}
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.

Any clues as to what might be misconfigured to cause this?

thanks...

Question information

Language:
English Edit question
Status:
Answered
For:
Glance Edit question
Assignee:
No assignee Edit question
Last query:
2013-02-15
Last reply:
2013-02-20
Iccha Sethi (iccha-sethi) said : #1

which version of glance are you using?

Apparently, Im using 2012.1.3-dev on Ubuntu 12.04

# glance --version
glance 2012.1.3-dev

Also, any glance comment seems to cause the problem. Im sure it's probably a configuration problem but I cant figure out what it would be.

# glance index
Failed to show index. Got error:
The request returned a 302 Multiple Choices. This generally means that you have not included a version indicator in a request URI.

The body of response returned:
{"versions": [{"status": "CURRENT", "id": "v1.1", "links": [{"href": "http://127.0.0.1:9292/v1/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v1.0", "links": [{"href": "http://127.0.0.1:9292/v1/", "rel": "self"}]}]}

Jason (zzs) said : #4

This problem happened before and already solved, please check here: https://answers.launchpad.net/glance/+question/179616

Can you help with this problem?

Provide an answer of your own, or ask Wyllys Ingersoll for more information if necessary.

To post a message you must log in.