← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1444421] [NEW] Launch instance fails with nova network

 

Public bug reported:

git checkout from kilo rc1:

I have deployed as system with nova network instead of neutron.

While trying to launch an instance, I'm getting:
Internal Server Error: /project/instances/launch
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
    response = response.render()
  File "/usr/lib/python2.7/site-packages/django/template/response.py", line 158, in render
    self.content = self.rendered_content
  File "/usr/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
    content = template.render(context, self._request)
  File "/usr/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
    return self.template.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 209, in render
    return self._render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 201, in _render
    return self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 903, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 576, in render
    return self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 903, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 56, in render
    result = self.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 903, in render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 217, in render
    nodelist.append(node.render(context))
  File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 322, in render
    match = condition.eval(context)
  File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 933, in eval
    return self.value.resolve(context, ignore_failures=True)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 647, in resolve
    obj = self.var.resolve(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 787, in resolve
    value = self._resolve_lookup(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 847, in _resolve_lookup
    current = current()
  File "/home/mrunge/work/horizon/horizon/workflows/base.py", line 439, in has_required_fields
    return any(field.required for field in self.action.fields.values())
  File "/home/mrunge/work/horizon/horizon/workflows/base.py", line 368, in action
    context)
  File "/home/mrunge/work/horizon/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py", line 707, in __init__
    super(SetNetworkAction, self).__init__(request, *args, **kwargs)
  File "/home/mrunge/work/horizon/horizon/workflows/base.py", line 138, in __init__
    self._populate_choices(request, context)
  File "/home/mrunge/work/horizon/horizon/workflows/base.py", line 151, in _populate_choices
    bound_field.choices = meth(request, context)
  File "/home/mrunge/work/horizon/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py", line 721, in populate_network_choices
    return instance_utils.network_field_data(request)
  File "/home/mrunge/work/horizon/openstack_dashboard/dashboards/project/instances/utils.py", line 97, in network_field_data
    if not networks:
UnboundLocalError: local variable 'networks' referenced before assignment


Fun fact is, this only occurs, when using admin credentials. with user, this doesn't happen.

The error message shown in horizon is: Error: Invalid service catalog
service: network

** Affects: horizon
     Importance: Undecided
         Status: New


** Tags: kilo-backport-potential

** Changed in: horizon
    Milestone: None => ongoing

** Changed in: horizon
    Milestone: ongoing => next

** Changed in: horizon
    Milestone: next => liberty-1

** Tags added: kilo-backport-potential

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

Title:
  Launch instance fails with nova network

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  git checkout from kilo rc1:

  I have deployed as system with nova network instead of neutron.

  While trying to launch an instance, I'm getting:
  Internal Server Error: /project/instances/launch
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
      response = response.render()
    File "/usr/lib/python2.7/site-packages/django/template/response.py", line 158, in render
      self.content = self.rendered_content
    File "/usr/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
      content = template.render(context, self._request)
    File "/usr/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
      return self.template.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 209, in render
      return self._render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 201, in _render
      return self.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 903, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 576, in render
      return self.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 903, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 56, in render
      result = self.nodelist.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 903, in render
      bit = self.render_node(node, context)
    File "/usr/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
      return node.render(context)
    File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 217, in render
      nodelist.append(node.render(context))
    File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 322, in render
      match = condition.eval(context)
    File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 933, in eval
      return self.value.resolve(context, ignore_failures=True)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 647, in resolve
      obj = self.var.resolve(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 787, in resolve
      value = self._resolve_lookup(context)
    File "/usr/lib/python2.7/site-packages/django/template/base.py", line 847, in _resolve_lookup
      current = current()
    File "/home/mrunge/work/horizon/horizon/workflows/base.py", line 439, in has_required_fields
      return any(field.required for field in self.action.fields.values())
    File "/home/mrunge/work/horizon/horizon/workflows/base.py", line 368, in action
      context)
    File "/home/mrunge/work/horizon/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py", line 707, in __init__
      super(SetNetworkAction, self).__init__(request, *args, **kwargs)
    File "/home/mrunge/work/horizon/horizon/workflows/base.py", line 138, in __init__
      self._populate_choices(request, context)
    File "/home/mrunge/work/horizon/horizon/workflows/base.py", line 151, in _populate_choices
      bound_field.choices = meth(request, context)
    File "/home/mrunge/work/horizon/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py", line 721, in populate_network_choices
      return instance_utils.network_field_data(request)
    File "/home/mrunge/work/horizon/openstack_dashboard/dashboards/project/instances/utils.py", line 97, in network_field_data
      if not networks:
  UnboundLocalError: local variable 'networks' referenced before assignment

  
  Fun fact is, this only occurs, when using admin credentials. with user, this doesn't happen.

  The error message shown in horizon is: Error: Invalid service catalog
  service: network

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


Follow ups

References