Re: [Openstack] [Pike][Neutron] ERROR neutron.plugins.ml2.drivers.agent._common_agent - AgentNotFoundByTypeHost

2018-03-07 Thread Eugen Block

Hi,

are all agents up and running? Can you paste the output of "openstack  
network agent list"?


And could you post the output of "egrep -ve "^$|^#"  
/etc/neutron/neutron.conf" from both compute and control node?  
Probably also from


/etc/neutron/l3_agent.ini
/etc/neutron/plugins/ml2/linuxbridge_agent.ini
/etc/neutron/plugins/ml2/ml2_conf.ini

Of course you can/should replace sensitive data in the output.

Regards

Zitat von Torin Woltjer :

My virtual machines do not get their IP addresses, the dashboard  
does show the address they should have, but when using the console  
to access the virtual machine, it shows that no address is assigned  
to its interface. What kind of misconfiguration could've occured?


The following two line repeat in /var/log/nova/nova-compute.log on  
the compute node:


2018-03-06 13:34:15.051 32084 WARNING nova.compute.manager  
[req-cc5ee519-111f-4b70-b77f-b6607c5e611e  
ffe5adfe1f7c40a5b5d0a8f89e65a452 358008d2e1a6428ab2abcf51b10d0a50 -  
default default] [instance: 7249d430-743e-4463-8d28-d13cdb8cfddc]  
Received unexpected event  
network-vif-plugged-87e7138e-9e29-4e67-a181-077b3f6ea09b for instance
2018-03-06 13:34:17.563 32084 WARNING nova.compute.manager  
[req-512ef7b6-0936-4dd6-a7e0-0044cee7e9cf  
ffe5adfe1f7c40a5b5d0a8f89e65a452 358008d2e1a6428ab2abcf51b10d0a50 -  
default default] [instance: 7249d430-743e-4463-8d28-d13cdb8cfddc]  
Received unexpected event  
network-vif-unplugged-87e7138e-9e29-4e67-a181-077b3f6ea09b for  
instance


These errors repeat in /var/log/neutron/neutron-linuxbridge-agent.log

