can't list own projects unless admin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
Adrian Turjak |
Bug Description
"openstack project list" defaults to listing all projects, if you are not admin this falls over.
If you just want your project list, you can attempt:
"openstack project list --user <my_username/
This will also fail because up until Newton getting your own user required admin. Project list always does a find_resource when given a user filter, which even if you give it a valid userid, it has to fetch the user object from keystone.
As such attempting to get your own project list (a valid and important action) is impossible with the openstack client for anyone running default keystone policy files from anything before Newton.
An easy and sensible solution is to make "openstack project list" still default to all projects, but on a forbidden response, return your own user list. This option is simple, good UX, and actually makes the project list command useful for non-admins. Another option that isn't as nice UX is to add a --auth-user option.
See thread here for discussion and further reading:
http://
description: | updated |
Changed in python-openstackclient: | |
assignee: | nobody → Adrian Turjak (adriant-y) |
Changed in python-openstackclient: | |
status: | New → In Progress |
description: | updated |
Not sure why it isn't automatically being listed, but:
Addressed by: https:/ /review. openstack. org/#/c/ 376056/