Advertisement
Guest User

Untitled

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