keystoneclient expects an 'interface' keyword argument instead of 'endpoint_type'

Bug #1648212 reported by Paulo Matias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-client-config
Fix Released
Undecided
Unassigned

Bug Description

This bug was originally reported to shade: https://storyboard.openstack.org/#!/story/2000762

After a failed attempt to fix it in shade side, Monty Taylor commented (see https://review.openstack.org/#/c/390992) that the issue was probably in os-client-config side.

What happens is that get_legacy_client constructs the keystone client passing an endpoint_type keyword argument which is simply ignored by the keystone client. It expects, instead, an interface argument (see https://github.com/openstack/python-keystoneclient/blob/f7c1d45a04bb2b024a985b8e30245d38f2bf8442/keystoneclient/httpclient.py#L253). As the interface argument is not passed, it always uses the default value ('admin'). This leads to the issues described in the original bug report.

The keystone client command line app is apparently not affected because it passes the interface keyword argument manually. However, scripts using shade or os-client-config directly may be affected, such as the os_project Ansible module.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-client-config (master)

Reviewed: https://review.openstack.org/408282
Committed: https://git.openstack.org/cgit/openstack/os-client-config/commit/?id=fa4e1bd21db4bee2a0ee779067cdd659e647d7fc
Submitter: Jenkins
Branch: master

commit fa4e1bd21db4bee2a0ee779067cdd659e647d7fc
Author: Paulo Matias <email address hidden>
Date: Wed Dec 7 18:07:37 2016 -0200

    Fix interface_key for identity clients

    Change-Id: I83870e8b3ee6dc7fdbb6e9d67075cc4c08646e4e
    Closes-Bug: #1648212

Changed in os-client-config:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-client-config 1.25.0

This issue was fixed in the openstack/os-client-config 1.25.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstacksdk 0.10.0

This issue was fixed in the openstack/python-openstacksdk 0.10.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.