Ask Your Question
0

how can we get the list of the projects and owner

asked 2020-03-30 11:54:33 -0500

anonymous user

Anonymous

we have 10 projects in the production environment . Different project have different project owners or admin who can access the project.

as a admin how can i get the list of the project owners or the admins of all the 10 projects at once.

is there a way we can export this file.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2020-04-10 03:02:23 -0500

opensourceengineer gravatar image

both the commands gives the repective outputs.

openstack project list --domain DOMAIN gives me the output which has project name and project ID:

214e468a1xxxxx | it-ops team | | 3b155981d0xxxx | dev-ops team |

openstack role assignment list gives me the output of the user having which role under which project:

| 144dxxxxxx | 44bbdbxxxxxxxx | | 78e00e3a4xxxx | | | False |

i would like to know the project name with their respective admins of that project so that we know which project is under which user as a admin and if one admin leave the company then find out which projects he was handling. expected output can be like below

project name. id role username user id itops 214e468a1x admin linux-engineer. 144dxxxxxx

edit flag offensive delete link more

Comments

1

Add the --names option to openstack role assignment list.

Bernd Bausch gravatar imageBernd Bausch ( 2020-04-10 05:16:01 -0500 )edit

OMG this worked for me. thanks a lot Bernd

opensourceengineer gravatar imageopensourceengineer ( 2020-04-13 06:05:00 -0500 )edit

I also wasn't aware of the --names option for that command, awesome! :-)

eblock gravatar imageeblock ( 2020-04-15 05:55:53 -0500 )edit
0

answered 2020-03-30 14:00:10 -0500

A project is owned by a domain, which is listed by the List Projects API. Or list projects by domain with openstack project list --domain DOMAIN and redirect the output to a file.

edit flag offensive delete link more

Comments

In addition to @Bernd's response, what about openstack role assignment list in combination with openstack role list? That shows you all users with admin roles for each project. Does that help?

eblock gravatar imageeblock ( 2020-03-31 05:58:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-03-30 11:54:33 -0500

Seen: 66 times

Last updated: Apr 10