ostf tests fail due to versionless keystone enpoint

Bug #1668574 reported by Nikita Karpin on 2017-02-28
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Critical
Fuel QA Team

Bug Description

Upstream patch https://review.openstack.org/#/c/438061/ deprecates creation of versioned (v2.0) keystone endpoints by default. Now by default versionless enpoints will be created.

This change breaks Fuel OSTF tests:

2017-02-28 02:24:18 INFO (test_mixins) STEP:1, verify action: 'user listing'
2017-02-28 02:24:18 DEBUG (session) REQ: curl -g -i --insecure -X GET http://10.109.1.9:35357/users -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4671212ce0b945cf566059a7c47185443efcb8b9"
2017-02-28 02:24:18 DEBUG (session) RESP: [404] Date: Tue, 28 Feb 2017 02:24:18 GMT Server: Apache/2.4.18 (Ubuntu) Content-Length: 93 Vary: X-Auth-Token Content-Type: application/json Via: 1.1 apache_api_proxy:35357 Connection: close
RESP BODY: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

2017-02-28 02:24:18 DEBUG (session) Request returned failure status: 404
2017-02-28 02:24:18 ERROR (test_mixins) The resource could not be found. (HTTP 404)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fuel_health/common/test_mixins.py", line 174, in verify
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/fuel_health/nmanager.py", line 1265, in _list_users
    users = client.users.list()
  File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/users.py", line 124, in list
    return self._list("/users%s" % query, "users")
  File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 125, in _list
    resp, body = self.client.get(url, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 217, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 374, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 142, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 420, in request
    raise exceptions.from_response(resp, method, url)
NotFound: The resource could not be found. (HTTP 404)
2017-02-28 02:24:18 ERROR (nose_storage_plugin) fuel_health.tests.sanity.test_sanity_identity.SanityIdentityTest.test_list_users
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 67, in testPartExecutor
    yield
  File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 601, in run
    testMethod()
  File "/usr/lib/python2.7/site-packages/fuel_health/tests/sanity/test_sanity_identity.py", line 52, in test_list_users
    self.identity_client)
  File "/usr/lib/python2.7/site-packages/fuel_health/common/test_mixins.py", line 180, in verify
    " Please refer to OpenStack logs for more details.")
  File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 666, in fail
    raise self.failureException(msg)
AssertionError: Step 1 failed: User list is unavailable. Please refer to OpenStack logs for more details.

Example of failed build:

https://ci.fuel-infra.org/job/master.puppet-openstack.fuel-library.pkgs.ubuntu.review_in_fuel_library/6177/console

Nikita Karpin (mkarpin) wrote :
Changed in fuel:
importance: High → Critical
Vladimir Khlyunev (vkhlyunev) wrote :

this will made bvt red when it will be merged - so preventive marking it as blocker

Changed in fuel:
assignee: nobody → Fuel QA Team (fuel-qa)
tags: added: bvt-blocker swarm-blocker
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers