← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1303644] Re: Horizon errors when creating a valid Heat stack

 

*** This bug is a duplicate of bug 1286959 ***
    https://bugs.launchpad.net/bugs/1286959

Thank you for the report. This is a duplicate of bug 1286959 and was
fixed in Icehouse RC1. (Please reopen this bug if you're seeing this on
a more recent version.)

** This bug has been marked a duplicate of bug 1286959
   stack.updated_time is None

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

Title:
  Horizon errors when creating a valid Heat stack

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  I have done the following:
  - Went to project tab, and Orchestration -> Stack
  - Clicked on launc Stack and chose template from file (valid template), using the following content:
  heat_template_version: 2013-05-23
  description: >
    A single stack with a keypair.

  parameters:
    key_name:
      type: string
      default: heat_key
    key_save:
      type: string
      default: false

  resources:
    KeyPair:
      type: OS::Nova::KeyPair
      properties:
        name: { get_param: key_name }
        save_private_key: { get_param: key_save }

  outputs:
    PublicKey:
      value: { get_attr: [KeyPair, public_key] }
    PrivateKey:
      value: { get_attr: [KeyPair, private_key] }

  - gave the stack a simple name, and password and hit 'Launch'

  => Horizon errors out with "something went wront" with the following
  error in /var/log/horizon/horizon.log:

  2014-04-07 07:55:23,816 7116 ERROR horizon.tables.base Error while rendering table rows.
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1559, in get_rows
      row = self._meta.row_class(self, datum)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 476, in __init__
      self.load_cells()
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 502, in load_cells
      cell = table._meta.cell_class(datum, column, self)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 597, in __init__
      self.data = self.get_data(datum, column, row)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 635, in get_data
      data = column.get_data(datum)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 350, in get_data
      data = filter_func(data)
    File "/usr/lib/python2.7/site-packages/django/utils/timesince.py", line 32, in timesince
      d = datetime.datetime(d.year, d.month, d.day)
  AttributeError: 'str' object has no attribute 'year'
  2014-04-07 07:55:23,816 7116 ERROR django.request Internal Server Error: /dashboard/project/stacks/
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 140, 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 830, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, 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 830, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
      result = block.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 830, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
      result = block.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 830, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 881, in render
      output = self.filter_expression.resolve(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 578, in resolve
      obj = self.var.resolve(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 728, in resolve
      value = self._resolve_lookup(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 779, in _resolve_lookup
      current = current()
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1142, 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 830, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 485, in render
      output = self.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 830, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 483, in render
      six.iteritems(self.extra_context)])
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 578, in resolve
      obj = self.var.resolve(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 728, in resolve
      value = self._resolve_lookup(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 779, in _resolve_lookup
      current = current()
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1559, in get_rows
      row = self._meta.row_class(self, datum)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 476, in __init__
      self.load_cells()
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 502, in load_cells
      cell = table._meta.cell_class(datum, column, self)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 597, in __init__
      self.data = self.get_data(datum, column, row)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 635, in get_data
      data = column.get_data(datum)
    File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 350, in get_data
      data = filter_func(data)
    File "/usr/lib/python2.7/site-packages/django/utils/timesince.py", line 32, in timesince
      d = datetime.datetime(d.year, d.month, d.day)
  TemplateSyntaxError: 'str' object has no attribute 'year'

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


References