Test failing due to latest version of openstack_auth

Bug #1207599 reported by Lin Hua Cheng
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Lin Hua Cheng
Folsom
Fix Released
Critical
Julie Pichon
Grizzly
Fix Released
Critical
Julie Pichon

Bug Description

Horizon jobs are failing due to incompatibility with openstack_auth

2013-08-02 00:37:02.136 | ======================================================================
2013-08-02 00:37:02.136 | ERROR: test_update_project_member_update_error_domain (openstack_dashboard.dashboards.admin.projects.tests.UpdateProjectWorkflowTests)
2013-08-02 00:37:02.136 | ----------------------------------------------------------------------
2013-08-02 00:37:02.136 | Traceback (most recent call last):
2013-08-02 00:37:02.136 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/admin/projects/tests.py", line 1242, in test_update_project_member_update_error_domain
2013-08-02 00:37:02.136 | self.test_update_project_member_update_error()
2013-08-02 00:37:02.136 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/test/helpers.py", line 77, in instance_stub_out
2013-08-02 00:37:02.137 | return fn(self)
2013-08-02 00:37:02.137 | File "/home/jenkins/workspace/gate-horizon-python26/openstack_dashboard/dashboards/admin/projects/tests.py", line 1232, in test_update_project_member_update_error
2013-08-02 00:37:02.137 | res = self.client.post(url, workflow_data)
2013-08-02 00:37:02.137 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/test/client.py", line 463, in post
2013-08-02 00:37:02.137 | response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
2013-08-02 00:37:02.137 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/test/client.py", line 297, in post
2013-08-02 00:37:02.137 | return self.request(**r)
2013-08-02 00:37:02.137 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/test/client.py", line 424, in request
2013-08-02 00:37:02.137 | six.reraise(*exc_info)
2013-08-02 00:37:02.138 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/core/handlers/base.py", line 115, in get_response
2013-08-02 00:37:02.138 | response = callback(request, *callback_args, **callback_kwargs)
2013-08-02 00:37:02.138 | File "/home/jenkins/workspace/gate-horizon-python26/horizon/decorators.py", line 38, in dec
2013-08-02 00:37:02.138 | return view_func(request, *args, **kwargs)
2013-08-02 00:37:02.138 | File "/home/jenkins/workspace/gate-horizon-python26/horizon/decorators.py", line 84, in dec
2013-08-02 00:37:02.138 | if request.user.is_authenticated():
2013-08-02 00:37:02.138 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/openstack_auth/user.py", line 189, in is_authenticated
2013-08-02 00:37:02.138 | return self.token is not None and check_token_expiration(self.token)
2013-08-02 00:37:02.138 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/openstack_auth/utils.py", line 55, in check_token_expiration
2013-08-02 00:37:02.138 | if settings.USE_TZ and timezone.is_naive(expiration):
2013-08-02 00:37:02.139 | File "/home/jenkins/workspace/gate-horizon-python26/.tox/py26/lib/python2.6/site-packages/django/utils/timezone.py", line 272, in is_naive
2013-08-02 00:37:02.139 | return value.tzinfo is None or value.tzinfo.utcoffset(value) is None
2013-08-02 00:37:02.139 | AttributeError: 'str' object has no attribute 'tzinfo'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/39859

Changed in horizon:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
status: New → In Progress
Changed in horizon:
milestone: none → havana-3
David Lyle (david-lyle)
Changed in horizon:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/39859
Committed: http://github.com/openstack/horizon/commit/355c9ccf90e9787b4f10fefba156569df79e4e8c
Submitter: Jenkins
Branch: master

commit 355c9ccf90e9787b4f10fefba156569df79e4e8c
Author: Lin Hua Cheng <email address hidden>
Date: Thu Aug 1 20:50:51 2013 -0700

    Fixed keystone test data to match openstack_auth.

    Fixes bug 1207599

    Change-Id: I2cc333911cc0d07cab9c0c550a8d0d69f374634c

Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/folsom)

Fix proposed to branch: stable/folsom
Review: https://review.openstack.org/39879

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/grizzly)

Reviewed: https://review.openstack.org/39876
Committed: http://github.com/openstack/horizon/commit/d6f033c30c07b670a64720ea03ac830abe6861c4
Submitter: Jenkins
Branch: stable/grizzly

commit d6f033c30c07b670a64720ea03ac830abe6861c4
Author: Julie Pichon <email address hidden>
Date: Fri Aug 2 09:47:16 2013 +0100

    Cap django_openstack_auth

    The initial requirement change was not restrictive enough for the
    stable branches.

    Fixes bug #1207599

    Change-Id: I8201216b26756989ccd5285a76178b2fd66a3353

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/folsom)

Reviewed: https://review.openstack.org/39879
Committed: http://github.com/openstack/horizon/commit/d202fd4e8a86cc8a5fe787be3fb5c17c86b8daaa
Submitter: Jenkins
Branch: stable/folsom

commit d202fd4e8a86cc8a5fe787be3fb5c17c86b8daaa
Author: Julie Pichon <email address hidden>
Date: Fri Aug 2 09:37:09 2013 +0100

    Cap django_openstack_auth

    The initial requirement change was not restrictive enough for the
    stable branches.

    Fixes bug #1207599

    Change-Id: I8201216b26756989ccd5285a76178b2fd66a3353

Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: havana-3 → 2013.2
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.