local variable 'physical_network' referenced before assignment

Bug #1308421 reported by Ondergetekende
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Unassigned

Bug Description

In my case, triggered by running neutron-usage-audit. Fix underway.

Traceback (most recent call last):
  File "~/bin/neutron-usage-audit", line 10, in <module>
    sys.exit(main())
  File "~/neutron/cmd/usage_audit.py", line 37, in main
    plugin = manager.NeutronManager.get_plugin()
  File "~/neutron/manager.py", line 211, in get_plugin
    return cls.get_instance().plugin
  File "~/neutron/manager.py", line 206, in get_instance
    cls._create_instance()
  File "~/neutron/openstack/common/lockutils.py", line 249, in inner
    return f(*args, **kwargs)
  File "~/neutron/manager.py", line 200, in _create_instance
    cls._instance = cls()
  File "~/neutron/manager.py", line 112, in __init__
    plugin_provider)
  File "~/neutron/manager.py", line 140, in _get_plugin_instance
    return plugin_class()
  File "~/neutron/plugins/linuxbridge/lb_neutron_plugin.py", line 263, in __init__
    db.sync_network_states(self.network_vlan_ranges)
  File "~/neutron/plugins/linuxbridge/db/l2network_db_v2.py", line 87, in sync_network_states
    'physical_network': physical_network})
UnboundLocalError: local variable 'physical_network' referenced before assignment

Tags: lb
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

linux bridge plugin has been marked for deprecation.
It's functionality is superseeded by ml2 plugin

Changed in neutron:
status: New → Confirmed
importance: Undecided → Low
tags: added: lb
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/87880
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=30e5dae520535fbd759f4c12e184970afef854de
Submitter: Jenkins
Branch: master

commit 30e5dae520535fbd759f4c12e184970afef854de
Author: Koert van der Veer <email address hidden>
Date: Wed Apr 16 10:57:16 2014 +0200

    Fix uninitialized variable reference

    This was probably a copy&paste error. While physical_network is used in
    earlier loops, it isn't defined here. The identically named member variable was
    probably intended.

    Change-Id: I09e38321cf8670c62f4fdf9d99da1df737b2fc68
    Closes-Bug: #1308421

Changed in neutron:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → juno-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Ionut Artarisi (<email address hidden>) on branch: master
Review: https://review.openstack.org/66567

Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.