← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1464290] Re: UnboundLocalError in neutron/db/l3_db.py (Icehouse)

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1464290

Title:
  UnboundLocalError in neutron/db/l3_db.py (Icehouse)

Status in neutron:
  Expired

Bug description:
  Hi,

  working on my SaltStack-modules (outdated versions [0] and [1]) for
  managing subnets in Icehouse-Neutron I managed to cause this error in
  the neutron-server on Ubuntu trusty:

  2015-06-11 16:49:33.636 10605 DEBUG neutron.openstack.common.rpc.amqp [req-f47d6292-09bb-4f03-999b-cd1458c3828b None] UNIQUE_ID is 5fada601c2ca49c5a777f690b0426a45. _add_unique_id /usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py:342
  2015-06-11 16:49:33.641 10605 ERROR neutron.api.v2.resource [req-f47d6292-09bb-4f03-999b-cd1458c3828b None] add_router_interface failed
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource Traceback (most recent call last):
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 87, in resource
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource     result = method(request=request, **args)
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 200, in _handle_action
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource     return getattr(self._plugin, name)(*arg_list, **kwargs)
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_db.py", line 362, in add_router_interface
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource     'tenant_id': subnet['tenant_id'],
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource UnboundLocalError: local variable 'subnet' referenced before assignment
  2015-06-11 16:49:33.641 10605 TRACE neutron.api.v2.resource 
  2015-06-11 16:49:33.650 10605 INFO neutron.wsgi [req-f47d6292-09bb-4f03-999b-cd1458c3828b None] 192.168.122.85 - - [11/Jun/2015 16:49:33] "PUT /v2.0/routers/8afd9ee7-dd37-47f3-b2e1-42805e984a61/add_router_interface.json HTTP/1.1" 500 296 0.065534

  Installed neutron-packages:

  root@controller:~# dpkg -l neutron\* | grep ^ii
  ii  neutron-common                      1:2014.1.4-0ubuntu2                   all          Neutron is a virtual network service for Openstack - common
  ii  neutron-dhcp-agent                  1:2014.1.4-0ubuntu2                   all          Neutron is a virtual network service for Openstack - DHCP agent
  ii  neutron-l3-agent                    1:2014.1.4-0ubuntu2                   all          Neutron is a virtual network service for Openstack - l3 agent
  ii  neutron-metadata-agent              1:2014.1.4-0ubuntu2                   all          Neutron is a virtual network service for Openstack - metadata agent
  ii  neutron-plugin-ml2                  1:2014.1.4-0ubuntu2                   all          Neutron is a virtual network service for Openstack - ML2 plugin
  ii  neutron-plugin-openvswitch-agent    1:2014.1.4-0ubuntu2                   all          Neutron is a virtual network service for Openstack - Open vSwitch plug
  in agent                                                                                                                                                         ii  neutron-server                      1:2014.1.4-0ubuntu2                   all          Neutron is a virtual network service for Openstack - server

  More details tomorrow, when I've added some more debugging to my code.

  Regards, Florian

  [0] https://github.com/fraunhoferfokus/openstack-formula/blob/master/_modules/neutron.py
  [1] https://github.com/fraunhoferfokus/openstack-formula/blob/master/_states/neutron_subnet.py

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


References