Skip to content

Instantly share code, notes, and snippets.

@ramielrowe
Created November 14, 2012 21:37
Show Gist options
  • Save ramielrowe/4075001 to your computer and use it in GitHub Desktop.
Save ramielrowe/4075001 to your computer and use it in GitHub Desktop.
$ keystone --debug --os_username=admin --os_password=secrete --os_tenant_name=admin --os_auth_url=http://127.0.0.1:5000/v2.0/ service-list
REQ: curl -i http://127.0.0.1:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "secrete"}}}
connect: (127.0.0.1, 5000) ************
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: 102\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "secrete"}}}'
reply: 'HTTP/1.1 401 Not Authorized\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Content-Length: 89
header: Date: Wed, 14 Nov 2012 21:32:31 GMT
RESP: {'date': 'Wed, 14 Nov 2012 21:32:31 GMT', 'vary': 'X-Auth-Token', 'content-length': '89', 'status': '401', 'content-type': 'application/json'}
RESP BODY: {"error": {"message": "Invalid user / password", "code": 401, "title": "Not Authorized"}}
Request returned failure status: 401
Traceback (most recent call last):
File "/usr/local/bin/keystone", line 9, in <module>
load_entry_point('python-keystoneclient==0.1.3.69.ge39351e', 'console_scripts', 'keystone')()
File "/opt/stack/python-keystoneclient/keystoneclient/shell.py", line 407, in main
OpenStackIdentityShell().main(sys.argv[1:])
File "/opt/stack/python-keystoneclient/keystoneclient/shell.py", line 348, in main
debug=args.debug)
File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/client.py", line 135, in __init__
self.authenticate()
File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/client.py", line 178, in authenticate
token=token)
File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/client.py", line 219, in _base_authN
resp, body = self.request(url, 'POST', body=params, headers=headers)
File "/opt/stack/python-keystoneclient/keystoneclient/client.py", line 154, in request
raise exceptions.from_response(resp, body)
keystoneclient.exceptions.Unauthorized: Unable to communicate with identity service: {"error": {"message": "Invalid user / password", "code": 401, "title": "Not Authorized"}}. (HTTP 401)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment