Advertisement
Guest User

Untitled

a guest
Mar 8th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. nova --debug image-list
  2.  
  3. REQ: curl -i http://192.168.106.150:8774/v2/226c9f6bb7074b19ac9caee949e4ed92/images/detail -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 9782bb5e990f48aebdd783f97b9082e0"
  4.  
  5. connect: (192.168.106.150, 8774)
  6. send: u'GET /v2/226c9f6bb7074b19ac9caee949e4ed92/images/detail HTTP/1.1\r\nHost: 192.168.106.150:8774\r\nx-auth-project-id: demo\r\nx-auth-token: 9782bb5e990f48aebdd783f97b9082e0\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  7. reply: 'HTTP/1.1 401 Unauthorized\r\n'
  8. header: Www-Authenticate: Keystone uri='http://127.0.0.1:35357'
  9. header: Content-Length: 276
  10. header: Content-Type: text/plain; charset=UTF-8
  11. header: Date: Fri, 08 Mar 2013 16:14:26 GMT
  12. RESP:{'date': 'Fri, 08 Mar 2013 16:14:26 GMT', 'status': '401', 'content-length': '276', 'content-type': 'text/plain; charset=UTF-8', 'www-authenticate': "Keystone uri='http://127.0.0.1:35357'"} 401 Unauthorized
  13.  
  14. This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
  15.  
  16. Authentication required
  17.  
  18.  
  19. REQ: curl -i http://192.168.106.150:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "admin", "password": "password"}}}'
  20.  
  21. connect: (192.168.106.150, 5000)
  22. send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.106.150:5000\r\nContent-Length: 102\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": "demo", "passwordCredentials": {"username": "admin", "password": "password"}}}'
  23. reply: 'HTTP/1.1 200 OK\r\n'
  24. header: Vary: X-Auth-Token
  25. header: Content-Type: application/json
  26. header: Date: Fri, 08 Mar 2013 16:14:26 GMT
  27. header: Transfer-Encoding: chunked
  28. RESP:{'date': 'Fri, 08 Mar 2013 16:14:26 GMT', 'transfer-encoding': 'chunked', 'status': '200', 'content-type': 'application/json', 'vary': 'X-Auth-Token'} {"access": {"token": {"expires": "2013-03-09T16:14:26Z", "id": "eeac729db7384f3f9a057824eab61cea", "tenant": {"enabled": true, "description": "Default Tenant", "name": "demo", "id": "226c9f6bb7074b19ac9caee949e4ed92"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.106.150:8776/v2/226c9f6bb7074b19ac9caee949e4ed92", "region": "RegionOne", "internalURL": "http://192.168.106.150:8776/v2/226c9f6bb7074b19ac9caee949e4ed92", "id": "2c9619f827014694956868a859eb6687", "publicURL": "http://192.168.106.150:8776/v2/226c9f6bb7074b19ac9caee949e4ed92"}], "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints": [{"adminURL": "http://192.168.106.150:9292", "region": "RegionOne", "internalURL": "http://192.168.106.150:9292", "id": "5acd75f2b9334ab2af59916a3414a7a2", "publicURL": "http://192.168.106.150:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://192.168.106.150:8774/v2/226c9f6bb7074b19ac9caee949e4ed92", "region": "RegionOne", "internalURL": "http://192.168.106.150:8774/v2/226c9f6bb7074b19ac9caee949e4ed92", "id": "b84c018d850a476cb02da6f2f90216f7", "publicURL": "http://192.168.106.150:8774/v2/226c9f6bb7074b19ac9caee949e4ed92"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://192.168.106.150:5000/v2.0", "region": "RegionOne", "internalURL": "http://192.168.106.150:5000/v2.0", "id": "d5c31442c17a495490457ed37a610cac", "publicURL": "http://192.168.106.150:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "ce88888de9094b7e8eee681ba463eba1", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["8b11bb6a4af74eaf93a1d33d9fa94b29"]}}}
  29.  
  30.  
  31. REQ: curl -i http://192.168.106.150:8774/v2/226c9f6bb7074b19ac9caee949e4ed92/images/detail -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: eeac729db7384f3f9a057824eab61cea"
  32.  
  33. send: u'GET /v2/226c9f6bb7074b19ac9caee949e4ed92/images/detail HTTP/1.1\r\nHost: 192.168.106.150:8774\r\nx-auth-project-id: demo\r\nx-auth-token: eeac729db7384f3f9a057824eab61cea\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  34. reply: 'HTTP/1.1 401 Unauthorized\r\n'
  35. header: Www-Authenticate: Keystone uri='http://127.0.0.1:35357'
  36. header: Content-Length: 276
  37. header: Content-Type: text/plain; charset=UTF-8
  38. header: Date: Fri, 08 Mar 2013 16:14:26 GMT
  39. RESP:{'date': 'Fri, 08 Mar 2013 16:14:26 GMT', 'status': '401', 'content-length': '276', 'content-type': 'text/plain; charset=UTF-8', 'www-authenticate': "Keystone uri='http://127.0.0.1:35357'"} 401 Unauthorized
  40.  
  41. This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
  42.  
  43. Authentication required
  44.  
  45. DEBUG (shell:534) n/a (HTTP 401)
  46. Traceback (most recent call last):
  47. File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 531, in main
  48. OpenStackComputeShell().main(sys.argv[1:])
  49. File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 467, in main
  50. args.func(self.cs, args)
  51. File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 506, in do_image_list
  52. image_list = cs.images.list()
  53. File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 47, in list
  54. return self._list("/images/detail", "images")
  55. File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list
  56. _resp, body = self.api.client.get(url)
  57. File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 239, in get
  58. return self._cs_request(url, 'GET', **kwargs)
  59. File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in _cs_request
  60. raise ex
  61. Unauthorized: n/a (HTTP 401)
  62. ERROR: n/a (HTTP 401)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement