NovaException: Unexpected vif_type=binding_failed

asked 2016-01-29 04:18:14 -0500

Daniel Ruiz gravatar image

updated 2016-01-29 06:24:18 -0500

Hello,

I'm getting error "NovaException: Unexpected vif_type=binding_failed" when I launch an instance with just external network or with external and internal (tenant) network (if instance has only internal (tenant) network, it runs OK.

How can I find my problem?

Thanks. /var/log/nova/nova-conductor.log (in controller+network node):

2016-01-29 12:56:59.453 1732 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on CONTROLLER_IP:5672
    2016-01-29 12:57:30.583 1733 INFO oslo.messaging._drivers.impl_rabbit [req-033ec793-e8c6-4783-bbde-920552217e40 ] Connecting to AMQP server on CONTROLLER_IP:5672
    2016-01-29 12:57:30.606 1733 INFO oslo.messaging._drivers.impl_rabbit [req-033ec793-e8c6-4783-bbde-920552217e40 ] Connected to AMQP server on CONTROLLER_IP:5672
    2016-01-29 12:57:48.801 1733 ERROR nova.scheduler.utils [req-033ec793-e8c6-4783-bbde-920552217e40 None] [instance: 96113058-afdf-4d14-a746-b71ddfb45802] Error from last host: compute2 (node compute2): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 96113058-afdf-4d14-a746-b71ddfb45802 was re-scheduled: Unexpected vif_type=binding_failed\n']
    2016-01-29 12:57:48.868 1733 WARNING nova.scheduler.driver [req-033ec793-e8c6-4783-bbde-920552217e40 None] [instance: 96113058-afdf-4d14-a746-b71ddfb45802] NoValidHost exception with message: 'No valid host was found.'
    2016-01-29 12:57:48.868 1733 WARNING nova.scheduler.driver [req-033ec793-e8c6-4783-bbde-920552217e40 None] [instance: 96113058-afdf-4d14-a746-b71ddfb45802] Setting instance to ERROR state.
    2016-01-29 12:59:18.895 1732 INFO oslo.messaging._drivers.impl_rabbit [req-22d6a697-ee03-4fed-9796-7a81ca4b3f07 ] Connecting to AMQP server on CONTROLLER_IP:5672
    2016-01-29 12:59:18.921 1732 INFO oslo.messaging._drivers.impl_rabbit [req-22d6a697-ee03-4fed-9796-7a81ca4b3f07 ] Connected to AMQP server on CONTROLLER_IP:5672
    2016-01-29 12:59:26.897 1733 ERROR nova.scheduler.utils [req-22d6a697-ee03-4fed-9796-7a81ca4b3f07 None] [instance: 2fabe1af-19c9-43ab-a0c7-c40b5d5a08c6] Error from last host: compute2 (node compute2): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 2fabe1af-19c9-43ab-a0c7-c40b5d5a08c6 was re-scheduled: Unexpected vif_type=binding_failed\n']
    2016-01-29 12:59:26.962 1733 WARNING nova.scheduler.driver [req-22d6a697-ee03-4fed-9796-7a81ca4b3f07 None] [instance: 2fabe1af-19c9-43ab-a0c7-c40b5d5a08c6] NoValidHost exception with message: 'No valid host was found.'
    2016-01-29 12:59:26.964 1733 WARNING nova.scheduler.driver [req-22d6a697-ee03-4fed-9796-7a81ca4b3f07 None] [instance: 2fabe1af-19c9-43ab-a0c7-c40b5d5a08c6] Setting instance to ERROR state.

/var/log/nova/nova-compute.log (in compute node):

2016-01-29 12:59:25.911 982 WARNING nova.virt.disk.vfs.guestfs [-] Failed to close augeas aug_close: do_aug_close: you must call 'aug-init' first to initialize Augeas 2016-01-29 12:59:26.043 982 ERROR nova.compute.manager [-] [instance: 2fabe1af-19c9-43ab-a0c7-c40b5d5a08c6] Instance failed to spawn 2016-01-29 12:59:26.043 982 TRACE nova.compute.manager [instance: 2fabe1af-19c9-43ab-a0c7-c40b5d5a08c6] Traceback (most recent call last): 2016-01-29 12:59:26.043 982 TRACE nova.compute.manager [instance: 2fabe1af-19c9-43ab-a0c7-c40b5d5a08c6]  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2246, in _build_resources 2016-01-29 12:59:26.043 982 TRACE nova.compute.manager [instance: 2fabe1af-19c9-43ab-a0c7-c40b5d5a08c6]  yield resources ...
(more)
edit retag flag offensive close merge delete

Comments

Can you share some logs from neutron when launching instances in error state? Also, share ml2 and neutron.conf config files, and a ls -l /etc/neutron/. Also an ovs-vsctl show would be appreciated too.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-01-29 04:34:43 -0500 )edit

If dhcp is running on your external network, can you check if that dhcp port is attached to the network with neutron port-show <name> ? Also have a look at openvswitch logs in /var/log/

kaustubh gravatar imagekaustubh ( 2016-01-29 17:34:42 -0500 )edit