yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #38709
[Bug 1497967] [NEW] linuxbridge agent fails when bridge_mapping not defined
Public bug reported:
Since
http://git.openstack.org/cgit/openstack/neutron/commit/?id=bd734811753a99d61e30998c734e465a8d507b8f
, bridge_mapping" needs to be set to something useful. If only
physical_interface_mappings in
/etc/neutron/plugins/ml2/linuxbridge_agent.ini is set, it leads to the
following error in the linuxbridge_agent.log :
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [req-0b3ce3b0-a7b9-4fd2-a724-0248def6e069 - - - - -] Error in agent loop. Devices info: {'current': set(['tap3f31ae40-6b']), 'removed': set([]), 'added': set(['tap3f31ae40-6b']), 'updated': set([])}
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Traceback (most recent call last):
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 1109, in daemon_loop
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent sync = self.process_network_devices(device_info)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 958, in process_network_devices
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent resync_a = self.treat_devices_added_updated(devices_added_updated)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 997, in treat_devices_added_updated
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent device_details['port_id']):
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 501, in add_interface
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent tap_device_name)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 479, in add_tap_interface
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent if bridge_lib.BridgeDevice(bridge_name).addif(tap_device_name):
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/bridge_lib.py", line 38, in addif
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent return self._brctl(['addif', self.name, interface])
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/bridge_lib.py", line 26, in _brctl
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent return ip_wrapper.netns.execute(cmd, run_as_root=True)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 816, in execute
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent extra_ok_codes=extra_ok_codes, **kwargs)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 160, in execute
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent raise RuntimeError(m)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent RuntimeError:
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'brctl', 'addif', 'None', 'tap3f31ae40-6b']
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Exit code: 1
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Stdin:
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Stdout:
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Stderr: bridge None does not exist!
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1497967
Title:
linuxbridge agent fails when bridge_mapping not defined
Status in neutron:
New
Bug description:
Since
http://git.openstack.org/cgit/openstack/neutron/commit/?id=bd734811753a99d61e30998c734e465a8d507b8f
, bridge_mapping" needs to be set to something useful. If only
physical_interface_mappings in
/etc/neutron/plugins/ml2/linuxbridge_agent.ini is set, it leads to the
following error in the linuxbridge_agent.log :
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [req-0b3ce3b0-a7b9-4fd2-a724-0248def6e069 - - - - -] Error in agent loop. Devices info: {'current': set(['tap3f31ae40-6b']), 'removed': set([]), 'added': set(['tap3f31ae40-6b']), 'updated': set([])}
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Traceback (most recent call last):
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 1109, in daemon_loop
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent sync = self.process_network_devices(device_info)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 958, in process_network_devices
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent resync_a = self.treat_devices_added_updated(devices_added_updated)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 997, in treat_devices_added_updated
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent device_details['port_id']):
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 501, in add_interface
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent tap_device_name)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 479, in add_tap_interface
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent if bridge_lib.BridgeDevice(bridge_name).addif(tap_device_name):
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/bridge_lib.py", line 38, in addif
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent return self._brctl(['addif', self.name, interface])
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/bridge_lib.py", line 26, in _brctl
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent return ip_wrapper.netns.execute(cmd, run_as_root=True)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 816, in execute
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent extra_ok_codes=extra_ok_codes, **kwargs)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 160, in execute
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent raise RuntimeError(m)
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent RuntimeError:
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'brctl', 'addif', 'None', 'tap3f31ae40-6b']
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Exit code: 1
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Stdin:
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Stdout:
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Stderr: bridge None does not exist!
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent
2015-09-21 09:32:58.191 26217 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1497967/+subscriptions