Public bug reported:

When database exception raises in update_port_status, the linuxbridge-
agent doesn't deal with them very well that causes accessing not-existed
local variables.

2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent Traceback (most 
recent call last):
2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent   File 
"/usr/lib/python2.6/site-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 997, in daemon_loop
2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent     sync = 
self.process_network_devices(device_info)
2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent   File 
"/usr/lib/python2.6/site-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 894, in process_network_devices
2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent     resync_b = 
self.treat_devices_removed(device_info['removed'])
2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent   File 
"/usr/lib/python2.6/site-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 963, in treat_devices_removed
2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent     if 
details['exists']:
2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent UnboundLocalError: 
local variable 'details' referenced before assignment
2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent
2014-04-22 20:35:53.437 494 DEBUG 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent 
[req-ffc712fc-80af-4837-a068-6e1a076e4ebc None] Loop iteration exceeded 
interval (2 vs. 51.2715768814)! daemon_loop 
/usr/lib/python2.6/site-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py:1011
2014-04-22 20:35:53.438 494 INFO 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent 
[req-ffc712fc-80af-4837-a068-6e1a076e4ebc None] Agent out of sync with plugin!

** Affects: neutron
     Importance: Undecided
     Assignee: Li Ma (nick-ma-z)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Li Ma (nick-ma-z)

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

Title:
  database exception causes UnboundLocalError in linuxbridge-agent

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  When database exception raises in update_port_status, the linuxbridge-
  agent doesn't deal with them very well that causes accessing not-
  existed local variables.

  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent Traceback (most 
recent call last):
  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent   File 
"/usr/lib/python2.6/site-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 997, in daemon_loop
  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent     sync = 
self.process_network_devices(device_info)
  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent   File 
"/usr/lib/python2.6/site-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 894, in process_network_devices
  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent     resync_b = 
self.treat_devices_removed(device_info['removed'])
  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent   File 
"/usr/lib/python2.6/site-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 963, in treat_devices_removed
  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent     if 
details['exists']:
  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent UnboundLocalError: 
local variable 'details' referenced before assignment
  2014-04-22 20:35:53.436 494 TRACE 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent
  2014-04-22 20:35:53.437 494 DEBUG 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent 
[req-ffc712fc-80af-4837-a068-6e1a076e4ebc None] Loop iteration exceeded 
interval (2 vs. 51.2715768814)! daemon_loop 
/usr/lib/python2.6/site-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py:1011
  2014-04-22 20:35:53.438 494 INFO 
neutron.plugins.linuxbridge.agent.linuxbridge_neutron_agent 
[req-ffc712fc-80af-4837-a068-6e1a076e4ebc None] Agent out of sync with plugin!

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to