← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1630298] Re: Logs for Django 1.9 and 1.10 are filled with spam about 'Developer' dashboard

 

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 <robert.cresswell@xxxxxxxxxxx>
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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1630298

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

Status in OpenStack Dashboard (Horizon):
  Fix Released

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1630298/+subscriptions


References