Advertisement
Guest User

Output of "nova-api --debug image-list"

a guest
Nov 13th, 2012
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.21 KB | None | 0 0
  1. root@bodega:/etc/nova# nova --debug image-list
  2.  
  3. REQ: curl -i http://10.176.20.158:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "admin", "password": "admin"}}}'
  4.  
  5. connect: (10.176.20.158, 5000)
  6. send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.176.20.158:5000\r\nContent-Length: 108\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": "admin", "password": "admin"}}}'
  7. reply: 'HTTP/1.1 200 OK\r\n'
  8. header: Vary: X-Auth-Token
  9. header: Content-Type: application/json
  10. header: Date: Tue, 13 Nov 2012 21:56:40 GMT
  11. header: Transfer-Encoding: chunked
  12. RESP:{'date': 'Tue, 13 Nov 2012 21:56:40 GMT', 'transfer-encoding': 'chunked', 'status': '200', 'content-type': 'application/json', 'vary': 'X-Auth-Token'} {"access": {"token": {"expires": "2012-11-14T21:56:40Z", "id": "c707224768ce447590813d836e6e8ef5", "tenant": {"enabled": true, "description": "Default Tenant", "name": "openstackDemo", "id": "ce1e819636744dc680fa5515f6475e87"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87", "region": "RegionOne", "internalURL": "http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87", "id": "7fdf2e50d29a454897f3c5d395a8326f", "publicURL": "http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.176.20.158:9292/v1", "region": "RegionOne", "internalURL": "http://10.176.20.158:9292/v1", "id": "36f5a5c3021a485db6b900aee9d7520c", "publicURL": "http://10.176.20.158:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://10.176.20.158:8776/v1/ce1e819636744dc680fa5515f6475e87", "region": "RegionOne", "internalURL": "http://10.176.20.158:8776/v1/ce1e819636744dc680fa5515f6475e87", "id": "e298efba7f0148819c400a26e7f6f448", "publicURL": "http://10.176.20.158:8776/v1/ce1e819636744dc680fa5515f6475e87"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://10.176.20.158:8773/services/Admin", "region": "RegionOne", "internalURL": "http://10.176.20.158:8773/services/Cloud", "id": "35c19563fce34c04a20cc82952b096b5", "publicURL": "http://10.176.20.158:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://10.176.20.158:8888/v1", "region": "RegionOne", "internalURL": "http://10.176.20.158:8888/v1/AUTH_ce1e819636744dc680fa5515f6475e87", "id": "1753b8533e474cf0934cd2eb1d23be45", "publicURL": "http://10.176.20.158:8888/v1/AUTH_ce1e819636744dc680fa5515f6475e87"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://10.176.20.158:35357/v2.0", "region": "RegionOne", "internalURL": "http://10.176.20.158:5000/v2.0", "id": "9b1ade95c694401cb61362daf281713b", "publicURL": "http://10.176.20.158:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "ce016bb05df949ebbafcc7c165359d7c", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["eefe3905827749188bf731c77eb9e75e"]}}}
  13.  
  14.  
  15. REQ: curl -i http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/images/detail -X GET -H "X-Auth-Project-Id: openstackDemo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: c707224768ce447590813d836e6e8ef5"
  16.  
  17. connect: (10.176.20.158, 8774)
  18. send: u'GET /v2/ce1e819636744dc680fa5515f6475e87/images/detail HTTP/1.1\r\nHost: 10.176.20.158:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: c707224768ce447590813d836e6e8ef5\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  19. reply: 'HTTP/1.1 401 Unauthorized\r\n'
  20. header: Www-Authenticate: Keystone uri='http://127.0.0.1:35357'
  21. header: Content-Length: 276
  22. header: Content-Type: text/plain; charset=UTF-8
  23. header: Date: Tue, 13 Nov 2012 21:56:40 GMT
  24. RESP:{'date': 'Tue, 13 Nov 2012 21:56:40 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
  25.  
  26. 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.
  27.  
  28. Authentication required
  29.  
  30.  
  31. REQ: curl -i http://10.176.20.158:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "admin", "password": "admin"}}}'
  32.  
  33. send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.176.20.158:5000\r\nContent-Length: 108\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": "admin", "password": "admin"}}}'
  34. reply: 'HTTP/1.1 200 OK\r\n'
  35. header: Vary: X-Auth-Token
  36. header: Content-Type: application/json
  37. header: Date: Tue, 13 Nov 2012 21:56:41 GMT
  38. header: Transfer-Encoding: chunked
  39.  
  40. RESP:{'date': 'Tue, 13 Nov 2012 21:56:41 GMT', 'transfer-encoding': 'chunked', 'status': '200', 'content-type': 'application/json', 'vary': 'X-Auth-Token'} {"access": {"token": {"expires": "2012-11-14T21:56:40Z", "id": "b7bae36bd93f491aace67eeb0e4ef420", "tenant": {"enabled": true, "description": "Default Tenant", "name": "openstackDemo", "id": "ce1e819636744dc680fa5515f6475e87"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87", "region": "RegionOne", "internalURL": "http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87", "id": "7fdf2e50d29a454897f3c5d395a8326f", "publicURL": "http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.176.20.158:9292/v1", "region": "RegionOne", "internalURL": "http://10.176.20.158:9292/v1", "id": "36f5a5c3021a485db6b900aee9d7520c", "publicURL": "http://10.176.20.158:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://10.176.20.158:8776/v1/ce1e819636744dc680fa5515f6475e87", "region": "RegionOne", "internalURL": "http://10.176.20.158:8776/v1/ce1e819636744dc680fa5515f6475e87", "id": "e298efba7f0148819c400a26e7f6f448", "publicURL": "http://10.176.20.158:8776/v1/ce1e819636744dc680fa5515f6475e87"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://10.176.20.158:8773/services/Admin", "region": "RegionOne", "internalURL": "http://10.176.20.158:8773/services/Cloud", "id": "35c19563fce34c04a20cc82952b096b5", "publicURL": "http://10.176.20.158:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://10.176.20.158:8888/v1", "region": "RegionOne", "internalURL": "http://10.176.20.158:8888/v1/AUTH_ce1e819636744dc680fa5515f6475e87", "id": "1753b8533e474cf0934cd2eb1d23be45", "publicURL": "http://10.176.20.158:8888/v1/AUTH_ce1e819636744dc680fa5515f6475e87"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://10.176.20.158:35357/v2.0", "region": "RegionOne", "internalURL": "http://10.176.20.158:5000/v2.0", "id": "9b1ade95c694401cb61362daf281713b", "publicURL": "http://10.176.20.158:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "ce016bb05df949ebbafcc7c165359d7c", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["eefe3905827749188bf731c77eb9e75e"]}}}
  41.  
  42.  
  43. REQ: curl -i http://10.176.20.158:8774/v2/ce1e819636744dc680fa5515f6475e87/images/detail -X GET -H "X-Auth-Project-Id: openstackDemo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: b7bae36bd93f491aace67eeb0e4ef420"
  44.  
  45. send: u'GET /v2/ce1e819636744dc680fa5515f6475e87/images/detail HTTP/1.1\r\nHost: 10.176.20.158:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: b7bae36bd93f491aace67eeb0e4ef420\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  46. reply: 'HTTP/1.1 401 Unauthorized\r\n'
  47. header: Www-Authenticate: Keystone uri='http://127.0.0.1:35357'
  48. header: Content-Length: 276
  49. header: Content-Type: text/plain; charset=UTF-8
  50. header: Date: Tue, 13 Nov 2012 21:56:41 GMT
  51. RESP:{'date': 'Tue, 13 Nov 2012 21:56:41 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
  52.  
  53. 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.
  54.  
  55. Authentication required
  56.  
  57. DEBUG (shell:534) n/a (HTTP 401)
  58. Traceback (most recent call last):
  59. File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 531, in main
  60. OpenStackComputeShell().main(sys.argv[1:])
  61. File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 467, in main
  62. args.func(self.cs, args)
  63. File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 506, in do_image_list
  64. image_list = cs.images.list()
  65. File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 47, in list
  66. return self._list("/images/detail", "images")
  67. File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list
  68. _resp, body = self.api.client.get(url)
  69. File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 239, in get
  70. return self._cs_request(url, 'GET', **kwargs)
  71. File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in _cs_request
  72. raise ex
  73. Unauthorized: n/a (HTTP 401)
  74. ERROR: n/a (HTTP 401)
  75. root@bodega:/etc/nova#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement