'domain' filter doesn't work in some commands

Bug #1704097 reported by raja
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
raja

Bug Description

The 'domain' filter doesn't work in below commands:

1. openstack project show
2. openstack user show
3. openstack user set

How to reproduce:

1. Create a new domain 'test'
2. Create a new user 'admin' and new 'project 'admin' under 'test' domain
3. Use 'admin' user under 'Default' domain and 'admin' project to login
4. run command "openstack user show --domain test admin" will show the "admin" user under the "Default" domain
5. commands "openstack project show --domain test admin" and "openstack user set --domain test admin"also have the similar problem.

This error occurred because openstackclient will first retrieve the resource info from the login user's token, if the return info has the same name with the resource name user hope to find, client will use the returned resource id to get the resource, but under different domain, two resource may have a same name.

raja (jiangpch)
Changed in python-openstackclient:
assignee: nobody → raja (jiangpch)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/483278

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

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

commit a01bf55d2065ec1a98f486109cc8d315def501cd
Author: jiangpch <email address hidden>
Date: Thu Jul 13 04:58:00 2017 -0400

    Fix 'domain' filter not work well in some commands

    The 'domain' filter not work well in commands 'project show',
    'user show' and 'user set'.

    Depends-On: I490900d6249f01654d4cba43bddd3e7af7928a84
    Closes-Bug: #1704097
    Change-Id: Ib4f47cbaba27eb56c4a41d187fee74a995e62dc7

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.12.0

This issue was fixed in the openstack/python-openstackclient 3.12.0 release.

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.