<div>Yesterday I use "nova boot" command to boot instance sucessfully.<br clear="all"></div><div><br></div><div>Today I just resintall keystone using https;//<a href="http://github.com/openstack">github.com/openstack</a></div>
<div><br></div><div>then I use "nova boot --flavor 1 --image 8 test", it show errors:</div><div><br></div><div>openstack@nova-test:/data$ nova --debug boot --flavor 1 --image 8 test<br>connect: (127.0.0.1, 5000)<br>
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: <a href="http://127.0.0.1:5000">127.0.0.1:5000</a>\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"}}}'<br>
reply: 'HTTP/1.1 200 OK\r\n'<br>header: Content-Type: application/json; charset=UTF-8<br>header: Content-Length: 1033<br>header: Date: Fri, 21 Oct 2011 09:21:44 GMT<br>connect: (192.168.200.21, 8774)<br>send: u'POST /v1.1/1/servers HTTP/1.1\r\nHost: <a href="http://192.168.200.21:8774">192.168.200.21:8774</a>\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}}'<br>
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<br>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<br>
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<br>reply: 'HTTP/1.1 400 Bad Request\r\n'<br>header: Content-Length: 70<br>header: Content-Type: application/json; charset=UTF-8<br>
header: Date: Fri, 21 Oct 2011 09:21:44 GMT<br>Traceback (most recent call last):<br> File "/usr/local/bin/nova", line 9, in <module><br> load_entry_point('python-novaclient==2.6.6', 'console_scripts', 'nova')()<br>
File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/shell.py", line 225, in main<br> OpenStackComputeShell().main(sys.argv[1:])<br> File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/shell.py", line 188, in main<br>
args.func(self.cs, args)<br> 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<br> max_count=max_count)<br> 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<br>
min_count=min_count, max_count=max_count)<br> 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<br> return_raw=return_raw)<br> File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/base.py", line 83, in _create<br>
resp, body = self.api.client.post(url, body=body)<br> File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 134, in post<br> return self._cs_request(url, 'POST', **kwargs)<br>
File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 118, in _cs_request<br> **kwargs)<br> File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 101, in request<br>
raise exceptions.from_response(resp, body)<br>novaclient.exceptions.BadRequest: Missing imageRef attribute (HTTP 400)<br></div><br>-- <br>非淡薄无以明志,非宁静无以致远<br>