Advertisement
Guest User

Untitled

a guest
Apr 13th, 2012
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. lis@essex:~/creds$ nova --debug boot --flavor 1 --image ff0d6247-b40e-481e-803b-7c31124fbf82 server1
  2. connect: (192.168.100.142, 5000)
  3. send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.100.142:5000\r\nContent-Length: 117\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "adminUser", "password": "secretword"}}}'
  4. reply: 'HTTP/1.1 200 OK\r\n'
  5. header: Content-Type: application/json
  6. header: Vary: X-Auth-Token
  7. header: Date: Fri, 13 Apr 2012 15:24:25 GMT
  8. header: Transfer-Encoding: chunked
  9. connect: (192.168.100.142, 8774)
  10. send: u'GET /v2/2ad1fc162c254e59bea043560b7f73cb/flavors/1 HTTP/1.1\r\nHost: 192.168.100.142:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 179ca0bb579748eb8a28d9240bc94b0d\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  11. reply: 'HTTP/1.1 200 OK\r\n'
  12. header: X-Compute-Request-Id: req-172eed5c-f707-44d6-b70a-d0428b49e1c3
  13. header: Content-Type: application/json
  14. header: Content-Length: 357
  15. header: Date: Fri, 13 Apr 2012 15:24:25 GMT
  16. send: u'GET /v2/2ad1fc162c254e59bea043560b7f73cb/images/ff0d6247-b40e-481e-803b-7c31124fbf82 HTTP/1.1\r\nHost: 192.168.100.142:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 179ca0bb579748eb8a28d9240bc94b0d\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  17. reply: 'HTTP/1.1 200 OK\r\n'
  18. header: X-Compute-Request-Id: req-5150e5b0-2978-4ce7-a0b9-3d278e94dfe2
  19. header: Content-Type: application/json
  20. header: Content-Length: 722
  21. header: Date: Fri, 13 Apr 2012 15:24:25 GMT
  22. send: u'GET /v2/2ad1fc162c254e59bea043560b7f73cb/images/ff0d6247-b40e-481e-803b-7c31124fbf82 HTTP/1.1\r\nHost: 192.168.100.142:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 179ca0bb579748eb8a28d9240bc94b0d\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  23. reply: 'HTTP/1.1 200 OK\r\n'
  24. header: X-Compute-Request-Id: req-c043bcaf-922f-4049-93f3-20dd783a72a2
  25. header: Content-Type: application/json
  26. header: Content-Length: 722
  27. header: Date: Fri, 13 Apr 2012 15:24:25 GMT
  28. send: u'GET /v2/2ad1fc162c254e59bea043560b7f73cb/flavors/1 HTTP/1.1\r\nHost: 192.168.100.142:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 179ca0bb579748eb8a28d9240bc94b0d\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  29. reply: 'HTTP/1.1 200 OK\r\n'
  30. header: X-Compute-Request-Id: req-e453fb2f-4cc2-437b-8154-edb1dfc5bc2f
  31. header: Content-Type: application/json
  32. header: Content-Length: 357
  33. header: Date: Fri, 13 Apr 2012 15:24:25 GMT
  34. send: u'POST /v2/2ad1fc162c254e59bea043560b7f73cb/servers HTTP/1.1\r\nHost: 192.168.100.142:8774\r\nContent-Length: 133\r\nx-auth-project-id: openstackDemo\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 179ca0bb579748eb8a28d9240bc94b0d\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"server": {"min_count": 1, "flavorRef": "1", "name": "server1", "imageRef": "ff0d6247-b40e-481e-803b-7c31124fbf82", "max_count": 1}}'
  35. reply: 'HTTP/1.1 400 Bad Request\r\n'
  36. header: Content-Length: 72
  37. header: Content-Type: application/json; charset=UTF-8
  38. header: X-Compute-Request-Id: req-ae1c01ed-3aa3-421c-a1e1-bf5840497336
  39. header: Date: Fri, 13 Apr 2012 15:24:25 GMT
  40. DEBUG (shell:416) Can not find requested image (HTTP 400)
  41. Traceback (most recent call last):
  42. File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in main
  43. OpenStackComputeShell().main(sys.argv[1:])
  44. File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in main
  45. args.func(self.cs, args)
  46. File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 209, in do_boot
  47. server = cs.servers.create(*boot_args, **boot_kwargs)
  48. File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 456, in create
  49. **boot_kwargs)
  50. File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/base.py", line 153, in _boot
  51. return_raw=return_raw, **kwargs)
  52. File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 157, in _create
  53. resp, body = self.api.client.post(url, body=body)
  54. File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 139, in post
  55. return self._cs_request(url, 'POST', **kwargs)
  56. File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, in _cs_request
  57. **kwargs)
  58. File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in request
  59. raise exceptions.from_response(resp, body)
  60. BadRequest: Can not find requested image (HTTP 400)
  61. ERROR: Can not find requested image (HTTP 400)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement