← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1246258] Re: UnboundLocalError: local variable 'network_name' referenced before assignment

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1246258

Title:
  UnboundLocalError: local variable 'network_name' referenced before
  assignment

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) havana series:
  Fix Released

Bug description:
  The exception occurs when trying to create/delete an instance that is
  using a network that is not owned by the admin tenant. This prevents
  the deletion of the instance.

  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 90, in wrapped
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     payload)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 73, in wrapped
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 243, in decorated_function
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     pass
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 229, in decorated_function
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 294, in decorated_function
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     function(self, context, *args, **kwargs)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 271, in decorated_function
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     e, sys.exc_info())
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 258, in decorated_function
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1616, in run_instance
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     do_run_instance()
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 246, in inner
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     return f(*args, **kwargs)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1615, in do_run_instance
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     legacy_bdm_in_spec)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 965, in _run_instance
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     notify("error", msg=unicode(e))  # notify that build failed
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 949, in _run_instance
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     instance, image_meta, legacy_bdm_in_spec)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1078, in _build_instance
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     filter_properties, bdms, legacy_bdm_in_spec)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1122, in _reschedule_or_error
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     self._log_original_error(exc_info, instance_uuid)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1117, in _reschedule_or_error
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     bdms, requested_networks)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1642, in _shutdown_instance
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     network_info = self._get_instance_nw_info(context, instance)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 879, in _get_instance_nw_info
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     instance)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 455, in get_instance_nw_info
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     result = self._get_instance_nw_info(context, instance, networks)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 463, in _get_instance_nw_info
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     nw_info = self._build_network_info_model(context, instance, networks)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1009, in _build_network_info_model
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     subnets)
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 962, in _nw_info_build_network
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp     label=network_name,
  2013-10-29 00:51:36.173 18588 TRACE nova.openstack.common.rpc.amqp UnboundLocalError: local variable 'network_name' referenced before assignment

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