Role Assignment Incorrectly Reports Inheritance when --name is Used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Samuel de Medeiros Queiroz |
Bug Description
When retrieving role assignments via the openstack client, passing the --name flag will cause Keystone to not return the value of inherited, so openstack client always reports false.
My test environment is an OSA AIO using OSA 13.1.3, which is using Keystone commit 87d67946e75db2e
Steps to reproduce:
* assign a role to a user on a domain and pass --inherited, so the role will be inherited to the domain's projects
* run "openstack role assignment list --user <user> --name"
Example output with debug request response without --name:
:~# openstack --debug role assignment list --user 14bc7c6869374b3
...
REQ: curl -g -i -X GET http://
"GET /v3/role_
RESP: [200] Content-Length: 586 Vary: X-Auth-Token Server: Apache Date: Mon, 19 Sep 2016 15:07:23 GMT Content-Type: application/json x-openstack-
RESP BODY: {"role_
+------
| Role | User | Group | Project | Domain | Inherited |
+------
| 9fe2ff9ee4384b1
+------
Example output with debug request response with --name:
:~# openstack --debug role assignment list --user 14bc7c6869374b3
...
REQ: curl -g -i -X GET http://
"GET /v3/role_
RESP: [200] Content-Length: 681 Vary: X-Auth-Token Server: Apache Date: Mon, 19 Sep 2016 15:08:52 GMT Content-Type: application/json x-openstack-
RESP BODY: {"role_
+------
| Role | User | Group | Project | Domain | Inherited |
+------
| _member_ | testdomainuser@
+------
Thanks,
Sean
Changed in keystone: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in keystone: | |
assignee: | nobody → Kanika Singh (kanikasingh-1490) |
Changed in keystone: | |
status: | Confirmed → In Progress |
Changed in keystone: | |
milestone: | none → ocata-1 |
Changed in keystone: | |
milestone: | ocata-1 → ocata-2 |
Changed in keystone: | |
assignee: | Samuel de Medeiros Queiroz (samueldmq) → Kanika Singh (kanikasingh-1490) |
Changed in keystone: | |
assignee: | Kanika Singh (kanikasingh-1490) → Samuel de Medeiros Queiroz (samueldmq) |
Related fix proposed to branch: master /review. openstack. org/407558
Review: https:/