Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openstack@controller:/data$ nova --debug boot --flavor 1 --image 8 test
- connect: (10.200.200.4, 5000)
- send: 'GET / HTTP/1.1\r\nHost: 10.200.200.4:5000\r\nx-auth-project-id: admin\r\nx-auth-key: Mko09ijn\r\naccept-encoding: gzip, deflate\r\nx-auth-user: admin\r\nuser-agent: python-novaclient\r\n\r\n'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Content-Type: application/json; charset=UTF-8
- header: Content-Length: 981
- header: Date: Fri, 21 Oct 2011 02:07:43 GMT
- send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.200.200.4: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": "Mko09ijn"}}}'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Content-Type: application/json; charset=UTF-8
- header: Content-Length: 1010
- header: Date: Fri, 21 Oct 2011 02:07:43 GMT
- connect: (10.200.200.2, 8774)
- send: u'POST /v1.1/1/servers HTTP/1.1\r\nHost: 10.200.200.2:8774\r\nContent-Length: 89\r\nx-auth-project-id: admin\r\nx-auth-token: Mko09ijnbhu87ygv\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}}'
- 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 02:07:34 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)
Advertisement
Add Comment
Please, Sign In to add comment