Cannot create role inference rule with domain-specific role
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| python-openstackclient |
In Progress
|
Medium
|
Mohammed Al-Dokimi | ||
Bug Description
Steps to reproduce:
1. Create a domain-specific role: openstack role create --domain mydomain test_role
2. Create a role reference with the role: openstack implied role create --implied-role member test_role
Expected: the role reference is created
Observed: a request is made to PUT /v3/roles/
3. Fine, the `openstack` cli cannot resolve `test_role` into id. Use the id directly: openstack implied role create --implied-role member ac929851d5a247f
Expected: the role reference is created
Observed: a request is made to PUT /v3/roles/
Note: if i replace None in the requests above with the role id and make the request using curl, it succeeds.
| Changed in python-openstackclient: | |
| importance: | Undecided → Medium |
| status: | New → Confirmed |
Hello all,
The problem here is with the domain. When we list the roles in openstack, we cannot get the domain scoped roles unless if we specify this. Thus, I am now working on a solution to add a new parameter ('--implied- role-domain' or '--role-domain'), I will then use this specified domain to get the scoped role and continue with the creation of the role interface.
Best,