Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lis@essex:~/creds$ nova --debug boot --flavor 1 --image ff0d6247-b40e-481e-803b-7c31124fbf82 server1
- connect: (192.168.100.142, 5000)
- 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"}}}'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Content-Type: application/json
- header: Vary: X-Auth-Token
- header: Date: Fri, 13 Apr 2012 15:24:25 GMT
- header: Transfer-Encoding: chunked
- connect: (192.168.100.142, 8774)
- 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'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: X-Compute-Request-Id: req-172eed5c-f707-44d6-b70a-d0428b49e1c3
- header: Content-Type: application/json
- header: Content-Length: 357
- header: Date: Fri, 13 Apr 2012 15:24:25 GMT
- 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'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: X-Compute-Request-Id: req-5150e5b0-2978-4ce7-a0b9-3d278e94dfe2
- header: Content-Type: application/json
- header: Content-Length: 722
- header: Date: Fri, 13 Apr 2012 15:24:25 GMT
- 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'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: X-Compute-Request-Id: req-c043bcaf-922f-4049-93f3-20dd783a72a2
- header: Content-Type: application/json
- header: Content-Length: 722
- header: Date: Fri, 13 Apr 2012 15:24:25 GMT
- 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'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: X-Compute-Request-Id: req-e453fb2f-4cc2-437b-8154-edb1dfc5bc2f
- header: Content-Type: application/json
- header: Content-Length: 357
- header: Date: Fri, 13 Apr 2012 15:24:25 GMT
- 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}}'
- reply: 'HTTP/1.1 400 Bad Request\r\n'
- header: Content-Length: 72
- header: Content-Type: application/json; charset=UTF-8
- header: X-Compute-Request-Id: req-ae1c01ed-3aa3-421c-a1e1-bf5840497336
- header: Date: Fri, 13 Apr 2012 15:24:25 GMT
- DEBUG (shell:416) Can not find requested image (HTTP 400)
- Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in main
- OpenStackComputeShell().main(sys.argv[1:])
- File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in main
- args.func(self.cs, args)
- File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 209, in do_boot
- server = cs.servers.create(*boot_args, **boot_kwargs)
- File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 456, in create
- **boot_kwargs)
- File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/base.py", line 153, in _boot
- return_raw=return_raw, **kwargs)
- File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 157, in _create
- resp, body = self.api.client.post(url, body=body)
- File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 139, in post
- return self._cs_request(url, 'POST', **kwargs)
- File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, in _cs_request
- **kwargs)
- File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in request
- raise exceptions.from_response(resp, body)
- BadRequest: Can not find requested image (HTTP 400)
- ERROR: Can not find requested image (HTTP 400)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement