Cannot create keystone trust with python-openstackclient using trustor/trustee id

Bug #1473298 reported by Gilles Dubreuil
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Steve Martinelli

Bug Description

Creating Keystone V3 trusts (Kilo 2015.1.0) with python-openstackclient (OSC) 1.5.0 works fine when using trustor user and trustee user names but doesn't when using IDs.

Keystone log (verbose) doesn't return any error/warning, so that might be an OSC issue.

# openstack user show adminv3 --format shell
domain_id="43c0586acd1b48b5ad544600414700fb"
<email address hidden>"
enabled="True"
id="24b047f52ff94029923f7f0ea982f03f"
name="adminv3"

# openstack trust create --format shell --role admin --project openstackv3 adminv3 foo
deleted_at="None"
expires_at="None"
id="c42c31ac89a0465da6f23121a64570c1"
impersonation="False"
project_id="78e22bb71862481dbe8335b4ce4551e8"
redelegation_count="0"
remaining_uses="None"
roles="admin "
trustee_user_id="ac994e5701d644b6a3ac78c9dd1ad04a"
trustor_user_id="24b047f52ff94029923f7f0ea982f03f"

# openstack trust create --format shell --role admin --project openstackv3 24b047f52ff94029923f7f0ea982f03f foo
ERROR: openstack No user with a name or ID of '24b047f52ff94029923f7f0ea982f03f' exists.

Dolph Mathews (dolph)
affects: keystone → python-openstackclient
Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in python-openstackclient:
importance: Undecided → High
assignee: nobody → Steve Martinelli (stevemar)
importance: High → Medium
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/202395

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

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

commit 921361b3ae538b8f4a9a4725623ccc5bb7a0d48d
Author: Steve Martinelli <email address hidden>
Date: Fri Jul 10 18:01:55 2015 +0000

    Make trustee/trustor/project searchable by ID

    In the previous implementation, we were always including the domain
    argument, which caused a lookup by name for trustee/trustor and
    project. By excluding it when not necessary, we do a search by
    ID in find_resources.

    Change-Id: Id756aeab522b5dccb2dc6b31d137a28514b0fdf6
    Closes-Bug: 1473298

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.