← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1683859] [NEW] Project/admin instances table error when set enable_router is False

 

Public bug reported:

Env: devstack master branch

Steps to reproduce:
1. set 'enable_router' is False in the local_settings.py
2. Go to project/instances panel.

Error info:
Internal Server Error: /project/instances/
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 164, in get_response
    response = response.render()
  File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 158, in render
    self.content = self.rendered_content
  File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 135, in rendered_content
    content = template.render(context, self._request)
  File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py", line 74, in render
    return self.template.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 210, in render
    return self._render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
    return self.nodelist.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 135, in render
    return compiled_parent._render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
    return self.nodelist.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 89, in render
    output = self.filter_expression.resolve(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 648, in resolve
    obj = self.var.resolve(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789, in resolve
    value = self._resolve_lookup(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 849, in _resolve_lookup
    current = current()
  File "/opt/stack/horizon/horizon/tables/base.py", line 1372, in render
    return table_template.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py", line 74, in render
    return self.template.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 210, in render
    return self._render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
    return self.nodelist.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 576, in render
    return self.nodelist.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 574, in render
    six.iteritems(self.extra_context)}
  File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 573, in <dictcomp>
    values = {key: val.resolve(context) for key, val in
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 648, in resolve
    obj = self.var.resolve(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789, in resolve
    value = self._resolve_lookup(context)
  File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 849, in _resolve_lookup
    current = current()
  File "/opt/stack/horizon/horizon/tables/base.py", line 1882, in get_rows
    exc_info[2])
  File "/opt/stack/horizon/horizon/tables/base.py", line 1871, in get_rows
    row = self._meta.row_class(self, datum)
  File "/opt/stack/horizon/horizon/tables/base.py", line 575, in __init__
    self.load_cells()
  File "/opt/stack/horizon/horizon/tables/base.py", line 601, in load_cells
    cell = table._meta.cell_class(datum, column, self)
  File "/opt/stack/horizon/horizon/tables/base.py", line 711, in __init__
    self.data = self.get_data(datum, column, row)
  File "/opt/stack/horizon/horizon/tables/base.py", line 752, in get_data
    data = table.render_row_actions(datum)
  File "/opt/stack/horizon/horizon/tables/base.py", line 1535, in render_row_actions
    bound_actions = self.get_row_actions(datum)
  File "/opt/stack/horizon/horizon/tables/base.py", line 1487, in get_row_actions
    bound_action.bound_url = bound_action.get_link_url(datum)
  File "/opt/stack/horizon/openstack_dashboard/dashboards/project/instances/tables.py", line 647, in get_link_url
    base_url = urlresolvers.reverse(self.url)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 571, in reverse
    (key, ':'.join(resolved_path)))
TemplateSyntaxError: u'floating_ips' is not a registered namespace inside 'horizon:project'
[18/Apr/2017 15:51:21] "GET /project/instances/ HTTP/1.1" 500 540766

** Affects: horizon
     Importance: Undecided
     Assignee: wei.ying (wei.yy)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => wei.ying (wei.yy)

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

Title:
  Project/admin instances table error when set enable_router is False

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Env: devstack master branch

  Steps to reproduce:
  1. set 'enable_router' is False in the local_settings.py
  2. Go to project/instances panel.

  Error info:
  Internal Server Error: /project/instances/
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 164, in get_response
      response = response.render()
    File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 158, in render
      self.content = self.rendered_content
    File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 135, in rendered_content
      content = template.render(context, self._request)
    File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py", line 74, in render
      return self.template.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 210, in render
      return self._render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
      return self.nodelist.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 135, in render
      return compiled_parent._render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
      return self.nodelist.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 65, in render
      result = block.nodelist.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 65, in render
      result = block.nodelist.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 89, in render
      output = self.filter_expression.resolve(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 648, in resolve
      obj = self.var.resolve(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789, in resolve
      value = self._resolve_lookup(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 849, in _resolve_lookup
      current = current()
    File "/opt/stack/horizon/horizon/tables/base.py", line 1372, in render
      return table_template.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py", line 74, in render
      return self.template.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 210, in render
      return self._render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
      return self.nodelist.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 576, in render
      return self.nodelist.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
      bit = self.render_node(node, context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 574, in render
      six.iteritems(self.extra_context)}
    File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 573, in <dictcomp>
      values = {key: val.resolve(context) for key, val in
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 648, in resolve
      obj = self.var.resolve(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789, in resolve
      value = self._resolve_lookup(context)
    File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 849, in _resolve_lookup
      current = current()
    File "/opt/stack/horizon/horizon/tables/base.py", line 1882, in get_rows
      exc_info[2])
    File "/opt/stack/horizon/horizon/tables/base.py", line 1871, in get_rows
      row = self._meta.row_class(self, datum)
    File "/opt/stack/horizon/horizon/tables/base.py", line 575, in __init__
      self.load_cells()
    File "/opt/stack/horizon/horizon/tables/base.py", line 601, in load_cells
      cell = table._meta.cell_class(datum, column, self)
    File "/opt/stack/horizon/horizon/tables/base.py", line 711, in __init__
      self.data = self.get_data(datum, column, row)
    File "/opt/stack/horizon/horizon/tables/base.py", line 752, in get_data
      data = table.render_row_actions(datum)
    File "/opt/stack/horizon/horizon/tables/base.py", line 1535, in render_row_actions
      bound_actions = self.get_row_actions(datum)
    File "/opt/stack/horizon/horizon/tables/base.py", line 1487, in get_row_actions
      bound_action.bound_url = bound_action.get_link_url(datum)
    File "/opt/stack/horizon/openstack_dashboard/dashboards/project/instances/tables.py", line 647, in get_link_url
      base_url = urlresolvers.reverse(self.url)
    File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 571, in reverse
      (key, ':'.join(resolved_path)))
  TemplateSyntaxError: u'floating_ips' is not a registered namespace inside 'horizon:project'
  [18/Apr/2017 15:51:21] "GET /project/instances/ HTTP/1.1" 500 540766

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


Follow ups