Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ERROR on compute node with linuxbridge:AgentNotFoundByTypeHost

With completely follow the offical minimal deployment docs for pike release,now I can fluently run every kind of virtual machine on openstack perfectly(self network or provider network,access to Internet ALL good),except one day when I log into compute node,and found the linuxbridge.log seems too big(over 300mb everyday),quickly I use grep to filter out most INFO information and got so many ERROR log like this(also the only one type of error happens every fix period):

2017-12-13 17:23:16.030 1334 INFO neutron.agent.securitygroups_rpc [req-7fbf230a -bf45-4817-a7e8-447005e1700a - - - - -] Security group member updated [u'626f761 f-7451-42cf-afbf-724da51190c0'] 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt [req-7fbf230a-bf45-4817-a7e8-447005e1700a - - - - -] Error occurred while rem oving port tapa97e89f4-2d: RemoteError: Remote error: AgentNotFoundByTypeHost Ag ent with agent_type=L3 agent and host=compute1 could not be found [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-pack ages/oslo_messaging/rpc/server.py", line 160, in _process_incoming\n res = se lf.dispatcher.dispatch(message)\n', u' File "/usr/lib/python2.7/site-packages/o slo_messaging/rpc/dispatcher.py", line 213, in dispatch\n return self._do_dis patch(endpoint, method, ctxt, args)\n', u' File "/usr/lib/python2.7/site-packag es/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch\n result = fu nc(ctxt, *new_args)\n', u' File "/usr/lib/python2.7/site-packages/neutron/plug ins/ml2/rpc.py", line 234, in update_device_down\n n_const.PORT_STATUS_DOWN, host)\n', u' File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/rpc.py" , line 331, in notify_l2pop_port_wiring\n l2pop_driver.obj.update_port_down(p ort_context)\n', u' File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/ drivers/l2pop/mech_driver.py", line 253, in update_port_down\n admin_context, agent_host, [port[\'device_id\']]):\n', u' File "/usr/lib/python2.7/site-packa ges/neutron/db/l3_agentschedulers_db.py", line 303, in list_router_ids_on_host\n context, constants.AGENT_TYPE_L3, host)\n', u' File "/usr/lib/python2.7/sit e-packages/neutron/db/agents_db.py", line 291, in _get_agent_by_type_and_host\n host=host)\n', u'AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and host=compute1 could not be found\n']. 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt Traceback (most recent call last): 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_c ommon_agent.py", line 336, in treat_devices_removed 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt cfg.CONF.host) 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt File "/usr/lib/python2.7/site-packages/neutron/agent/rpc.py", line 139, in update_device_down 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt agent_id=agent_id, host=host) 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt File "/usr/lib/python2.7/site-packages/neutron/common/rpc.py", line 162, in call 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt return self._original_context.call(ctxt, method, *kwargs) 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt retry=self.retry) 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 1 23, in _send 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt timeout=timeout, retry=retry) 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.p y", line 578, in send 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt retry=retry) 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.p y", line 569, in _send 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt raise result 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt RemoteError: Remote error: AgentNotFoundByTypeHost Agent with agent_type=L3 a gent and host=compute1 could not be found 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-p ackages/oslo_messaging/rpc/server.py", line 160, in _process_incoming\n res = self.dispatcher.dispatch(message)\n', u' File "/usr/lib/python2.7/site-package s/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch\n return self._do_ dispatch(endpoint, method, ctxt, args)\n', u' File "/usr/lib/python2.7/site-pac kages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch\n result = func(ctxt, **new_args)\n', u' File "/usr/lib/python2.7/site-packages/neutron/p lugins/ml2/rpc.py", line 234, in update_device_down\n n_const.PORT_STATUS_DOW N, host)\n', u' File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/rpc. py", line 331, in notify_l2pop_port_wiring\n l2pop_driver.obj.update_port_dow n(port_context)\n', u' File "/usr/lib/python2.7/site-packages/neutron/plugins/m l2/drivers/l2pop/mech_driver.py", line 253, in update_port_down\n admin_conte xt, agent_host, [port[\'device_id\']]):\n', u' File "/usr/lib/python2.7/site-pa ckages/neutron/db/l3_agentschedulers_db.py", line 303, in list_router_ids_on_hos t\n context, constants.AGENT_TYPE_L3, host)\n', u' File "/usr/lib/python2.7/ site-packages/neutron/db/agents_db.py", line 291, in _get_agent_by_type_and_host \n host=host)\n', u'AgentNotFoundByTypeHost: Agent with agent_type=L3 agent a nd host=compute1 could not be found\n']. 2017-12-13 17:23:16.172 1334 ERROR neutron.plugins.ml2.drivers.agent._common_age nt 2017-12-13 17:23:16.174 1334 INFO neutron.plugins.ml2.drivers.agent._common_agen t [req-7fbf230a-bf45-4817-a7e8-447005e1700a - - - - -] Attachment tap8d780fbe-84 removed 2017-12-13 17:23:16.218 1334 INFO neutron.plugins.ml2.drivers.agent._common_agen t [req-7fbf230a-bf45-4817-a7e8-447005e1700a - - - - -] Port tap8d780fbe-84 updat ed. 2017-12-13 17:23:16.218 1334 INFO neutron.plugins.ml2.drivers.agent._common_agen t [req-7fbf230a-bf45-4817-a7e8-447005e1700a - - - - -] Attachment tap3ca9698e-61 removed

Here we see

"AgentNotFoundByTypeHost: Agent with agent_type=L3 agent a nd host=compute1 could not be found\n"

So I come back to the compute node neutron configration section to check if there was setup l3 agent on compute node I was missing,But checked and found there never mentions that we need to install l3 agent on compute node.

I googled these keywords and found only a little posts about this problem,and most posts was about dhcp agent cannot found or old release of openstack,so Is there a bug on neutron what should I do to avoid this,should I install l3 agent on compute node or just ignore this error info since all VMs runns as usual?

My deploy enviroment :

And here are My basic network info:

Both the controller and compute1 node was Centos7x64 up to date and yum enable centos-release-openstack-pike

controller: eth0 10.88.1.2 Gateway 10.88.1.1 Management network eth1 10.99.1.2 Gateway 10.99.1.1 Provider compute1: eth3 10.88.1.10 Gateway 10.88.1.1 Management network eth2 10.99.1.10 Gateway 10.99.1.1 Provider And Here are all the configuration file on Controller Node and Compute Node:

#

<controller node="">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

/etc/neutron/neutron.conf:

[root@controller neutron]# cat neutron.conf | egrep -v "^$|^#" [DEFAULT] core_plugin = ml2 service_plugins = router allow_overlapping_ips = true transport_url = rabbit://openstack:openstack@controller auth_strategy = keystone notify_nova_on_port_status_changes = true notify_nova_on_port_data_changes = true [agent] [cors] [database] connection = mysql+pymysql://neutron:neutron@controller/neutron [keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = neutron password = neutron [matchmaker_redis] [nova] auth_url = http://controller:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = nova password = nova [oslo_concurrency] lock_path = /var/lib/neutron/tmp [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] [quotas] [ssl] [root@controller neutron]#


/etc/neutron/l3_agent.ini:

[root@controller neutron]# cat l3_agent.ini | egrep -v "^$|^#" [DEFAULT] interface_driver = linuxbridge [agent] [ovs]

[root@controller neutron]#

/etc/neutron/metadata_agent.ini:

[root@controller neutron]# cat metadata_agent.ini | egrep -v "^$|^#" [DEFAULT] nova_metadata_host = controller metadata_proxy_shared_secret = metadata [agent] [cache]

[root@controller neutron]#

/etc/neutron/dhcp_agent.ini:

[root@controller neutron]# cat dhcp_agent.ini | egrep -v "^$|^#" [DEFAULT] interface_driver = linuxbridge dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq enable_isolated_metadata = true [agent] [ovs]

[root@controller neutron]#

/etc/neutron/plugins/ml2/linuxbridge_agent.ini:

[root@controller ml2]# cat linuxbridge_agent.ini |egrep -v "^$|^#" [DEFAULT] [agent] [linux_bridge] physical_interface_mappings = provider:eth1 [securitygroup] enable_security_group = true firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver [vxlan] enable_vxlan = true local_ip = 10.88.1.2 l2_population = true [root@controller ml2]#


/etc/neutron/plugins/ml2/ml2_conf.ini:

[root@controller ml2]# cat ml2_conf.ini |egrep -v "^$|^#" [DEFAULT] [l2pop] [ml2] type_drivers = flat,vlan,vxlan tenant_network_types = vxlan mechanism_drivers = linuxbridge,l2population extension_drivers = port_security [ml2_type_flat] flat_networks = provider [ml2_type_geneve] [ml2_type_gre] [ml2_type_vlan] [ml2_type_vxlan] vni_ranges = 1:1000 [securitygroup] enable_ipset = true [root@controller ml2]#


/etc/neutron/plugins/ml2/sriov_agent.ini:

[root@controller ml2]# cat sriov_agent.ini |egrep -v "^$|^#" [DEFAULT] [agent] [sriov_nic] [root@controller ml2]#

<compute node="">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

/etc/neutron/neutron/

[root@compute1 neutron]# cat neutron.conf | egrep -v "^#|^$" [DEFAULT] transport_url = rabbit://openstack:openstack@controller auth_strategy = keystone [agent] [cors] [database] [keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = neutron password = neutron [matchmaker_redis] [nova] [oslo_concurrency] lock_path = /var/lib/neutron/tmp [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] [quotas] [ssl] [root@compute1 neutron]#


/etc/neutron/plugins/ml2/linuxbridge_agent.ini:

[root@compute1 ml2]# cat linuxbridge_agent.ini | egrep -v "^#|^$" [DEFAULT] [agent] [linux_bridge] physical_interface_mappings = provider:eth2 [securitygroup] enable_security_group = true firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver [vxlan] enable_vxlan = true local_ip = 10.88.1.10 l2_population = true [root@compute1 ml2]#