Transient test failure in test_v3_auth.TestAuthTOTP

Bug #1591022 reported by Dolph Mathews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Critical
werner mendizabal

Bug Description

In 0.06% of my test runs, test_v3_auth.TestAuthTOTP fails with either:

Traceback (most recent call last):
  File "/root/keystone/keystone/tests/unit/test_v3_auth.py", line 4904, in test_with_multiple_credential$
    self.v3_create_token(auth_data, expected_status=http_client.CREATED)
  File "/root/keystone/keystone/tests/unit/test_v3.py", line 504, in v3_create_token
    expected_status=expected_status)
  File "/root/keystone/keystone/tests/unit/rest.py", line 212, in admin_request
    return self._request(app=self.admin_app, **kwargs)
  File "/root/keystone/keystone/tests/unit/rest.py", line 201, in _request
    response = self.restful_request(**kwargs)
  File "/root/keystone/keystone/tests/unit/rest.py", line 186, in restful_request
    **kwargs)
  File "/root/keystone/keystone/tests/unit/rest.py", line 90, in request
    **kwargs)
  File "/root/keystone/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 571, in request
    expect_errors=expect_errors,
  File "/root/keystone/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 636, in do_requ$
st
    self._check_status(status, res)
  File "/root/keystone/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 671, in _check_$
tatus
    "Bad response: %s (not %s)", res_status, status)
webtest.app.AppError: Bad response: 401 Unauthorized (not 201)

OR

Traceback (most recent call last):
  File "/root/keystone/keystone/tests/unit/test_v3_auth.py", line 4961, in test_with_username_and_domain_
id
    self.v3_create_token(auth_data, expected_status=http_client.CREATED)
  File "/root/keystone/keystone/tests/unit/test_v3.py", line 504, in v3_create_token
    expected_status=expected_status)
  File "/root/keystone/keystone/tests/unit/rest.py", line 212, in admin_request
    return self._request(app=self.admin_app, **kwargs)
  File "/root/keystone/keystone/tests/unit/rest.py", line 201, in _request
    response = self.restful_request(**kwargs)
  File "/root/keystone/keystone/tests/unit/rest.py", line 186, in restful_request
    **kwargs)
  File "/root/keystone/keystone/tests/unit/rest.py", line 90, in request
    **kwargs)
  File "/root/keystone/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 571, in request
    expect_errors=expect_errors,
  File "/root/keystone/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 636, in do_reque
st
    self._check_status(status, res)
  File "/root/keystone/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 671, in _check_s
tatus
    "Bad response: %s (not %s)", res_status, status)
webtest.app.AppError: Bad response: 401 Unauthorized (not 201)

Revision history for this message
Dolph Mathews (dolph) wrote :

This is being addressed by https://review.openstack.org/#/c/327922/

Changed in keystone:
assignee: nobody → werner mendizabal (nonameentername)
importance: Undecided → Critical
status: New → In Progress
Changed in keystone:
assignee: werner mendizabal (nonameentername) → Steve Martinelli (stevemar)
Changed in keystone:
assignee: Steve Martinelli (stevemar) → werner mendizabal (nonameentername)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/327922
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=380514bc66984057b7ee9d817e1b4cac5fb75f11
Submitter: Jenkins
Branch: master

commit 380514bc66984057b7ee9d817e1b4cac5fb75f11
Author: nonameentername <email address hidden>
Date: Thu Jun 9 15:24:41 2016 -0500

    Fix TOTP transient test failure

    Closes-Bug: 1591022

    Change-Id: Ie8a986941fc5d6064f6e84fc01c045ff63c3fe75

Changed in keystone:
status: In Progress → Fix Released
Changed in keystone:
milestone: none → newton-2
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/keystone 10.0.0.0b2

This issue was fixed in the openstack/keystone 10.0.0.0b2 development milestone.

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.