py26, py27 gate jobs are failing due to inaccurate mocks of keystone tokens

Bug #1324885 reported by Ildiko Vancsa
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Critical
Dina Belova
Icehouse
Fix Committed
Critical
Dina Belova

Bug Description

py26 and py27 gate jobs are failing because the 'expires' option is required in python-keystoneclient 0.9.0

======================================================================
2014-05-30 10:37:32.919 | FAIL: tests.api.v2.test_acl_scenarios.TestAPIACL.test_authenticated(sqlite)
2014-05-30 10:37:32.919 | tags: worker-0
2014-05-30 10:37:32.919 | ----------------------------------------------------------------------
2014-05-30 10:37:32.919 | Empty attachments:
2014-05-30 10:37:32.919 | stdout
2014-05-30 10:37:32.919 |
2014-05-30 10:37:32.919 | stderr: {{{
2014-05-30 10:37:32.919 | /home/jenkins/workspace/gate-ceilometer-python26/.tox/py26/lib/python2.6/site-packages/pecan/__init__.py:110: RuntimeWarning: `static_root` is only used when `debug` is True, ignoring
2014-05-30 10:37:32.919 | RuntimeWarning
2014-05-30 10:37:32.919 | }}}
2014-05-30 10:37:32.920 |
2014-05-30 10:37:32.920 | Traceback (most recent call last):
2014-05-30 10:37:32.920 | File "ceilometer/tests/base.py", line 75, in skip_if_not_implemented
2014-05-30 10:37:32.920 | return func(*args, **kwargs)
2014-05-30 10:37:32.920 | File "/home/jenkins/workspace/gate-ceilometer-python26/ceilometer/tests/api/v2/test_acl_scenarios.py", line 161, in test_authenticated
2014-05-30 10:37:32.920 | "bc23a9d531064583ace8f67dad60f6bb",
2014-05-30 10:37:32.920 | File "/home/jenkins/workspace/gate-ceilometer-python26/ceilometer/tests/api/v2/test_acl_scenarios.py", line 117, in get_json
2014-05-30 10:37:32.920 | **params)
2014-05-30 10:37:32.920 | File "ceilometer/tests/api/__init__.py", line 183, in get_json
2014-05-30 10:37:32.920 | status=status)
2014-05-30 10:37:32.920 | File "/home/jenkins/workspace/gate-ceilometer-python26/.tox/py26/lib/python2.6/site-packages/webtest/app.py", line 286, in get
2014-05-30 10:37:32.921 | expect_errors=expect_errors)
2014-05-30 10:37:32.921 | File "/home/jenkins/workspace/gate-ceilometer-python26/.tox/py26/lib/python2.6/site-packages/webtest/app.py", line 595, in do_request
2014-05-30 10:37:32.921 | self._check_status(status, res)
2014-05-30 10:37:32.921 | File "/home/jenkins/workspace/gate-ceilometer-python26/.tox/py26/lib/python2.6/site-packages/webtest/app.py", line 624, in _check_status
2014-05-30 10:37:32.921 | res)
2014-05-30 10:37:32.921 | AppError: Bad response: 401 Unauthorized (not 200 OK or 3xx redirect for http://localhost/v2/meters)
2014-05-30 10:37:32.921 | 'Authentication required'

Revision history for this message
Ildiko Vancsa (ildiko-vancsa) wrote :
description: updated
Changed in ceilometer:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Dina Belova (dbelova)
milestone: none → juno-1
Revision history for this message
Ildiko Vancsa (ildiko-vancsa) wrote :
Dina Belova (dbelova)
Changed in ceilometer:
status: In Progress → Fix Committed
Revision history for this message
Dolph Mathews (dolph) wrote :

The title of this bug is misleading - tokens have *always* had an expiration datetime; the failure here is simply an inaccurate testing mock of a real token.

summary: - py26, py27 gate jobs are failing due to the change of token format in
- keystoneclient
+ py26, py27 gate jobs are failing due to inaccurate mocks of keystone
+ tokens
Revision history for this message
ZhiQiang Fan (aji-zqfan) wrote :

havana is affected too, backport patch is here: https://review.openstack.org/#/c/97677/

Revision history for this message
Anita Kuno (anteaya) wrote :

e-r query to classify the logs that show this bug before it was fixed

message:"FAIL: tests.api.v2.test_acl_scenarios.TestAPIACL.test_authenticated(sqlite)"

https://review.openstack.org/#/c/98159/2/queries/1324885.yaml

Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Revision history for this message
Sean Dague (sdague) wrote :

Dropped from ER tracking

Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.