Linux bridge RTNETLINK exists

asked 2016-07-07 07:39:02 -0500

apdibbo gravatar image

updated 2016-07-11 03:11:35 -0500

EDIT: I have updated the behavior I am seeing

EDIT2: I have added the running command from the debug

Hi,

I am running Mitaka on Centos 7 and am getting the following error in the linuxbridge log on the network node

2016-07-11 08:54:54.062 29032 DEBUG neutron.agent.linux.utils [req-e5b5a87c-2a0b-4497-b151-0ae67ef27eda - - - - -] Running command (rootwrap daemon): ['ip', '-4', 'addr', 'add', '130.246.221 .144/21', 'scope', 'global', 'dev', 'brq24a664ef-e8', 'brd', '130.246.223.255'] execute_rootwrap_daemon /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:100 2016-07-11 08:54:54.066 29032 ERROR neutron.agent.linux.utils [req-e5b5a87c-2a0b-4497-b151-0ae67ef27eda - - - - -] Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: File existss

I am able to have VMs connected to the public and private networks however interfaces created on the network node never leave the BUILD state

Thanks

Alex

full log section below: 2016-07-07 13:25:00.269 24579 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-5674c1e9-b040-4972-9e21-3d4ecb7ef931 - - - - -] Port tap72287883-0a updated. Details: {u'profile': {}, u'network_qos_policy_id': None, u'qos_policy_id': None, u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'24a664ef-e877-4f78-a5e1-cab7e0d4fbb5', u'segmentation_id': No ne, u'device_owner': u'network:router_gateway', u'physical_network': u'public', u'mac_address': u'fa:ca:ad:aa:72:41', u'device': u'tap72287883-0a', u'port_security_enabled': False, u'port_id ': u'72287883-0ad4-458b-8602-c46cba5c0024', u'fixed_ips': [{u'subnet_id': u'2d9c9815-ee0d-40d1-84c4-3ee0108c4c54', u'ip_address': u'130.246.222.244'}], u'network_type': u'flat', u'security_g roups': []} 2016-07-07 13:25:00.274 24579 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.arp_protect [req-5674c1e9-b040-4972-9e21-3d4ecb7ef931 - - - - -] Skipping ARP spoofing rules for port 'tap722 87883-0a' because it has port security disabled 2016-07-07 13:25:00.294 24579 ERROR neutron.agent.linux.utils [req-5674c1e9-b040-4972-9e21-3d4ecb7ef931 - - - - -] Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: File exists 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent [req-5674c1e9-b040-4972-9e21-3d4ecb7ef931 - - - - -] Error in agent loop. Devices info: {'current': set(['tap72287883-0a', 'tape3d8b231-27', 'tap21af721c-b1', 'tape60c14e9-b3']), 'timestamps': {'tap72287883-0a': None, 'tape3d8b231-27': 1467623591.6060283, 'tape60c14e9-b3': 1467623591.6060283, 'tap21af721c-b1': 1467623591.6060283}, 'removed': set([]), 'added': set(['tap72287883-0a', 'tape3d8b231-27', 'tap21af721c-b1', 'tape60c14e9-b3']), 'updated': set([])} 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent Traceback (most recent call last): 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 419, in daemon_loop 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent sync = self.process_network_devices(device_info) 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 199, in process_network_devices 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent resync_a = self.treat_devices_added_updated(devices_added_updated) 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 235, in treat_devices_added_updated 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent device, device_details['device_owner']) 2016-07-07 13:25:00.299 24579 ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr ... (more)

edit retag flag offensive close merge delete

Comments

can you find a log message with "Running command" just before the error. You seem to be using a flat network, and the interface in the interface_mappings has an IP. I would always use unnumbered interfaces for these.

darragh-oreilly gravatar imagedarragh-oreilly ( 2016-07-07 13:39:36 -0500 )edit

@darragh-oreilly - I have edited my opening post as I had misspoken when I stated the behavior I am seeing. This error does indeed relate to a flat network for the external port of a router. When you say an unnumbered interface do you mean an interface without an IP? This isn't possible on my set up

apdibbo gravatar imageapdibbo ( 2016-07-08 02:38:27 -0500 )edit

yep - that's what I mean. Unfortunately the exception does not include the actual command that failed. Can you look up the log before the exception to find it. Should begin with "Running command"

darragh-oreilly gravatar imagedarragh-oreilly ( 2016-07-08 08:06:16 -0500 )edit

@darragh-oreilly - I cant see anything which begins with "Running command" in the Linuxbridge log

apdibbo gravatar imageapdibbo ( 2016-07-08 08:23:24 -0500 )edit

maybe you are not running at DEBUG level. Do you see any lines with DEBUG in them?

darragh-oreilly gravatar imagedarragh-oreilly ( 2016-07-08 09:03:32 -0500 )edit