← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1482499] [NEW] error found in page /dashboard/admin/aggregates/

 

Public bug reported:

Create a host aggregates with Availability Zone and a host;  then
disable the only host in this zone;  when you open
/dashboard/admin/aggregates/,the  page shows error:   "An unexpected
error has occurred. Try refreshing the page. If that doesn't  help,
contact your local administrator."

In  /var/log/horizon/horizon.log ,it shows: 
2015-08-07 05:15:50,766 26634 ERROR django.request Internal Server Error: /dashboard/admin/aggregates/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 137, in get_response
    response = response.render()
  File "/usr/lib/python2.7/site-packages/django/template/response.py", line 105, in render
    self.content = self.rendered_content
  File "/usr/lib/python2.7/site-packages/django/template/response.py", line 82, in rendered_content
    content = template.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 140, in render
    return self._render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
    return self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 123, in render
    return compiled_parent._render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
    return self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 891, in render
    output = self.filter_expression.resolve(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 585, in resolve
    obj = self.var.resolve(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 735, in resolve
    value = self._resolve_lookup(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 789, in _resolve_lookup
    current = current()
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1149, in render
    return table_template.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 140, in render
    return self._render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
    return self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 506, in render
    output = self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 504, in render
    six.iteritems(self.extra_context)])
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 585, in resolve
    obj = self.var.resolve(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 735, in resolve
    value = self._resolve_lookup(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 789, in _resolve_lookup
    current = current()
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1578, in get_rows
    row = self._meta.row_class(self, datum)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 483, in __init__
    self.load_cells()
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 509, in load_cells
    cell = table._meta.cell_class(datum, column, self)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 604, in __init__
    self.data = self.get_data(datum, column, row)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 642, in get_data
    data = column.get_data(datum)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 338, in get_data
    data = self.get_raw_data(datum)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 308, in get_raw_data
    data = self.transform(datum)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/aggregates/tables.py", line 88, in get_zone_hosts
    for name, services in hosts.items():
TemplateSyntaxError: 'NoneType' object has no attribute 'items'

** Affects: horizon
     Importance: Undecided
         Status: New

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

Title:
  error found in page  /dashboard/admin/aggregates/

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Create a host aggregates with Availability Zone and a host;  then
  disable the only host in this zone;  when you open
  /dashboard/admin/aggregates/,the  page shows error:   "An unexpected
  error has occurred. Try refreshing the page. If that doesn't  help,
  contact your local administrator."

  In  /var/log/horizon/horizon.log ,it shows: 
  2015-08-07 05:15:50,766 26634 ERROR django.request Internal Server Error: /dashboard/admin/aggregates/
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 137, in get_response
      response = response.render()
    File "/usr/lib/python2.7/site-packages/django/template/response.py", line 105, in render
      self.content = self.rendered_content
    File "/usr/lib/python2.7/site-packages/django/template/response.py", line 82, in rendered_content
      content = template.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 140, in render
      return self._render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
      return self.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 123, in render
      return compiled_parent._render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
      return self.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 62, in render
      result = block.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 62, in render
      result = block.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 891, in render
      output = self.filter_expression.resolve(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 585, in resolve
      obj = self.var.resolve(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 735, in resolve
      value = self._resolve_lookup(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 789, in _resolve_lookup
      current = current()
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1149, in render
      return table_template.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 140, in render
      return self._render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
      return self.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 506, in render
      output = self.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 840, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 504, in render
      six.iteritems(self.extra_context)])
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 585, in resolve
      obj = self.var.resolve(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 735, in resolve
      value = self._resolve_lookup(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 789, in _resolve_lookup
      current = current()
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1578, in get_rows
      row = self._meta.row_class(self, datum)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 483, in __init__
      self.load_cells()
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 509, in load_cells
      cell = table._meta.cell_class(datum, column, self)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 604, in __init__
      self.data = self.get_data(datum, column, row)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 642, in get_data
      data = column.get_data(datum)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 338, in get_data
      data = self.get_raw_data(datum)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 308, in get_raw_data
      data = self.transform(datum)
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/aggregates/tables.py", line 88, in get_zone_hosts
      for name, services in hosts.items():
  TemplateSyntaxError: 'NoneType' object has no attribute 'items'

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


Follow ups