How to list projects in multi domain in OpenStack kilo?

asked 2016-08-28 09:20:22 -0500

lohit gravatar image

updated 2016-08-28 13:45:42 -0500

sunnyarora gravatar image

Can anyone please give me some pointer how can I accomplish the below commands in multi-domain environment ?

Brief about my environment:

============================

1) Single Keystone server (Keystone+Horizon) which multiple environmensts 2) Each environment consist of 1 Controller(without Keystone & Horizon), 1 compute, 1 neutron node. 3) All the enpoints for a perticular environment have been segrigated by only it's region name.

My Question requiremnt:

===========================

1) What is the command to list all the projects under a specific domain/region ? 2) What is the command to list all the domains/regions under that keystone ?

============================================================

Sourcing admin/default openrc file <which is="" perfectly="" working="" fine="">

[root@controller ~]# cat admin-openrc.sh
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=password
export OS_AUTH_URL=http://controller:35357/v3

[root@controller ~]# source admin-openrc.sh
[root@controller ~]# openstack project list
+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| 3b292a1ddc894872ba860b47844084ab | admin   |
| 2109d63d31e346b49d6bf97593d5309b | demo    |
| 0311873dc2e44972a8b173dd1cf4c23d | service |
+----------------------------------+---------+

[root@controller ~]# openstack endpoint list
+----------------------------------+--------------+--------------+----------------+
| ID                               | Region       | Service Name | Service Type   |
+----------------------------------+--------------+--------------+----------------+
| 566f27a4e4904320bba1269a81f18720 | region-lon02  | nova         | compute        |
| 638761a7bae24dc29e50cc462bbde8f2 | region-lon02  | neutron      | network        |
| a90e573951ca4402bb36bdc893193c1f | region-sjc03  | nova         | compute        |
| d1251350f27e4efaafe525a64071ed95 | region-lon02  | heat-cfn     | cloudformation |
| ee027c99712741e9bd5a78424738791d | region-dal10 | neutron      | network        |
| 925aaee59ae64342930b4f5a36c44982 | region-sjc03  | glance       | image          |
| 246ad7ac4aca4f33b7f29bc52903598f | region-dal10 | heat-cfn     | cloudformation |
| e68682d95c534fb18234b23323ea7ea9 | region-sjc03  | heat-cfn     | cloudformation |
| f4529089637a49ba8e913df62c0fb155 | region-dal09  | neutron      | network        |
| 752f67ea7b9e46b0b8da9a54833886dc | region-dal09  | nova         | compute        |
| afee75c2efb7433383708630024e1f74 | region-dal10 | ceilometer   | metering       |
| a68a2e0fa87e4f17a4448abc6b2c8c25 | RegionOne    | keystone     | identity       |
| cf135772c60342799a28c0a081f18be5 | region-sjc03  | heat         | orchestration  |
| 54bc8101d2f24794a4a095493e29e4de | region-dal10 | glance       | image          |
| e06b704881ee49f88f10f6bf759581a4 | region-dal10 | nova         | compute        |
| 20c6734391ca4a5997d933aca278d610 | region-sjc03  | neutron      | network        |
| cdb633c2cfe4405b9fc35104c311c721 | region-lon02  | heat         | orchestration  |
| 706ebd175b944822a9b88c3df3e32e8e | region-dal10 | heat         | orchestration  |
| 3071b3cfb3754941a5987bd1cb22b141 | region-dal09  | glance       | image          |
| 1d510f33485a46ddb11b8dcfb19825d9 | region-lon02  | glance       | image          |
+----------------------------------+--------------+--------------+----------------+

==============================================================================

Sourcing Openrc file for a perticular domain/region, rest of the commands like nova/neutron are working fine

[root@controller ~]# openstack domain list
ERROR: openstack Unknown command ['domain', 'list']

[root@controller ~]# cat admin-openrc-region-lon02.sh
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=password
export OS_AUTH_URL=http://controller:35357/v3
export OS_REGION_NAME=region-lon02


[root@controller ~]# source admin-openrc-region-lon02.sh
[root@controller ~]# openstack project list
ERROR: openstack The resource could not be found. (HTTP 404) (Request-ID: req-5c79c2e3-9be1-4280-8e8c-d0dcccb94e75)

====================================================================

edit retag flag offensive close merge delete

Comments

Could you try running this below command and check the output?

openstack --os-identity-api-version 3 project list
sunnyarora gravatar imagesunnyarora ( 2016-08-28 13:54:02 -0500 )edit

@sunnyaroa,thanks for your reply after executing your command,I didn't see 404 error, however it's throwing a different error.I think you will better understand if I paste d error message nd guide me accordingly ERROR: openstack admin endpoint for identity service in region-lon02 region not found.

PeterX gravatar imagePeterX ( 2016-09-05 12:51:59 -0500 )edit