Guest User

Untitled

a guest
Apr 13th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. 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
  2. % Total % Received % Xferd Average Speed Time Time Time Current
  3. Dload Upload Total Spent Left Speed
  4. 100 1446 100 1330 100 116 18939 1651 --:--:-- --:--:-- --:--:-- 19275
  5. {
  6. "access": {
  7. "serviceCatalog": [
  8. {
  9. "endpoints": [
  10. {
  11. "adminURL": "http://192.168.100.140:8774/v1.1/1",
  12. "internalURL": "http://192.168.100.140:8774/v1.1/1",
  13. "publicURL": "http://192.168.100.140:8774/v1.1/1",
  14. "region": "RegionOne"
  15. }
  16. ],
  17. "name": "nova",
  18. "type": "compute"
  19. },
  20. {
  21. "endpoints": [
  22. {
  23. "adminURL": "http://192.168.206.140:9292/v1",
  24. "internalURL": "http://192.168.100.140:9292/v1",
  25. "publicURL": "http://192.168.100.140:9292/v1",
  26. "region": "RegionOne"
  27. }
  28. ],
  29. "name": "glance",
  30. "type": "image"
  31. },
  32. {
  33. "endpoints": [
  34. {
  35. "adminURL": "http://192.168.206.140:35357/v2.0",
  36. "internalURL": "http://192.168.100.140:5000/v2.0",
  37. "publicURL": "http://192.168.100.140:5000/v2.0",
  38. "region": "RegionOne"
  39. },
  40. {
  41. "adminURL": "http://192.168.100.140:35357/v2.0",
  42. "internalURL": "http://192.168.100.140:5000/v2.0",
  43. "publicURL": "http://192.168.100.140:5000/v2.0",
  44. "region": "RegionOne"
  45. },
  46. {
  47. "adminURL": "http://192.168.100.140:35357/v2.0",
  48. "internalURL": "http://192.168.100.140:5000/v2.0",
  49. "publicURL": "http://192.168.100.140:5000/v2.0",
  50. "region": "RegionOne"
  51. }
  52. ],
  53. "name": "keystone",
  54. "type": "identity"
  55. }
  56. ],
  57. "token": {
  58. "expires": "2012-04-14T10:51:55",
  59. "id": "a2675f81-b38c-47d1-a6b3-6c13dc6777df",
  60. "tenant": {
  61. "id": "1",
  62. "name": "openstackDemo"
  63. }
  64. },
  65. "user": {
  66. "id": "1",
  67. "name": "adminUser",
  68. "roles": [
  69. {
  70. "id": "1",
  71. "name": "Admin",
  72. "tenantId": "1"
  73. },
  74. {
  75. "id": "1",
  76. "name": "Admin"
  77. }
  78. ]
  79. }
  80. }
  81.  
  82.  
  83.  
  84. 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
  85. % Total % Received % Xferd Average Speed Time Time Time Current
  86. Dload Upload Total Spent Left Speed
  87. 100 177 100 60 100 117 4892 9540 --:--:-- --:--:-- --:--:-- 9750
  88. {
  89. "unauthorized": {
  90. "code": "401",
  91. "message": "Unauthorized"
  92. }
  93. }
Advertisement
Add Comment
Please, Sign In to add comment