Launchpad

'domain' filter doesn't work in some commands

Bug #1704097 reported by raja

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.

Read the original on bugs.launchpad.net ↗