Guest User

Untitled

a guest
Oct 20th, 2011
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. openstack@controller:/data$ nova --debug boot --flavor 1 --image 8 test
  2. connect: (10.200.200.4, 5000)
  3. 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'
  4. reply: 'HTTP/1.1 200 OK\r\n'
  5. header: Content-Type: application/json; charset=UTF-8
  6. header: Content-Length: 981
  7. header: Date: Fri, 21 Oct 2011 02:07:43 GMT
  8. 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"}}}'
  9. reply: 'HTTP/1.1 200 OK\r\n'
  10. header: Content-Type: application/json; charset=UTF-8
  11. header: Content-Length: 1010
  12. header: Date: Fri, 21 Oct 2011 02:07:43 GMT
  13. connect: (10.200.200.2, 8774)
  14. 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}}'
  15. reply: 'HTTP/1.1 400 Bad Request\r\n'
  16. header: Content-Length: 70
  17. header: Content-Type: application/json; charset=UTF-8
  18. header: Date: Fri, 21 Oct 2011 02:07:34 GMT
  19. Traceback (most recent call last):
  20. File "/usr/local/bin/nova", line 9, in <module>
  21. load_entry_point('python-novaclient==2.6.6', 'console_scripts', 'nova')()
  22. File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/shell.py", line 225, in main
  23. OpenStackComputeShell().main(sys.argv[1:])
  24. File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/shell.py", line 188, in main
  25. args.func(self.cs, args)
  26. 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
  27. max_count=max_count)
  28. 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
  29. min_count=min_count, max_count=max_count)
  30. 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
  31. return_raw=return_raw)
  32. File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/base.py", line 83, in _create
  33. resp, body = self.api.client.post(url, body=body)
  34. File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 134, in post
  35. return self._cs_request(url, 'POST', **kwargs)
  36. File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 118, in _cs_request
  37. **kwargs)
  38. File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.6-py2.7.egg/novaclient/client.py", line 101, in request
  39. raise exceptions.from_response(resp, body)
  40. novaclient.exceptions.BadRequest: Missing imageRef attribute (HTTP 400)
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment