openstack newton: linux bridge agent out of sync with plugin

asked 2019-07-08 13:13:07 -0500

abhi90 gravatar image

Hi I am deploying a openstack newton version on multi-node debain hosts. I used the openstack newton documentation for debian.

I am unable to spawn a instance, it fails with the below error message.

{u'message': u'Build of instance bbab2489-b4bc-4f7f-858c-f0faab4d04ca aborted: Failed to allocate the network(s), not rescheduling.', u'code': 500, u'details': u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1779, in _do_build_and_run_instance\n filter_properties)\n File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1960, in _build_and_run_instance\n reason=msg)\n', u'created': u'2019-07-08T15:35:55Z'} |

Looking at the neutron-linuxbridge agent log I see the below messages.

2019-07-08 17:48:59.164 185440 WARNING stevedore.named [req-4530fee6-478d-408b-a3ad-b9c9c0368dd5 - - - - -] Could not load neutron.agent.linux.iptables_firewall.IptablesFirewallDriver 2019-07-08 17:48:59.461 185440 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-4530fee6-478d-408b-a3ad-b9c9c0368dd5 - - - - -] RPC agent_id: lbe4434b16da6e 2019-07-08 17:48:59.474 185440 INFO neutron.agent.agent_extensions_manager [req-4530fee6-478d-408b-a3ad-b9c9c0368dd5 - - - - -] Loaded agent extensions: [] 2019-07-08 17:48:59.635 185440 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-4530fee6-478d-408b-a3ad-b9c9c0368dd5 - - - - -] Linux bridge agent Agent RPC Daemon Started! 2019-07-08 17:48:59.636 185440 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-4530fee6-478d-408b-a3ad-b9c9c0368dd5 - - - - -] Linux bridge agent Agent out of sync with plugin!

2019-07-08 18:01:39.194 185440 INFO neutron.agent.securitygroups_rpc [req-914f04be-402f-4145-a9d0-46f23246e7dd c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - - -] Security group member updated [u'd8dadc27-7773-40df-8f2c-ab5cbb4d7c21'] 2019-07-08 18:01:45.666 185440 INFO neutron.agent.securitygroups_rpc [req-4530fee6-478d-408b-a3ad-b9c9c0368dd5 - - - - -] Preparing filters for devices set(['tapa59e3e1e-b5']) 2019-07-08 18:01:50.119 185440 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-4530fee6-478d-408b-a3ad-b9c9c0368dd5 - - - - -] Port tapa59e3e1e-b5 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'913d068d-8489-4141-ba00-1aabb46f0c7e', u'segmentation_id': None, u'device_owner': u'compute:None', u'physical_network': u'provider', u'mac_address': u'fa:16:3e:49:4f:a8', u'device': u'tapa59e3e1e-b5', u'port_security_enabled': True, u'port_id': u'a59e3e1e-b5e5-4c87-9e4c-784c9455d51d', u'fixed_ips': [{u'subnet_id': u'601c8673-77d7-4281-8559-de6e134b595e', u'ip_address': u''}], u'network_type': u'flat', u'security_groups': [u'd8dadc27-7773-40df-8f2c-ab5cbb4d7c21']} 2019-07-08 18:01:53.011 185440 ERROR neutron.agent.linux.utils [req-4530fee6-478d-408b-a3ad-b9c9c0368dd5 - - - - -] Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: File exists

Any help appreciated!!

edit retag flag offensive close merge delete


Did you try ?

By the way, you should not deploy Newton. It’s past end of life.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-08 22:30:22 -0500 )edit

Thanks for the response @Bernd. The link is not helpful, I have conntrack installed on the hosts. The reason I am using newton is that debian9 repo installs newton version anything newer has to installed with backports. To avoid using backports I am installing the newton version for testing.

abhi90 gravatar imageabhi90 ( 2019-07-08 23:44:42 -0500 )edit

You won't get fixes for Newton, and it is hard to troubleshoot problems like yours. For example, I don't have easy access to the source code to understand the deeper meaning of the error.

Better use Ubuntu, Centos or OpenSUSE as operating system and install a more recent version of OpenStack on it.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-09 05:45:34 -0500 )edit

I am thinking that "agent out of sync" is normal when the agent starts. It synchronizes with the plugin, then all is fine. If you see this message repeatedly, there might be a problem.

However, "Could not load neutron.agent.linux.iptables_firewall.IptablesFirewallDriver" is more serious IMO.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-09 06:12:15 -0500 )edit

Does the driver exist? It should be ..../agent/linux/ in the Neutron source, on the compute node.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-09 06:15:45 -0500 )edit