os_identity_api_version is defaulted to 2.0 instead of 3

Bug #1669077 reported by Guang Yee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Unassigned

Bug Description

os_identity_api_version is supposed to be '3' by default.

--os-identity-api-version <identity-api-version>
                        Identity API version, default=3 (Env:
                        OS_IDENTITY_API_VERSION)

However, running openstack CLI without explicitly specify --os-identity-api-version will use '2.0' instead.

openstack --os-username admin --os-password secrete --os-user-domain-name MyDomain --os-domain-name MyDomain --os-auth-url http://localhost/identity token issue
Ignoring domain related config user_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Expecting to find domain in user. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-5fed4b43-fbc0-44c9-b333-874149f4809a)

This problem seem to be introduced by os-client-config. See

https://github.com/openstack/os-client-config/blob/master/os_client_config/defaults.json#L13

We can either bump the default in os-client-config or find a way to "discovery" the default version the same way keystoneauth1 does, which is based on input.

Revision history for this message
Dean Troyer (dtroyer) wrote :

os-client-config has its own mind sometimes. The reason discovery is not performed is because OSC thinks the version was supplied by the user and honors that selection over doing discovery. We need to get os-client-config to not do it that way...

Changed in python-openstackclient:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
PeterZhang (zhangshengping2012) wrote :

Hello Troyer, can we update the os_client_config default.json file or provide a (or DEFAULT_API_VERSION) default value in openstackclient to fix it?

Artem Goncharov (gtema)
Changed in python-openstackclient:
status: Confirmed → 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.