instance launching broken when using nova-api generated imageRefs through osapi

Bug #816713 reported by Anthony Young
6
This bug affects 1 person
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://myhost:8774/v1.1/images/3:

curl -v -X 'POST' http://myhost:8774/v1.1/servers -H 'Content-Type: application/json' -H 'X-Auth-Token: mytoken' -d '{"server": {"flavorRef": "http://myhost:8774/v1.1/flavors/2", "name": "testing server creation", "imageRef": "http://myhost:8774/v1.1/images/3"}}'
* 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-darwin10.2.0) libcurl/7.20.0 OpenSSL/0.9.8m zlib/1.2.3 libidn/1.16
> 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://myhost:8774/v1.1/images/3: 'images'", "code": 400}}

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

Thierry Carrez (ttx)
Changed in nova:
assignee: nobody → sleepsonthefloor (sleepsonthefloor)
importance: Undecided → Medium
status: New → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-4
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-4 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.