support listing users in a non-default domain scoped group

Bug #1492916 reported by Steve Martinelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Steve Martinelli

Bug Description

While playing around with non-default ldap, the following failed for me:

$ openstack user list --group "HiPODS-OpenCloud" --domain ibm

The group 404'ed because to find the group, it's evaluated like so:
        if parsed_args.group:
            group = utils.find_resource(
                identity_client.groups,
                parsed_args.group,
            ).id
        else:
            group = None

Note how it doesn't take into account the domain

the work around is to do:
$ openstack user list --group ed9f9cb5dbefd6a6e5808ca97921734da3b90b5d160e0a7308c199680c595a96
+------------------------------------------------------------------+--------------------------------+
| ID | Name |
+------------------------------------------------------------------+--------------------------------+
| c29cac8f7003e6de36a47b85f306f137bea8026e3d55c35aed27dfbf09c8fb28 | <email address hidden> |
| f3ca1de06fbe100e71577aad68ccd588f9d792686ae75812becfe43d5b4aa09c | <email address hidden> |
+------------------------------------------------------------------+--------------------------------+

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

Reviewed: https://review.openstack.org/212977
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=36a9703a192af16d2bad8cc7fec1eba25de8d01b
Submitter: Jenkins
Branch: master

commit 36a9703a192af16d2bad8cc7fec1eba25de8d01b
Author: Steve Martinelli <email address hidden>
Date: Thu Aug 13 21:57:53 2015 -0700

    Support listing users by group name

    Listing users within a group is not presently domain scoped. We
    do not use the domain info at all when the group option is present.
    A new --group-domain option is not needed since we cannot list
    users by --project and --group, they are mutually exclusive (as
    per the identity API).

    Closes-Bug: 1492916
    Change-Id: I50f995ee4a03c2bdb21f2b5722546ab8fe786eb6

Changed in python-openstackclient:
status: In Progress → Fix Committed
Changed in python-openstackclient:
milestone: none → 1.7.0
status: Fix Committed → Fix Released
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.