2018-03-06 13:38:49.403 1978 INFO neutron.agent.securitygroups_rpc  
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Preparing  
filters for devices set(['tap87e7138e-9e'])
2018-03-06 13:38:52.286 1978 INFO neutron.agent.securitygroups_rpc  
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Security group  
member updated [u'04a877fe-f6bc-445c-9e03-204a0cae9d32']
2018-03-06 13:38:52.289 1978 INFO  
neutron.plugins.ml2.drivers.agent._common_agent  
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Port  
tap87e7138e-9e 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'a06ac367-fe14-4bcd-96f3-8c8081a874ad',  
u'segmentation_id': None, u'mtu': 1500, u'device_owner':  
u'compute:nova', u'physical_network': u'provider', u'mac_address':  
u'fa:16:3e:23:49:97', u'device': u'tap87e7138e-9e',  
u'port_security_enabled': True, u'port_id':  
u'87e7138e-9e29-4e67-a181-077b3f6ea09b', u'fixed_ips':  
[{u'subnet_id': u'4dc26826-49f3-4cb9-8490-e4cc5e82853d',  
u'ip_address': u'216.109.195.245'}], u'network_type': u'flat'}
2018-03-06 13:38:55.392 1978 INFO neutron.agent.securitygroups_rpc  
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Security group  
member updated [u'04a877fe-f6bc-445c-9e03-204a0cae9d32']
2018-03-06 13:38:55.810 1978 INFO neutron.agent.securitygroups_rpc  
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Remove device  
filter for set(['tap87e7138e-9e'])
2018-03-06 13:38:57.468 1978 INFO  
neutron.plugins.ml2.drivers.agent._common_agent  
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Attachment  
tap87e7138e-9e removed
2018-03-06 13:38:57.909 1978 INFO neutron.agent.securitygroups_rpc  
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Security group  
member updated [u'04a877fe-f6bc-445c-9e03-204a0cae9d32']
2018-03-06 13:38:58.199 1978 ERROR  
neutron.plugins.ml2.drivers.agent._common_agent  
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Error occurred  
while removing port tap87e7138e-9e: RemoteError: Remote error:  
AgentNotFoundByTypeHost Agent with agent_type=L3 agent and  
host=UBNTU-OSTACK-COMPUTE1 could not be found
[u'Traceback (most recent call last):\n', u'  File  
"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py",  
line 160, in _process_incoming\nres =  
self.dispatcher.dispatch(message)\n', u'  File  
"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py",  
line 213, in dispatch\nreturn self._do_dispatch(endpoint,  
method, ctxt, args)\n', u'  File  
"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py",  
line 183, in _do_dispatch\nresult = func(ctxt, **new_args)\n',  
u'  File  
"/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py", line  
234, in update_device_down\nn_const.PORT_STATUS_DOWN, host)\n',  
u'  File  
"/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py", line  
331, in notify_l2pop_port_wiring\n 
l2pop_driver.obj.update_port_down(port_context)\n', u'  File  
"/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/l2pop/mech_driver.py", line 253, in update_port_down\nadmin_context, agent_host, [port[\'device_id\']]):\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/l3_agentschedulers_db.py", line 303, in list_router_ids_on_host\ncontext, 

[Openstack] [Pike][Neutron] ERROR neutron.plugins.ml2.drivers.agent._common_agent - AgentNotFoundByTypeHost

2018-03-06 Thread Torin Woltjer
My virtual machines do not get their IP addresses, the dashboard does show the 
address they should have, but when using the console to access the virtual 
machine, it shows that no address is assigned to its interface. What kind of 
misconfiguration could've occured?

The following two line repeat in /var/log/nova/nova-compute.log on the compute 
node:

2018-03-06 13:34:15.051 32084 WARNING nova.compute.manager 
[req-cc5ee519-111f-4b70-b77f-b6607c5e611e ffe5adfe1f7c40a5b5d0a8f89e65a452 
358008d2e1a6428ab2abcf51b10d0a50 - default default] [instance: 
7249d430-743e-4463-8d28-d13cdb8cfddc] Received unexpected event 
network-vif-plugged-87e7138e-9e29-4e67-a181-077b3f6ea09b for instance
2018-03-06 13:34:17.563 32084 WARNING nova.compute.manager 
[req-512ef7b6-0936-4dd6-a7e0-0044cee7e9cf ffe5adfe1f7c40a5b5d0a8f89e65a452 
358008d2e1a6428ab2abcf51b10d0a50 - default default] [instance: 
7249d430-743e-4463-8d28-d13cdb8cfddc] Received unexpected event 
network-vif-unplugged-87e7138e-9e29-4e67-a181-077b3f6ea09b for instance

These errors repeat in /var/log/neutron/neutron-linuxbridge-agent.log

2018-03-06 13:38:49.403 1978 INFO neutron.agent.securitygroups_rpc 
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Preparing filters for 
devices set(['tap87e7138e-9e'])
2018-03-06 13:38:52.286 1978 INFO neutron.agent.securitygroups_rpc 
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Security group member 
updated [u'04a877fe-f6bc-445c-9e03-204a0cae9d32']
2018-03-06 13:38:52.289 1978 INFO 
neutron.plugins.ml2.drivers.agent._common_agent 
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Port tap87e7138e-9e 
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'a06ac367-fe14-4bcd-96f3-8c8081a874ad', u'segmentation_id': 
None, u'mtu': 1500, u'device_owner': u'compute:nova', u'physical_network': 
u'provider', u'mac_address': u'fa:16:3e:23:49:97', u'device': 
u'tap87e7138e-9e', u'port_security_enabled': True, u'port_id': 
u'87e7138e-9e29-4e67-a181-077b3f6ea09b', u'fixed_ips': [{u'subnet_id': 
u'4dc26826-49f3-4cb9-8490-e4cc5e82853d', u'ip_address': u'216.109.195.245'}], 
u'network_type': u'flat'}
2018-03-06 13:38:55.392 1978 INFO neutron.agent.securitygroups_rpc 
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Security group member 
updated [u'04a877fe-f6bc-445c-9e03-204a0cae9d32']
2018-03-06 13:38:55.810 1978 INFO neutron.agent.securitygroups_rpc 
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Remove device filter for 
set(['tap87e7138e-9e'])
2018-03-06 13:38:57.468 1978 INFO 
neutron.plugins.ml2.drivers.agent._common_agent 
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Attachment tap87e7138e-9e 
removed
2018-03-06 13:38:57.909 1978 INFO neutron.agent.securitygroups_rpc 
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Security group member 
updated [u'04a877fe-f6bc-445c-9e03-204a0cae9d32']
2018-03-06 13:38:58.199 1978 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent 
[req-262cb010-9068-4ad9-b93d-bd0875fc66e1 - - - - -] Error occurred while 
removing port tap87e7138e-9e: RemoteError: Remote error: 
AgentNotFoundByTypeHost Agent with agent_type=L3 agent and 
host=UBNTU-OSTACK-COMPUTE1 could not be found
[u'Traceback (most recent call last):\n', u'  File 
"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 160, in 
_process_incoming\nres = self.dispatcher.dispatch(message)\n', u'  File 
"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 213, 
in dispatch\nreturn self._do_dispatch(endpoint, method, ctxt, args)\n', u'  
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 
183, in _do_dispatch\nresult = func(ctxt, **new_args)\n', u'  File 
"/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py", line 234, in 
update_device_down\nn_const.PORT_STATUS_DOWN, host)\n', u'  File 
"/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py", line 331, in 
notify_l2pop_port_wiring\n
l2pop_driver.obj.update_port_down(port_context)\n', u'  File 
"/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/l2pop/mech_driver.py",
 line 253, in update_port_down\nadmin_context, agent_host, 
[port[\'device_id\']]):\n', u'  File 
"/usr/lib/python2.7/dist-packages/neutron/db/l3_agentschedulers_db.py", line 
303, in list_router_ids_on_host\ncontext, constants.AGENT_TYPE_L3, 
host)\n', u'  File "/usr/lib/python2.7/dist-packages/neutron/db/agents_db.py", 
line 291, in _get_agent_by_type_and_host\nhost=host)\n', 
u'AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and 
host=UBNTU-OSTACK-COMPUTE1 could not be found\n'].
2018-03-06 13:38:58.199 1978 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent Traceback (most recent call 
last):
2018-03-06 13:38:58.199 1978 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File