Tests failures with v2.0 Auth URL

Bug #1657739 reported by Kyrylo Romanenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stepler
New
High
Kyrylo Romanenko

Bug Description

Try to run basic Keystone test: test_user_list
(.venv) kromanenko@srv78-bud:~/stepler$ export OS_AUTH_URL='http://10.109.0.2:5000/v2.0'
(.venv) kromanenko@srv78-bud:~/stepler$ py.test stepler -k test_user_list -s

Failures traceback:
http://paste.openstack.org/show/595612/

Also all Ironic tests failing with same trace with Keystone V2.

summary: - Tests fail with v2.0 Auth URL
+ Tests failures with v2.0 Auth URL
Changed in stepler:
assignee: nobody → Kyrylo Romanenko (kromanenko)
Revision history for this message
Sergei Chipiga (schipiga) wrote :

Does it repeatable with keystone v3?

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Yes

Revision history for this message
Oksana Voshchana (ovoshchana) wrote :

Try run barmetal test use puplicURL OS_AUTH_URL=http://10.109.5.3:5000/v3/.
But when test is starting I got inetrnal admin url

 ConnectTimeout: Request to http://10.109.0.2:35357/v2.0/roles?name=admin timed out

.venv/local/lib/python2.7/site-packages/keystoneauth1/session.py:681: ConnectTimeout
_ ERROR at setup of test_node_create[id-340cec4f-179e-4ebd-843a-67977d666a67] __

credentials = <stepler.fixtures.credentials.CredentialsManager object at 0x7f1195ed1350>
create_user_with_project = <function _create_user_with_project at 0x7f1195e988c0>

Revision history for this message
Sergei Chipiga (schipiga) wrote :

As I debug, openstack clients use admin network to communicate:

ipdb> user_steps._client.client.get_endpoint()
u'http://10.109.0.2:35357/v2.0'

Despite of keystone session contains public url still:

ipdb> user_steps._client.client.session.auth.auth_url
'http://10.109.5.3:5000/v3'

I think, root cause is inside keystone client, which is responsible for endpoint yielding. From my side I can recommend to make admin network available for tests. Because, as I see, clients prefer admin URL to communicate with openstack.

Revision history for this message
Sergei Chipiga (schipiga) wrote :

I try to use console keystone client with next env vars (as in jenkins build):

OS_REGION_NAME=RegionOne
OS_DEFAULT_DOMAIN=default
OS_USER_DOMAIN_NAME=default
OS_PROJECT_NAME=admin
OS_PASSWORD=admin
OS_AUTH_STRATEGY=keystone
OS_AUTH_URL=http://10.109.5.3:5000/v3/
OS_USERNAME=admin
OS_TENANT_NAME=admin
OS_ENDPOINT_TYPE=publicURL
OS_INTERFACE=public
OS_NO_CACHE=true
OS_PROJECT_DOMAIN_NAME=default

But I got error too:

$ keystone user-list
Authorization Failed: The resource could not be found. (HTTP 404)

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.