Logs for Django 1.9 and 1.10 are filled with spam about 'Developer' dashboard

Bug #1630298 reported by Rob Cresswell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Unassigned

Bug Description

The logs are as below, but slightly different depending on the current test. They don't cause any actual problem, but the spam is annoying.

2016-10-04 14:28:59.700626 | Traceback (most recent call last):
2016-10-04 14:28:59.700702 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/.tox/py27dj19/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 209, in render
2016-10-04 14:28:59.700729 | return template.render(context)
2016-10-04 14:28:59.700785 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/.tox/py27dj19/local/lib/python2.7/site-packages/django/template/base.py", line 208, in render
2016-10-04 14:28:59.700809 | return self._render(context)
2016-10-04 14:28:59.700868 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/.tox/py27dj19/local/lib/python2.7/site-packages/django/test/utils.py", line 92, in instrumented_test_render
2016-10-04 14:28:59.700892 | return self.nodelist.render(context)
2016-10-04 14:28:59.700948 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/.tox/py27dj19/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
2016-10-04 14:28:59.700971 | bit = node.render_annotated(context)
2016-10-04 14:28:59.701029 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/.tox/py27dj19/local/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
2016-10-04 14:28:59.701049 | return self.render(context)
2016-10-04 14:28:59.701106 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/.tox/py27dj19/local/lib/python2.7/site-packages/django/template/library.py", line 223, in render
2016-10-04 14:28:59.701133 | _dict = self.func(*resolved_args, **resolved_kwargs)
2016-10-04 14:28:59.701179 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/horizon/templatetags/horizon.py", line 66, in horizon_nav
2016-10-04 14:28:59.701206 | for dash in Horizon.get_dashboards():
2016-10-04 14:28:59.701249 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/horizon/base.py", line 748, in get_dashboards
2016-10-04 14:28:59.701273 | dashboard = self._registered(item)
2016-10-04 14:28:59.701315 | File "/home/jenkins/workspace/gate-horizon-tox-py27dj19-ubuntu-xenial/horizon/base.py", line 225, in _registered
2016-10-04 14:28:59.701344 | "slug": slug})
2016-10-04 14:28:59.701375 | NotRegistered: Dashboard with slug "developer" is not registered.

Changed in horizon:
milestone: none → ocata-1
assignee: nobody → Rob Cresswell (robcresswell)
importance: Undecided → Low
tags: added: newton-backport-potential
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/382533

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/382533
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=f0f70002974694e4e2f6e094a49dd95cca7df5df
Submitter: Jenkins
Branch: master

commit f0f70002974694e4e2f6e094a49dd95cca7df5df
Author: Rob Cresswell <email address hidden>
Date: Wed Oct 5 17:03:27 2016 +0100

    Fix logspam in django 1.9 and django 1.10 tests

    Including the contrib enabled files was causing a ton of warnings in the
    test runs about the 'Developer' dashboard not being registered. We
    should remove it from test settings; we can also disable the
    theme_preview test (which didn't have much value anyway) as it is
    covered by a check in developer/tests.py

    Change-Id: Ib03a13f289eca6a7565a7a6f1a9a3ab6c90d56c9
    Closes-Bug: 1630298

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 11.0.0.0b1

This issue was fixed in the openstack/horizon 11.0.0.0b1 development milestone.

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/402111

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

Reviewed: https://review.openstack.org/402111
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=c5482a957f085d1145822044b67e5d9db62f6f06
Submitter: Jenkins
Branch: stable/newton

commit c5482a957f085d1145822044b67e5d9db62f6f06
Author: Rob Cresswell <email address hidden>
Date: Wed Oct 5 17:03:27 2016 +0100

    Fix logspam in django 1.9 and django 1.10 tests

    Including the contrib enabled files was causing a ton of warnings in the
    test runs about the 'Developer' dashboard not being registered. We
    should remove it from test settings; we can also disable the
    theme_preview test (which didn't have much value anyway) as it is
    covered by a check in developer/tests.py

    Change-Id: Ib03a13f289eca6a7565a7a6f1a9a3ab6c90d56c9
    Closes-Bug: 1630298
    (cherry picked from commit f0f70002974694e4e2f6e094a49dd95cca7df5df)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 10.0.2

This issue was fixed in the openstack/horizon 10.0.2 release.

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.