instance launching broken when using nova-api generated imageRefs through osapi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Anthony Young |
Bug Description
When attempting to launch a server through the OSAPI, I get the following error when trying to launch the image http://
curl -v -X 'POST' http://
* About to connect() to myhost port 8774 (#0)
* Trying myhost... connected
* Connected to myhost (ip) port 8774 (#0)
> POST /v1.1/servers HTTP/1.1
> User-Agent: curl/7.20.0 (i386-apple-
> Host: myhost:8774
> Accept: */*
> Content-Type: application/json
> X-Auth-Token: mytoken
> Content-Length: 158
>
< HTTP/1.1 400 Bad Request
< Content-Length: 121
< Content-Type: application/json; charset=UTF-8
< Date: Tue, 26 Jul 2011 16:27:05 GMT
<
* Connection #0 to host myhost left intact
* Closing connection #0
{"badRequest": {"message": "Cannot find requested image http://
The error is that nova attempts to retrieve images/detail by talking to itself over port 8774 rather than by talking to glance directly over port 5000. Instead, nova should be talking to glance using default parameters.
Related branches
- Vish Ishaya (community): Approve
- William Wolf (community): Approve
- Brian Waldon (community): Approve
-
Diff: 43 lines (+8/-3)3 files modifiednova/api/openstack/create_instance_helper.py (+5/-0)
nova/tests/api/openstack/fakes.py (+1/-2)
nova/tests/api/openstack/test_servers.py (+2/-1)
Changed in nova: | |
assignee: | nobody → sleepsonthefloor (sleepsonthefloor) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-4 |
Changed in nova: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |