Openstack newton with openvswitch, error in VM instantiation in compute node. (port binding error)

asked 2016-12-08 21:40:48 -0500

Karthik Balu gravatar image

updated 2016-12-15 01:33:12 -0500

Installed openstack with a controller node and compute node. Configured ml2 with openvswitch. Verified gre tunnel creation between controller and compute nodes.

During VM instantiation, we get a error "No valid host found.". Going through the logs in compute node, understanding the issue to be caused due to "Failed to bind port xxxx requested by agent xxxx on network xxx not bound".

what could be the cause of this issue? , could it be related to rabbitMQ configuration or could there be something wrong with the neutron configuration ?

NEUTRON-OPENVSWITCH AGENT LOGS 2016-12-09 09:21:57.272 816 ERROR oslo.messaging._drivers.impl_rabbit [req-6b2b7eda-fa80-4efb-b175-d1bdda09de42 - - - - -] [b3986806-b571-4217-a83f-e5cbe30d648c] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 32 seconds. Client port: None 2016-12-09 09:21:57.272 816 ERROR oslo.messaging._drivers.impl_rabbit [-] [69febb5d-2e7c-417a-90f4-10badb901562] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 32 seconds. Client port: None 2016-12-09 09:22:32.288 816 ERROR oslo.messaging._drivers.impl_rabbit [req-6b2b7eda-fa80-4efb-b175-d1bdda09de42 - - - - -] [b3986806-b571-4217-a83f-e5cbe30d648c] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 32 seconds. Client port: None 2016-12-09 09:22:32.292 816 ERROR oslo.messaging._drivers.impl_rabbit [-] [69febb5d-2e7c-417a-90f4-10badb901562] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 32 seconds. Client port: None 2016-12-09 09:23:07.316 816 ERROR oslo.messaging._drivers.impl_rabbit [req-6b2b7eda-fa80-4efb-b175-d1bdda09de42 - - - - -] [b3986806-b571-4217-a83f-e5cbe30d648c] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 32 seconds. Client port: None 2016-12-09 09:23:07.319 816 ERROR oslo.messaging._drivers.impl_rabbit [-] [69febb5d-2e7c-417a-90f4-10badb901562] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 32 seconds. Client port: None 2016-12-09 09:23:42.352 816 ERROR oslo.messaging._drivers.impl_rabbit [req-6b2b7eda-fa80-4efb-b175-d1bdda09de42 - - - - -] [b3986806-b571-4217-a83f-e5cbe30d648c] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 32 seconds. Client port: None 2016-12-09 09:23:42.359 816 ERROR oslo.messaging._drivers.impl_rabbit [-] [69febb5d-2e7c-417a-90f4-10badb901562] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 32 seconds. Client port: None

NOVA-COMPUTE LOGS 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager [req-823cfdf8-c4ff-424d-afd7-0103c7959e41 7a97a48c98514df4b87329ab06ec124f c3633716483b458399f7b5d83e56d3cf - - -] Instance failed network setup after 1 attempt(s) 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager Traceback (most recent call last): 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1397, in _allocate_network_async 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager bind_host_id=bind_host_id) 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 881, in allocate_for_instance 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager bind_host_id, dhcp_opts, available_macs) 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1000, in _update_ports_for_instance 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager vif.destroy() 2016-12-01 12:55:34.502 461 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/oslo_utils ...

(more)
edit retag flag offensive close merge delete

Comments

Most likely not RabbitMQ. Check neutron.conf /your OVS configuration and check/paste here OVS logs.

volenbovsky gravatar imagevolenbovsky ( 2016-12-10 08:36:54 -0500 )edit

Please share nova-compute logs and neutron server logs.

Praveen N gravatar imagePraveen N ( 2016-12-12 05:24:09 -0500 )edit

Most common issue for this kind of errors are configuration issue.. Please check you neutron and openvswitch conf files..

vathanlal gravatar imagevathanlal ( 2016-12-15 02:05:41 -0500 )edit

I aggree with others, your config is not correct, you can see the clear message: AMQP server on controller:5672 is unreachable

tze gravatar imagetze ( 2017-01-08 14:15:11 -0500 )edit