← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1527948] [NEW] neutron-openvswitch-agent.service crashes.

 

Public bug reported:

When neutron-openvswitch-agent.service is started and used (to create
port, etc), the following exception is reported in neutron log:

2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-92d42554-0bdc-4e30-95f4-c4440f8949c0 7e8b0da7db8693dc69bf0efff659d25e7a966147017a57826be56ffef6532a2a 79b6267f92564731a614d2a984207732 - - -] Error while processing VIF ports
2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent Traceback (most recent call last):
2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1794, in rpc_loop
2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self._dispose_local_vlan_hints()
2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 363, in _dispose_local_vlan_hints
2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self.available_local_vlans.update(self._local_vlan_hints.values())
2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent AttributeError: 'PowerKVMNeutronAgent' object has no attribute '_local_vlan_hints'
2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent

This is due to the fact that rpc_loop is executed before init is completed. 
_local_vlan_hints is initialized by _restore_local_vlan_map() via init However, _dispose_local_vlan_hints() is invoked via rpc_loop before init is completed.

** Affects: neutron
     Importance: Undecided
     Assignee: Sridhar Venkat (svenkat)
         Status: In Progress

** Changed in: neutron
     Assignee: (unassigned) => Sridhar Venkat (svenkat)

** Changed in: neutron
       Status: New => In Progress

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

Title:
  neutron-openvswitch-agent.service crashes.

Status in neutron:
  In Progress

Bug description:
  When neutron-openvswitch-agent.service is started and used (to create
  port, etc), the following exception is reported in neutron log:

  2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-92d42554-0bdc-4e30-95f4-c4440f8949c0 7e8b0da7db8693dc69bf0efff659d25e7a966147017a57826be56ffef6532a2a 79b6267f92564731a614d2a984207732 - - -] Error while processing VIF ports
  2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent Traceback (most recent call last):
  2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1794, in rpc_loop
  2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self._dispose_local_vlan_hints()
  2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 363, in _dispose_local_vlan_hints
  2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self.available_local_vlans.update(self._local_vlan_hints.values())
  2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent AttributeError: 'PowerKVMNeutronAgent' object has no attribute '_local_vlan_hints'
  2015-12-18 15:24:55.556 49066 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent

  This is due to the fact that rpc_loop is executed before init is completed. 
  _local_vlan_hints is initialized by _restore_local_vlan_map() via init However, _dispose_local_vlan_hints() is invoked via rpc_loop before init is completed.

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


Follow ups