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)
This bug is reproducible n Diablo Final also