Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@server10326:/etc/keystone# curl -d '{"auth": {"tenantName": "Admin", "passwordCredentials":{"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" http://109.200.204.5:35357/v2.0/tokens | python -mjson.tool
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 1056 100 948 100 108 18237 2077 --:--:-- --:--:-- --:--:-- 18588
- {
- "access": {
- "serviceCatalog": [
- {
- "endpoints": [
- {
- "adminURL": "http://109.200.204.5:8774/v1.1/2",
- "internalURL": "http://109.200.204.5:8774/v1.1/2",
- "publicURL": "http://109.200.204.5:8774/v1.1/2",
- "region": "RegionOne"
- }
- ],
- "name": "nova",
- "type": "compute"
- },
- {
- "endpoints": [
- {
- "adminURL": "http://109.200.204.5:9292/v1",
- "internalURL": "http://109.200.204.5:9292/v1",
- "publicURL": "http://109.200.204.5:9292/v1",
- "region": "RegionOne"
- }
- ],
- "name": "glance",
- "type": "image-service"
- },
- {
- "endpoints": [
- {
- "adminURL": "http://109.200.204.5:35357/v2.0",
- "internalURL": "http://109.200.204.5:5000/v2.0",
- "publicURL": "http://109.200.204.5:5000/v2.0",
- "region": "RegionOne"
- }
- ],
- "name": "keystone",
- "type": "identity"
- }
- ],
- "token": {
- "expires": "2015-02-05T00:00:00",
- "id": "11121314151617181920",
- "tenant": {
- "id": "2",
- "name": "Admin"
- }
- },
- "user": {
- "id": "1",
- "name": "adminUser",
- "roles": [
- {
- "id": "1",
- "name": "Admin",
- "tenantId": "2"
- },
- {
- "id": "1",
- "name": "Admin"
- }
- ]
- }
- }
- }
- root@server10326:/etc/keystone# glance details -A 11121314151617181920
- Failed to show details. Got error:
- Internal Server error: Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response
- result = self.application(self.environ, start_response)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
- resp = self.call_func(req, *args, **self.kwargs)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
- return self.func(req, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 113, in __call__
- response = req.get_response(self.application)
- File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
- application, catch_exc_info=False)
- File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
- app_iter = application(self.environ, start_response)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
- resp = self.call_func(req, *args, **self.kwargs)
- File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
- return self.func(req, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 110, in __call__
- response = self.process_request(req)
- File "/usr/lib/python2.7/dist-packages/glance/common/context.py", line 104, in process_request
- raise exception.NotAuthorized()
- NotAuthorized: None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement