role add group doesn't work when group and project domains differ

Bug #1483520 reported by Gilles Dubreuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Jamie Lennox

Bug Description

$ openstack domain create test
+---------+----------------------------------+
| Field | Value |
+---------+----------------------------------+
| enabled | True |
| id | 88b1e121e32f4afe82dd935621de97e7 |
| name | test |
+---------+----------------------------------+
$ openstack project create test --domain test
a+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | |
| domain_id | 88b1e121e32f4afe82dd935621de97e7 |
| enabled | True |
| id | 2318f6f18afa4b1090f5fbfce07107f1 |
| name | test |
| parent_id | None |
+-------------+----------------------------------+
$ openstack role create test
+-------+----------------------------------+
| Field | Value |
+-------+----------------------------------+
| id | 0599d41fe8234a1184fbd9bef2475081 |
| name | test |
+-------+----------------------------------+
$ openstack group create test --domain default
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | |
| domain_id | default |
| id | 267be982eb2641f49543911ae8795d7d |
| name | test |
+-------------+----------------------------------+
$ openstack role add test --group test --group-domain default --project test --project-domain test
ERROR: openstack No project with a name or ID of 'test' exists.

summary: - role add group doesn't work when group and project domain differs
+ role add group doesn't work when group and project domain differ
summary: - role add group doesn't work when group and project domain differ
+ role add group doesn't work when group and project domains differ
Changed in python-openstackclient:
assignee: nobody → Jamie Lennox (jamielennox)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Gilles Dubreuil (gdubreui) wrote :

Just tried the patch.
It now works as expected.
Thanks

Revision history for this message
Terry Howe (thowe-g) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/211422
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=0cc1e5aa2b7ff7fa55e6083a397c07fc1cc744dd
Submitter: Jenkins
Branch: master

commit 0cc1e5aa2b7ff7fa55e6083a397c07fc1cc744dd
Author: Jamie Lennox <email address hidden>
Date: Tue Aug 11 15:34:15 2015 +1000

    Use correct domain to find project

    When adding a role to a group and project OSC is mistakenly using the
    group_domain to find the project which will fail if the group_domain !=
    project_domain.

    Change-Id: I4c1bec9b3b183c755be121b91f40e026d707192b
    Closes-Bug: #1483520

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