rshri3

Openstack issue

Mar 27th, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. Request for Create new domain :
  2.  
  3. curl POST http://xxx.xx.xxx.xxx:5000/v3/domains -H "X-Auth-Token :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type:application/json" -d '{ "domain": { "description": "Test Domain 2", "enabled": true, "name": "TestDoamin2" } }'
  4.  
  5.  
  6. Then show the list of all domine
  7. curl GET http://xxx.xx.xxx.xxx:5000/v3/domains -H "X-Auth-Token :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type:application/json"
  8.  
  9.  
  10. It's showing response
  11.  
  12. {
  13. "domains": [
  14. {
  15. "links": {
  16. "self": "http://xxx.xx.xxx.xxx:5000/v3/domains/651989aa7b444d2e876cfa5cebee6214"
  17. },
  18. "enabled": true,
  19. "description": "Test Domain",
  20. "name": "TestDoamin",
  21. "id": "651989aa7b444d2e876cfa5cebee6214"
  22. },
  23. {
  24. "links": {
  25. "self": "http://xxx.xx.xxx.xxx:5000/v3/domains/c3f0ac4048fd4d4a835df3ebef953e54"
  26. },
  27. "enabled": true,
  28. "description": "Test Domain 2",
  29. "name": "TestDoamin2",
  30. "id": "c3f0ac4048fd4d4a835df3ebef953e54"
  31. },
  32. {
  33. "links": {
  34. "self": "http://xxx.xx.xxx.xxx:5000/v3/domains/default"
  35. },
  36. "enabled": true,
  37. "description": "Owns users and tenants (i.e. projects) available on Identity API v2.",
  38. "name": "Default",
  39. "id": "default"
  40. }
  41. ],
  42. "links": {
  43. "self": "http://xxx.xx.xxx.xxx:5000/v3/domains",
  44. "previous": null,
  45. "next": null
  46. }
  47. }
  48.  
  49.  
  50.  
  51. After that i create new project with new domain id
  52.  
  53.  
  54.  
  55. curl POST http://xxx.xx.xxx.xxx:5000/v3/projects -H "X-Auth-Token :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type:application/json" -d'{ "project": { "description": "testing project", "domain_id": "651989aa7b444d2e876cfa5cebee6214", "enabled": true, "name": "TestingProject" } } '
  56.  
  57.  
  58.  
  59. It's response is :-
  60.  
  61.  
  62. {
  63. "project": {
  64. "description": "testing project",
  65. "links": {
  66. "self": "http://xxx.xx.xxx.xxx:5000/v3/projects/c82615d18e3144ddacce6266d3d098a3"
  67. },
  68. "enabled": true,
  69. "id": "c82615d18e3144ddacce6266d3d098a3",
  70. "domain_id": "651989aa7b444d2e876cfa5cebee6214",
  71. "name": "TestingProject"
  72. }
  73. }
  74.  
  75.  
  76. look it's not showing in dashborad
  77. http://awesomescreenshot.com/0a54qgqrfa
  78.  
  79. in my openstack dashborad on create project http://awesomescreenshot.com/07d4qgyn73 it's not looking http://docs.openstack.org/openstack-ops/content/projects_users.html Given create project Domain id Domain name fields are not present in my openstack dashborad
Advertisement
Add Comment
Please, Sign In to add comment