jolausa

Untitled

May 3rd, 2017
733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.04 KB | None | 0 0
  1. root@987869375db8:~# openstack endpoint list --service identity
  2. +----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+
  3. | ID | Region | Service Name | Service Type | Enabled | Interface | URL |
  4. +----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+
  5. | 4c12ffe107ef4ed39c3e0dfdfe1cfbcc | RegionOne | keystone | identity | True | internal | http://192.168.0.98:5000/v2.0 |
  6. | a5d3762f0e334e9186989efc946a0979 | RegionOne | keystone | identity | True | public | http://172.16.0.98:5000/v2.0 |
  7. | abac6f6c1de642659b91b9d7da968955 | RegionOne | keystone | identity | True | admin | http://192.168.0.98:35357/v2.0 |
  8. +----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+
  9.  
  10.  
  11. =================> Let's try if we have connectivity to the ADMIN endpoint...
  12.  
  13. root@987869375db8:~# ping -c 1 192.168.0.98
  14. PING 192.168.0.98 (192.168.0.98) 56(84) bytes of data.
  15.  
  16. --- 192.168.0.98 ping statistics ---
  17. 1 packets transmitted, 0 received, 100% packet loss, time 0ms
  18.  
  19.  
  20.  
  21.  
  22. root@987869375db8:~# ping -c 1 172.16.0.98
  23. PING 172.16.0.98 (172.16.0.98) 56(84) bytes of data.
  24. 64 bytes from 172.16.0.98: icmp_seq=1 ttl=63 time=0.364 ms
  25.  
  26. --- 172.16.0.98 ping statistics ---
  27. 1 packets transmitted, 1 received, 0% packet loss, time 0ms
  28. rtt min/avg/max/mdev = 0.364/0.364/0.364/0.000 ms
  29.  
  30.  
  31.  
  32.  
  33. =================> so, only connectivity to PUBLIC URL... Let's try openstack commands for tenants/users
  34.  
  35.  
  36. root@987869375db8:~# openstack user list
  37. +----------------------------------+-----------------------------------------------+
  38. | ID | Name |
  39. +----------------------------------+-----------------------------------------------+
  40. | 1127b8be38dd4789aba89c510ac05360 | neutron |
  41. | 1151b22ec30c4575ad8ff2388468f759 | glance |
  42. | 25070844407b4acfba1e108c9bfe79c7 | heat |
  43. | 3065b7031c09471a92da1198780a442b | tempest |
  44. | 3ff6b20ae11e436bae8e5a8745120f15 | help |
  45. | 6ef4d5e59ac34090951d1a003e9ef476 | swift |
  46. | 83625b24038c4c0a9ad305321f93659e | heat-cfn |
  47. | 886748363cc94b39a51d90ee6a50aba3 | glare |
  48. | 9b9f672de12a4067bcda5095f731c571 | admin |
  49. | b650ae149c10470a9fc224106d350ba6 | heat_admin |
  50. | c1eb114abf4049b4a38496ba8fc9ec93 | nova |
  51. | cf9b245ac8004d1ea8d34590be70385a | fuel_stats_user |
  52. | cfc005f29d4246d284248b65d514ab79 | cinder |
  53. +----------------------------------+-----------------------------------------------+
  54. root@987869375db8:~# openstack project list
  55. +----------------------------------+-----------------------------------------------+
  56. | ID | Name |
  57. +----------------------------------+-----------------------------------------------+
  58. | 500eb9509d0042b3b4f0be3fa5f4e816 | services |
  59. | 709237a019fd4b76a6d80a5cb1e27d6b | admin |
  60. +----------------------------------+-----------------------------------------------+
  61.  
  62.  
  63.  
  64. root@987869375db8:~# openstack project create test
  65. +-------------+----------------------------------+
  66. | Field | Value |
  67. +-------------+----------------------------------+
  68. | description | |
  69. | domain_id | default |
  70. | enabled | True |
  71. | id | 8b86bd17135e4d6fa3da02d8c4bce313 |
  72. | is_domain | False |
  73. | name | test |
  74. | parent_id | default |
  75. +-------------+----------------------------------+
  76.  
  77.  
  78. root@987869375db8:~# openstack user create test_user --project test
  79. No password was supplied, authentication will fail when a user does not have a password.
  80. +---------------------+----------------------------------+
  81. | Field | Value |
  82. +---------------------+----------------------------------+
  83. | default_project_id | 8b86bd17135e4d6fa3da02d8c4bce313 |
  84. | domain_id | default |
  85. | enabled | True |
  86. | id | e01fb25ce9764ce5a44dec77a60751ef |
  87. | name | test_user |
  88. | password_expires_at | None |
  89. +---------------------+----------------------------------+
  90.  
  91.  
  92.  
  93.  
  94. =================> It works! Let' see how the credentials are set up:
  95.  
  96. root@987869375db8:~# cat $creds
  97. #!/bin/sh
  98. export OS_NO_CACHE='true'
  99. export OS_TENANT_NAME='admin'
  100. export OS_PROJECT_NAME='admin'
  101. export OS_USERNAME='admin'
  102. export OS_PASSWORD='admin'
  103. export OS_AUTH_URL='http://172.16.0.98:5000/v3'
  104. export OS_IDENTITY_API_VERSION=3
  105. export OS_DEFAULT_DOMAIN='default'
  106. export OS_USER_DOMAIN_NAME='Default'
  107. export OS_PROJECT_DOMAIN_NAME='Default'
  108. export OS_AUTH_STRATEGY='keystone'
  109. export OS_REGION_NAME='RegionOne'
  110. export CINDER_ENDPOINT_TYPE='publicURL'
  111. export GLANCE_ENDPOINT_TYPE='publicURL'
  112. export KEYSTONE_ENDPOINT_TYPE='publicURL'
  113. export NOVA_ENDPOINT_TYPE='publicURL'
  114. export NEUTRON_ENDPOINT_TYPE='publicURL'
  115. export OS_ENDPOINT_TYPE='publicURL'
  116. export MURANO_REPO_URL='http://storage.apps.openstack.org/'
  117. export MURANO_PACKAGES_SERVICE='glance'
  118. export OS_INTERFACE='public' <============= this is key, otherwise it doesn't work....
Advertisement
Add Comment
Please, Sign In to add comment