deprecate role list arguments in favor of role assignment

Bug #1605774 reported by Steve Martinelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
In Progress
Medium
Henry Nash

Bug Description

For keystone, we have new functionality called domain scoped roles, which will mean that roles now have a domain argument upon create/update/delete/list/show

However we already have a domain argument because we use it to scope user/group/project.

We should, in preparation for 3.0.0, switch to using `role assignment list` for the `role list --domain` operations. This was previously a v3 specific operation, but we can munge v2 to include it as well.

Changed in python-openstackclient:
importance: Undecided → Medium
Changed in python-openstackclient:
status: New → In Progress
assignee: nobody → Henry Nash (henry-nash)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/311460
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=713d92df4e53f74698a1ff2dfcb7514ff22f023b
Submitter: Jenkins
Branch: master

commit 713d92df4e53f74698a1ff2dfcb7514ff22f023b
Author: Henry Nash <email address hidden>
Date: Fri Apr 29 23:59:27 2016 +0100

    Add assignment list to v2 identity and deprecate alternate listing

    The current identity role list command (both v2 and v3) is
    overloaded with listing roles as well as assignments (if you
    provide user, group, project or domain options). This is in
    addition to the v3 assignment list command designed for this
    purpose.

    This overloading complicates the fact that roles can now be
    domain specific (i.e. have a domain attribute), so the
    command 'role list --domain <domain-name' will soon become
    ambigious (this is in a follow on patch).

    This patch:

    - Adds a v2 assignments list, with support for pulling the
    user and project from the auth credentials
    - For comapability, adds the same auth support to the
    existing v3 assignments list
    - Deprecates the use of role list and user role list to list
    assignments

    Change-Id: I65bafdef4f8c89e863dab101369d0d629fa818b8
    Partial-Bug: 1605774

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.