Comment 1 for bug 1930194

Revision history for this message
Hiromu Asahina (h-asahina) wrote (last edit ):

I think it might be a keystone client problem.
The client doesn't use `auth_url` set by `session`.

>>> from keystoneauth1.identity import v3
>>> from keystoneauth1 import session
>>> from keystoneclient import client
>>> os_auth_url
'http://127.0.0.1/identity/v3'
>>> v3_auth = v3.Password(auth_url = os_auth_url, username = os_username,
... password = os_password, project_name = os_tenant_name,
... project_domain_name = 'default', user_domain_name = 'default')
>>> v3_auth.auth_url
'http://127.0.0.1/identity/v3'
>>> ses = session.Session(auth=v3_auth, verify=True)
>>> cli = client.Client('v3', session=ses)
>>> cli.auth_url
'http://192.168.33.14/identity/v3'
>>> cli.session.auth.auth_url
'http://127.0.0.1/identity/v3'