yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #12944
[Bug 1301183] [NEW] icehouse horizon Error while rendering table rows
Public bug reported:
I install the icehouse on the Ubuntu12.04.4, and manual install the heat through the deb package.
I can use heat in the command line normally, but some problem on the dashboard.
I check the apache log from the dashboard, the log report was that:
[Wed Apr 02 06:38:30 2014] [error] Error while rendering table rows.
[Wed Apr 02 06:38:30 2014] [error] Traceback (most recent call last):
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 1559, in get_rows
[Wed Apr 02 06:38:30 2014] [error] row = self._meta.row_class(self, datum)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 476, in __init__
[Wed Apr 02 06:38:30 2014] [error] self.load_cells()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 502, in load_cells
[Wed Apr 02 06:38:30 2014] [error] cell = table._meta.cell_class(datum, column, self)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 597, in __init__
[Wed Apr 02 06:38:30 2014] [error] self.data = self.get_data(datum, column, row)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 635, in get_data
[Wed Apr 02 06:38:30 2014] [error] data = column.get_data(datum)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 350, in get_data
[Wed Apr 02 06:38:30 2014] [error] data = filter_func(data)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/utils/timesince.py", line 33, in timesince
[Wed Apr 02 06:38:30 2014] [error] d = datetime.datetime(d.year, d.month, d.day)
[Wed Apr 02 06:38:30 2014] [error] AttributeError: 'str' object has no attribute 'year'
[Wed Apr 02 06:38:30 2014] [error] Internal Server Error: /horizon/project/stacks/
[Wed Apr 02 06:38:30 2014] [error] Traceback (most recent call last):
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 139, in get_response
[Wed Apr 02 06:38:30 2014] [error] response = response.render()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 105, in render
[Wed Apr 02 06:38:30 2014] [error] self.content = self.rendered_content
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 82, in rendered_content
[Wed Apr 02 06:38:30 2014] [error] content = template.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Wed Apr 02 06:38:30 2014] [error] return self._render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Apr 02 06:38:30 2014] [error] return self.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 123, in render
[Wed Apr 02 06:38:30 2014] [error] return compiled_parent._render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Apr 02 06:38:30 2014] [error] return self.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 62, in render
[Wed Apr 02 06:38:30 2014] [error] result = block.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 62, in render
[Wed Apr 02 06:38:30 2014] [error] result = block.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 891, in render
[Wed Apr 02 06:38:30 2014] [error] output = self.filter_expression.resolve(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 585, in resolve
[Wed Apr 02 06:38:30 2014] [error] obj = self.var.resolve(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 735, in resolve
[Wed Apr 02 06:38:30 2014] [error] value = self._resolve_lookup(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 789, in _resolve_lookup
[Wed Apr 02 06:38:30 2014] [error] current = current()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 1142, in render
[Wed Apr 02 06:38:30 2014] [error] return table_template.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Wed Apr 02 06:38:30 2014] [error] return self._render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Apr 02 06:38:30 2014] [error] return self.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 506, in render
[Wed Apr 02 06:38:30 2014] [error] output = self.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 504, in render
[Wed Apr 02 06:38:30 2014] [error] six.iteritems(self.extra_context)])
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 585, in resolve
[Wed Apr 02 06:38:30 2014] [error] obj = self.var.resolve(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 735, in resolve
[Wed Apr 02 06:38:30 2014] [error] value = self._resolve_lookup(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 789, in _resolve_lookup
[Wed Apr 02 06:38:30 2014] [error] current = current()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 1559, in get_rows
[Wed Apr 02 06:38:30 2014] [error] row = self._meta.row_class(self, datum)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 476, in __init__
[Wed Apr 02 06:38:30 2014] [error] self.load_cells()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 502, in load_cells
[Wed Apr 02 06:38:30 2014] [error] cell = table._meta.cell_class(datum, column, self)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 597, in __init__
[Wed Apr 02 06:38:30 2014] [error] self.data = self.get_data(datum, column, row)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 635, in get_data
[Wed Apr 02 06:38:30 2014] [error] data = column.get_data(datum)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 350, in get_data
[Wed Apr 02 06:38:30 2014] [error] data = filter_func(data)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/utils/timesince.py", line 33, in timesince
[Wed Apr 02 06:38:30 2014] [error] d = datetime.datetime(d.year, d.month, d.day)
[Wed Apr 02 06:38:30 2014] [error] TemplateSyntaxError: 'str' object has no attribute 'year'
Is there anyone encounter this question ? And how to resolve this
question ?
** 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/1301183
Title:
icehouse horizon Error while rendering table rows
Status in OpenStack Dashboard (Horizon):
New
Bug description:
I install the icehouse on the Ubuntu12.04.4, and manual install the heat through the deb package.
I can use heat in the command line normally, but some problem on the dashboard.
I check the apache log from the dashboard, the log report was that:
[Wed Apr 02 06:38:30 2014] [error] Error while rendering table rows.
[Wed Apr 02 06:38:30 2014] [error] Traceback (most recent call last):
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 1559, in get_rows
[Wed Apr 02 06:38:30 2014] [error] row = self._meta.row_class(self, datum)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 476, in __init__
[Wed Apr 02 06:38:30 2014] [error] self.load_cells()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 502, in load_cells
[Wed Apr 02 06:38:30 2014] [error] cell = table._meta.cell_class(datum, column, self)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 597, in __init__
[Wed Apr 02 06:38:30 2014] [error] self.data = self.get_data(datum, column, row)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 635, in get_data
[Wed Apr 02 06:38:30 2014] [error] data = column.get_data(datum)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 350, in get_data
[Wed Apr 02 06:38:30 2014] [error] data = filter_func(data)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/utils/timesince.py", line 33, in timesince
[Wed Apr 02 06:38:30 2014] [error] d = datetime.datetime(d.year, d.month, d.day)
[Wed Apr 02 06:38:30 2014] [error] AttributeError: 'str' object has no attribute 'year'
[Wed Apr 02 06:38:30 2014] [error] Internal Server Error: /horizon/project/stacks/
[Wed Apr 02 06:38:30 2014] [error] Traceback (most recent call last):
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 139, in get_response
[Wed Apr 02 06:38:30 2014] [error] response = response.render()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 105, in render
[Wed Apr 02 06:38:30 2014] [error] self.content = self.rendered_content
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 82, in rendered_content
[Wed Apr 02 06:38:30 2014] [error] content = template.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Wed Apr 02 06:38:30 2014] [error] return self._render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Apr 02 06:38:30 2014] [error] return self.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 123, in render
[Wed Apr 02 06:38:30 2014] [error] return compiled_parent._render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Apr 02 06:38:30 2014] [error] return self.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 62, in render
[Wed Apr 02 06:38:30 2014] [error] result = block.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 62, in render
[Wed Apr 02 06:38:30 2014] [error] result = block.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 891, in render
[Wed Apr 02 06:38:30 2014] [error] output = self.filter_expression.resolve(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 585, in resolve
[Wed Apr 02 06:38:30 2014] [error] obj = self.var.resolve(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 735, in resolve
[Wed Apr 02 06:38:30 2014] [error] value = self._resolve_lookup(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 789, in _resolve_lookup
[Wed Apr 02 06:38:30 2014] [error] current = current()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 1142, in render
[Wed Apr 02 06:38:30 2014] [error] return table_template.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Wed Apr 02 06:38:30 2014] [error] return self._render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Apr 02 06:38:30 2014] [error] return self.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 506, in render
[Wed Apr 02 06:38:30 2014] [error] output = self.nodelist.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Apr 02 06:38:30 2014] [error] bit = self.render_node(node, context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Wed Apr 02 06:38:30 2014] [error] return node.render(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 504, in render
[Wed Apr 02 06:38:30 2014] [error] six.iteritems(self.extra_context)])
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 585, in resolve
[Wed Apr 02 06:38:30 2014] [error] obj = self.var.resolve(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 735, in resolve
[Wed Apr 02 06:38:30 2014] [error] value = self._resolve_lookup(context)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 789, in _resolve_lookup
[Wed Apr 02 06:38:30 2014] [error] current = current()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 1559, in get_rows
[Wed Apr 02 06:38:30 2014] [error] row = self._meta.row_class(self, datum)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 476, in __init__
[Wed Apr 02 06:38:30 2014] [error] self.load_cells()
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 502, in load_cells
[Wed Apr 02 06:38:30 2014] [error] cell = table._meta.cell_class(datum, column, self)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 597, in __init__
[Wed Apr 02 06:38:30 2014] [error] self.data = self.get_data(datum, column, row)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 635, in get_data
[Wed Apr 02 06:38:30 2014] [error] data = column.get_data(datum)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/base.py", line 350, in get_data
[Wed Apr 02 06:38:30 2014] [error] data = filter_func(data)
[Wed Apr 02 06:38:30 2014] [error] File "/usr/lib/python2.7/dist-packages/django/utils/timesince.py", line 33, in timesince
[Wed Apr 02 06:38:30 2014] [error] d = datetime.datetime(d.year, d.month, d.day)
[Wed Apr 02 06:38:30 2014] [error] TemplateSyntaxError: 'str' object has no attribute 'year'
Is there anyone encounter this question ? And how to resolve this
question ?
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1301183/+subscriptions
Follow ups
References