need to specify domain with role list

Bug #1421328 reported by Richard Megginson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Unassigned

Bug Description

Create 2 domains in keystone
Create a project "services" in both domains
Assign a user to the services project in either of the domains
# openstack role list --user $userid --project services

This will fail with "More than one project exists with the name 'services'"

One of the intermediate searches performed by openstack is to get the project id from the name:

GET /v3/project?name=services

This is the call that fails. There should be some way to specify the domain to append to the query string:

GET /v3/project?name=services&domain=domain

This works. But there doesn't appear to be a way to tell openstack to append the domain to the query string.

Dean Troyer (dtroyer)
Changed in python-openstackclient:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Dean Troyer (dtroyer) wrote :

Looks like the Gerrit updater didn't go: addressed in https://review.openstack.org/#/c/180712/

Changed in python-openstackclient:
milestone: none → m11
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/180712
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=3ca96ef93cda1a3f186febc0e241e2d4adb682eb
Submitter: Jenkins
Branch: master

commit 3ca96ef93cda1a3f186febc0e241e2d4adb682eb
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Wed May 6 22:46:32 2015 +0300

    Enable specifing domains in "role add"

    If users, projects or groups are provided by name, there is a
    possibility of the existence other users/projects/groups with the same
    name in other domain. Even though this is not a problem if the actual
    ID is given instead of a name; this is mostly a usability enhancement.

    So, three options were added, one for specifying the domain where the
    user belongs, another one to specify the project's domain, and finally
    one to specify the group's domain.

    Change-Id: Iab04b0e04fa75ea5aa3723b8ea42a45f58a6cdb2
    Closes-Bug: #1421328

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
Changed in python-openstackclient:
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.