Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@bodega:/etc/nova# nova --debug image-list
- 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"}}}'
- connect: (10.176.20.158, 5000)
- 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"}}}'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Vary: X-Auth-Token
- header: Content-Type: application/json
- header: Date: Tue, 13 Nov 2012 21:56:40 GMT
- header: Transfer-Encoding: chunked
- 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"]}}}
- 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"
- connect: (10.176.20.158, 8774)
- 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'
- reply: 'HTTP/1.1 401 Unauthorized\r\n'
- header: Www-Authenticate: Keystone uri='http://127.0.0.1:35357'
- header: Content-Length: 276
- header: Content-Type: text/plain; charset=UTF-8
- header: Date: Tue, 13 Nov 2012 21:56:40 GMT
- 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
- 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.
- Authentication required
- 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"}}}'
- 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"}}}'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Vary: X-Auth-Token
- header: Content-Type: application/json
- header: Date: Tue, 13 Nov 2012 21:56:41 GMT
- header: Transfer-Encoding: chunked
- 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"]}}}
- 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"
- 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'
- reply: 'HTTP/1.1 401 Unauthorized\r\n'
- header: Www-Authenticate: Keystone uri='http://127.0.0.1:35357'
- header: Content-Length: 276
- header: Content-Type: text/plain; charset=UTF-8
- header: Date: Tue, 13 Nov 2012 21:56:41 GMT
- 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
- 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.
- Authentication required
- DEBUG (shell:534) n/a (HTTP 401)
- Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 531, in main
- OpenStackComputeShell().main(sys.argv[1:])
- File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 467, in main
- args.func(self.cs, args)
- File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 506, in do_image_list
- image_list = cs.images.list()
- File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 47, in list
- return self._list("/images/detail", "images")
- File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list
- _resp, body = self.api.client.get(url)
- File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 239, in get
- return self._cs_request(url, 'GET', **kwargs)
- File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in _cs_request
- raise ex
- Unauthorized: n/a (HTTP 401)
- ERROR: n/a (HTTP 401)
- root@bodega:/etc/nova#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement