← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1314102] Re: Horizon fail to send rebuild instance command

 

img.bytes was replaced with img.size as part of the fix for bug 1258349,
which was fixed in time for the Icehouse RC. I cannot reproduce the
issue on master. Feel free to reopen if you still see the issues, and
give more information about the image you're using. Thank you.


** Changed in: horizon
       Status: New => Invalid

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

Title:
  Horizon fail to send rebuild instance command

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  Description of problem:
  The rebuild command fails when sent from the Horizon. The error in the horizon log is:

  2014-04-29 08:51:57,586 27987 ERROR django.request Internal Server Error: /dashboard/project/instances/df65444f-7af6-4a52-a49e-98116c94e76e/rebuild
  Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 136, in get_response
      response = response.render()
    File "/usr/lib/python2.6/site-packages/django/template/response.py", line 104, in render
      self._set_content(self.rendered_content)
    File "/usr/lib/python2.6/site-packages/django/template/response.py", line 81, in rendered_content
      content = template.render(context)
    File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 123, in render
      return compiled_parent._render(context)
    File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
      return self.nodelist.render(context)
    File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.6/site-packages/django/template/debug.py", line 74, in render_node
      return node.render(context)
    File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 62, in render
      result = block.nodelist.render(context)
    File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.6/site-packages/django/template/debug.py", line 74, in render_node
      return node.render(context)
    File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 155, in render
      return self.render_template(self.template, context)
    File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 137, in render_template
      output = template.render(context)
    File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render
      return self._render(context)
    File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
      return self.nodelist.render(context)
    File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.6/site-packages/django/template/debug.py", line 74, in render_node
      return node.render(context)
    File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 186, in render
      nodelist.append(node.render(context))
    File "/usr/lib/python2.6/site-packages/django/template/debug.py", line 87, in render
      output = force_unicode(output)
    File "/usr/lib/python2.6/site-packages/django/utils/encoding.py", line 71, in force_unicode
      s = unicode(s)
    File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 411, in __unicode__
      return self.as_widget()
    File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 458, in as_widget
      return widget.render(name, self.value(), attrs=attrs)
    File "/usr/lib/python2.6/site-packages/django/forms/widgets.py", line 547, in render
      options = self.render_options(choices, [value])
    File "/usr/lib/python2.6/site-packages/django/forms/widgets.py", line 577, in render_options
      output.append(self.render_option(selected_choices, option_value, option_label))
    File "/usr/lib/python2.6/site-packages/horizon/utils/fields.py", line 127, in render_option
      option_label = self.transform(option_label)
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/forms.py", line 34, in _image_choice_title
      gb = filesizeformat(img.bytes)
  AttributeError: 'NoneType' object has no attribute 'bytes'

  Version-Release number of selected component (if applicable):
  python-django-horizon-2013.2.3-1.el6ost.noarch

  How reproducible:
  100%

  Steps to Reproduce:
  1. launch an instance
  2. send the rebuild command from the horizon
  3.

  Actual results:
  the action fails 

  Expected results:
  The command should reach the nova (at the very least).

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


References