Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lis@nova-controller:/var/log/keystone$ curl -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials":{"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" http://192.168.100.140:35357/v2.0/tokens | python -mjson.tool
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 1446 100 1330 100 116 18939 1651 --:--:-- --:--:-- --:--:-- 19275
- {
- "access": {
- "serviceCatalog": [
- {
- "endpoints": [
- {
- "adminURL": "http://192.168.100.140:8774/v1.1/1",
- "internalURL": "http://192.168.100.140:8774/v1.1/1",
- "publicURL": "http://192.168.100.140:8774/v1.1/1",
- "region": "RegionOne"
- }
- ],
- "name": "nova",
- "type": "compute"
- },
- {
- "endpoints": [
- {
- "adminURL": "http://192.168.206.140:9292/v1",
- "internalURL": "http://192.168.100.140:9292/v1",
- "publicURL": "http://192.168.100.140:9292/v1",
- "region": "RegionOne"
- }
- ],
- "name": "glance",
- "type": "image"
- },
- {
- "endpoints": [
- {
- "adminURL": "http://192.168.206.140:35357/v2.0",
- "internalURL": "http://192.168.100.140:5000/v2.0",
- "publicURL": "http://192.168.100.140:5000/v2.0",
- "region": "RegionOne"
- },
- {
- "adminURL": "http://192.168.100.140:35357/v2.0",
- "internalURL": "http://192.168.100.140:5000/v2.0",
- "publicURL": "http://192.168.100.140:5000/v2.0",
- "region": "RegionOne"
- },
- {
- "adminURL": "http://192.168.100.140:35357/v2.0",
- "internalURL": "http://192.168.100.140:5000/v2.0",
- "publicURL": "http://192.168.100.140:5000/v2.0",
- "region": "RegionOne"
- }
- ],
- "name": "keystone",
- "type": "identity"
- }
- ],
- "token": {
- "expires": "2012-04-14T10:51:55",
- "id": "a2675f81-b38c-47d1-a6b3-6c13dc6777df",
- "tenant": {
- "id": "1",
- "name": "openstackDemo"
- }
- },
- "user": {
- "id": "1",
- "name": "adminUser",
- "roles": [
- {
- "id": "1",
- "name": "Admin",
- "tenantId": "1"
- },
- {
- "id": "1",
- "name": "Admin"
- }
- ]
- }
- }
- lis@nova-controller:/var/log/keystone$ curl -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials":{"username": "keystone", "password": "yourpassword"}}}' -H "Content-type: application/json" http://192.168.100.140:35357/v2.0/tokens | python -mjson.tool
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 177 100 60 100 117 4892 9540 --:--:-- --:--:-- --:--:-- 9750
- {
- "unauthorized": {
- "code": "401",
- "message": "Unauthorized"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment