← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1671604] [NEW] KeyError with Volumes panel

 

Public bug reported:

Horizon now raises this error:

Traceback (most recent call last):
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
    response = response.render()
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/response.py", line 158, in render
    self.content = self.rendered_content
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
    content = template.render(context, self._request)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
    return self.template.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 210, in render
    return self._render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
    return self.nodelist.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/loader_tags.py", line 135, in render
    return compiled_parent._render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
    return self.nodelist.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/loader_tags.py", line 159, in render
    return template.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 212, in render
    return self._render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
    return self.nodelist.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 1273, in render
    _dict = func(*resolved_args, **resolved_kwargs)
  File "/home/rdopiera/dev/horizon/horizon/templatetags/horizon.py", line 67, in horizon_nav
    panel_groups = dash.get_panel_groups()
  File "/home/rdopiera/dev/horizon/horizon/base.py", line 502, in get_panel_groups
    registered.pop(panel.__class__)
KeyError: <class 'openstack_dashboard.dashboards.project.volumes.panel.Volumes'>

In addition, Django fails to display this properly, raising:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
    return self.application(environ, start_response)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
    response = self.get_response(request)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/core/handlers/base.py", line 261, in handle_uncaught_exception
    return debug.technical_500_response(request, *exc_info)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/views/debug.py", line 97, in technical_500_response
    html = reporter.get_traceback_html()
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/views/debug.py", line 384, in get_traceback_html
    return t.render(c)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 210, in render
    return self._render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
    return self.nodelist.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/defaulttags.py", line 329, in render
    return nodelist.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 92, in render
    output = force_text(output)
  File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/utils/encoding.py", line 92, in force_text
    s = six.text_type(s)
TypeError: coercing to Unicode: need string or buffer, __proxy__ found

** Affects: horizon
     Importance: Undecided
     Assignee: Radomir Dopieralski (deshipu)
         Status: In Progress

-- 
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/1671604

Title:
  KeyError with Volumes panel

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  Horizon now raises this error:

  Traceback (most recent call last):
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
      response = response.render()
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/response.py", line 158, in render
      self.content = self.rendered_content
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
      content = template.render(context, self._request)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
      return self.template.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 210, in render
      return self._render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
      return self.nodelist.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/loader_tags.py", line 135, in render
      return compiled_parent._render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
      return self.nodelist.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/loader_tags.py", line 65, in render
      result = block.nodelist.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/loader_tags.py", line 65, in render
      result = block.nodelist.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/loader_tags.py", line 159, in render
      return template.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 212, in render
      return self._render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
      return self.nodelist.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 1273, in render
      _dict = func(*resolved_args, **resolved_kwargs)
    File "/home/rdopiera/dev/horizon/horizon/templatetags/horizon.py", line 67, in horizon_nav
      panel_groups = dash.get_panel_groups()
    File "/home/rdopiera/dev/horizon/horizon/base.py", line 502, in get_panel_groups
      registered.pop(panel.__class__)
  KeyError: <class 'openstack_dashboard.dashboards.project.volumes.panel.Volumes'>

  In addition, Django fails to display this properly, raising:

  Traceback (most recent call last):
    File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run
      self.result = application(self.environ, self.start_response)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
      return self.application(environ, start_response)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
      response = self.get_response(request)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response
      response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/core/handlers/base.py", line 261, in handle_uncaught_exception
      return debug.technical_500_response(request, *exc_info)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/views/debug.py", line 97, in technical_500_response
      html = reporter.get_traceback_html()
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/views/debug.py", line 384, in get_traceback_html
      return t.render(c)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 210, in render
      return self._render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
      return self.nodelist.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/defaulttags.py", line 329, in render
      return nodelist.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/template/debug.py", line 92, in render
      output = force_text(output)
    File "/home/rdopiera/dev/horizon/.tox/py27/lib/python2.7/site-packages/django/utils/encoding.py", line 92, in force_text
      s = six.text_type(s)
  TypeError: coercing to Unicode: need string or buffer, __proxy__ found

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


Follow ups