Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@openstack-01 keystone]# cinder --debug create --display_name test 1
- connect: (127.0.0.1, 5000) ************
- send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: 101\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n'
- send: '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "admin", "password": "secrete"}}}'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Vary: X-Auth-Token
- header: Content-Type: application/json
- header: Content-Length: 2372
- header: Date: Fri, 10 May 2013 15:53:32 GMT
- connect: (localhost, 8776) ************
- connect fail: (localhost, 8776)
- connect: (localhost, 8776) ************
- send: u'POST /v1/219aa20bbaee4291a73ab5476bfbc1b0/volumes HTTP/1.1\r\nHost: localhost:8776\r\nContent-Length: 267\r\nx-auth-project-id: demo\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 2e27300af7af4e0796387e07d3b7460c\r\nuser-agent: python-cinderclient\r\ncontent-type: application/json\r\n\r\n'
- send: '{"volume": {"status": "creating", "availability_zone": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "test", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'
- 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: Fri, 10 May 2013 15:53:32 GMT
- send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: 101\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n'
- send: '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "admin", "password": "secrete"}}}'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Vary: X-Auth-Token
- header: Content-Type: application/json
- header: Content-Length: 2372
- header: Date: Fri, 10 May 2013 15:53:32 GMT
- send: u'POST /v1/219aa20bbaee4291a73ab5476bfbc1b0/volumes HTTP/1.1\r\nHost: localhost:8776\r\nContent-Length: 267\r\nx-auth-project-id: demo\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 2e27300af7af4e0796387e07d3b7460c\r\nuser-agent: python-cinderclient\r\ncontent-type: application/json\r\n\r\n'
- send: '{"volume": {"status": "creating", "availability_zone": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "test", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'
- 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: Fri, 10 May 2013 15:53:32 GMT
- DEBUG (shell:473) n/a (HTTP 401)
- Traceback (most recent call last):
- File "/usr/lib/python2.6/site-packages/cinderclient/shell.py", line 470, in main
- OpenStackCinderShell().main(sys.argv[1:])
- File "/usr/lib/python2.6/site-packages/cinderclient/shell.py", line 421, in main
- args.func(self.cs, args)
- File "/usr/lib/python2.6/site-packages/cinderclient/v1/shell.py", line 231, in do_create
- metadata=volume_metadata)
- File "/usr/lib/python2.6/site-packages/cinderclient/v1/volumes.py", line 138, in create
- return self._create('/volumes', body, 'volume')
- File "/usr/lib/python2.6/site-packages/cinderclient/base.py", line 149, in _create
- resp, body = self.api.client.post(url, body=body)
- File "/usr/lib/python2.6/site-packages/cinderclient/client.py", line 141, in post
- return self._cs_request(url, 'POST', **kwargs)
- File "/usr/lib/python2.6/site-packages/cinderclient/client.py", line 135, in _cs_request
- raise ex
- Unauthorized: n/a (HTTP 401)
- ERROR: n/a (HTTP 401)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement