"nova boot" command show "Missing imageRef attribute (HTTP 400)"

Bug #879318 reported by livemoon
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

I use "nova --debug boot --flavor 1 --image 8 test" to create a instance
error shows:
openstack@nova-test:/data$ nova --debug boot --flavor 1 --image 8 test
connect: (127.0.0.1, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: 103\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "p4ssw0rd"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Content-Length: 1033
header: Date: Fri, 21 Oct 2011 09:21:44 GMT
connect: (192.168.200.21, 8774)
send: u'POST /v1.1/1/servers HTTP/1.1\r\nHost: 192.168.200.21:8774\r\nContent-Length: 89\r\nx-auth-project-id: admin\r\nx-auth-token: 999888777666\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-novaclient\r\n\r\n{"server": {"min_count": 1, "flavorId": 1, "max_count": 1, "name": "test", "imageId": 8}}'
eventlet.wsgi.server: DEBUG 127.0.0.1 - - [21/Oct/2011 17:21:44] "POST /v2.0/tokens HTTP/1.1" 200 1158 0.038471
eventlet.wsgi.server: DEBUG 127.0.0.1 - - [21/Oct/2011 17:21:44] "GET /v2.0/tokens/999888777666 HTTP/1.1" 200 457 0.019170
eventlet.wsgi.server: DEBUG 127.0.0.1 - - [21/Oct/2011 17:21:44] "GET /v2.0/tokens/999888777666 HTTP/1.1" 200 457 0.017450
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Content-Length: 70
header: Content-Type: application/json; charset=UTF-8
header: Date: Fri, 21 Oct 2011 09:21:44 GMT
Traceback (most recent call last):
  File "/usr/local/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient==2.6.6', 'console_scripts', 'nova')()
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/shell.py", line 225, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/shell.py", line 188, in main
    args.func(self.cs, args)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/v1_0/shell.py", line 195, in do_boot
    max_count=max_count)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/v1_0/servers.py", line 284, in create
    min_count=min_count, max_count=max_count)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/v1_0/base.py", line 100, in _boot
    return_raw=return_raw)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/base.py", line 83, in _create
    resp, body = self.api.client.post(url, body=body)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 134, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 118, in _cs_request
    **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 101, in request
    raise exceptions.from_response(resp, body)
novaclient.exceptions.BadRequest: Missing imageRef attribute (HTTP 400)

Revision history for this message
Ravikumar Venkatesan (ravikumar-venkatesan) wrote :

This bug is reproducible n Diablo Final also

Revision history for this message
Koji Iida (iida-koji) wrote :

You may need "--version 1.1" option

nova --debug boot --flavor 1 --image 8 --version 1.1 test

Revision history for this message
Ziad Sawalha (ziad-sawalha) wrote :

Is this a Keystone bug? Seems authentication is working fine and it is either a nova bug or nova finding an image in glance? Can we move this to Nova?

Revision history for this message
Dolph Mathews (dolph) wrote :

I agree; the conversation with keystone goes pretty smoothly.

Changed in keystone:
status: New → Invalid
affects: keystone → nova
Changed in nova:
status: Invalid → New
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Can you please verify this is still a valid bug? We only expect master branches to work together, while diablo branches should also work together. Keep in mind there is no diablo version of novaclient, so you shouldn't expect it to work with diablo nova.

Changed in nova:
status: New → Incomplete
Revision history for this message
Thierry Carrez (ttx) wrote :

We cannot solve the issue you reported without more information. Could you please provide the requested information ?

Revision history for this message
Thierry Carrez (ttx) wrote :

This bug lacks the necessary information to effectively reproduce and fix it, therefore it has been closed. Feel free to reopen the bug by providing the requested information and set the bug status back to ''New''.

Changed in nova:
status: Incomplete → Invalid
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.