Ask Your Question
1

libvirt error in icehouse: vif_type=binding_failed

asked 2014-06-18 12:52:48 -0500

raphpr gravatar image

Hello, I have configured a multi node and neutron single flat network in CentOS OpenStack IceHouse version

Have 3 nodes: one controller, one compute and one network node.

When I try launch a instance, I'm getting that error:

#  nova boot --flavor m1.tiny --image cirros-0.3.2-x86_64 --nic net-id=33ec7020-4826-4574-9a54-c35c76d7c1bb --security-group default --key-name demo-key test


# nova list
+--------------------------------------+------+--------+------------+-------------+----------+
| ID                                   | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+----------+
| ae00b1bb-dfb0-4271-be51-2bbf5e12e3d4 | test | ERROR  | -          | NOSTATE     |          |



# nova show ae00b1bb-dfb0-4271-be51-2bbf5e12e3d4
+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                                                                                                           |
+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                                                                                                                                          |
| OS-EXT-AZ:availability_zone          | nova                                                                                                                                                                            |
| OS-EXT-SRV-ATTR:host                 | compute1                                                                                                                                                                        |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute1                                                                                                                                                                        |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000e                                                                                                                                                               |
| OS-EXT-STS:power_state               | 0                                                                                                                                                                               |
| OS-EXT-STS:task_state                | -                                                                                                                                                                               |
| OS-EXT-STS:vm_state                  | error                                                                                                                                                                           |
| OS-SRV-USG:launched_at               | -                                                                                                                                                                               |
| OS-SRV-USG:terminated_at             | -                                                                                                                                                                               |
| accessIPv4                           |                                                                                                                                                                                 |
| accessIPv6                           |                                                                                                                                                                                 |
| config_drive                         |                                                                                                                                                                                 |
| created                              | 2014-06-18T17:45:09Z                                                                                                                                                            |
| fault                                | {"message": "Unexpected vif_type=binding_failed", "code": 500, "details": "  File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 296, in decorated_function |
|                                      |     return function(self, context, *args, **kwargs)                                                                                                                             |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 2075, in run_instance                                                                                 |
|                                      |     do_run_instance()                                                                                                                                                           |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py\", line 249, in inner                                                                              |
|                                      |     return f(*args, **kwargs)                                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 2074, in do_run_instance                                                                              |
|                                      |     legacy_bdm_in_spec)                                                                                                                                                         |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1207, in _run_instance                                                                                |
|                                      |     notify(\"error\", fault=e)  # notify that build failed                                                                                                                      |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py\", line 68, in __exit__                                                                             |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1191, in _run_instance                                                                                |
|                                      |     instance, image_meta, legacy_bdm_in_spec)                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1355, in _build_instance                                                                              |
|                                      |     filter_properties, bdms, legacy_bdm_in_spec)                                                                                                                                |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1401, in _reschedule_or_error                                                                         |
|                                      |     self._log_original_error(exc_info, instance_uuid)                                                                                                                           |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py\", line 68, in __exit__                                                                             |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1396, in _reschedule_or_error                                                                         |
|                                      |     bdms, requested_networks)                                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 2125, in _shutdown_instance                                                                           |
|                                      |     requested_networks)                                                                                                                                                         |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py\", line 68, in __exit__                                                                             |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 2115, in _shutdown_instance                                                                           |
|                                      |     block_device_info)                                                                                                                                                          |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py\", line 953, in destroy                                                                                   |
|                                      |     destroy_disks)                                                                                                                                                              |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py\", line 989, in cleanup                                                                                   |
|                                      |     self.unplug_vifs(instance, network_info)                                                                                                                                    |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py\", line 860, in unplug_vifs                                                                               |
|                                      |     self.vif_driver.unplug(instance, vif)                                                                                                                                       |
|                                      |   File \"/usr/lib/python2.6/site-packages/nova/virt/libvirt/vif.py\", line 798, in unplug                                                                                       |
|                                      |     _(\"Unexpected vif_type=%s\") % vif_type)                                                                                                                                   |
|                                      | ", "created": "2014-06-18T17:45:14Z"}                                                                                                                                           |
| flavor                               | m1.tiny (1)                                                                                                                                                                     |
| hostId                               | 3f3042c8f9501d2504a393ae65afb58504c0d919a73bffd87a9e771b                                                                                                                        |
| id                                   | ae00b1bb-dfb0-4271-be51-2bbf5e12e3d4                                                                                                                                            |
| image                                | cirros-0.3.2-x86_64 (2acf2ca6-a935-45b3-94f2-d428f34f710f)                                                                                                                      |
| key_name                             | demo-key                                                                                                                                                                        |
| metadata                             | {}                                                                                                                                                                              |
| name                                 | test                                                                                                                                                                            |
| os-extended-volumes:volumes_attached | []                                                                                                                                                                              |
| security_groups                      | default                                                                                                                                                                         |
| status                               | ERROR                                                                                                                                                                           |
| tenant_id                            | 30f220b0dca34241b9e4feb0bd117fe8                                                                                                                                                |
| updated                              | 2014-06-18T17:45:14Z                                                                                                                                                            |
| user_id                              | 8d8b6dbdacc6402b960b964b00bf8d14                                                                                                                                                |
+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

# tail /var/log/libvirt/libvirtd.log (compute node)

2014-06-18 17:03:46.731+0000 ...
(more)
edit retag flag offensive close merge delete

Comments

What reports neutron agent-list on Neutron Server ?

dbaxps gravatar imagedbaxps ( 2014-06-18 22:19:34 -0500 )edit

neutron agent-list

+--------------------------------------+--------------------+----------+-------+----------------+
| id                                   | agent_type         | host     | alive | admin_state_up |
+--------------------------------------+--------------------+----------+-------+---
raphpr gravatar imageraphpr ( 2014-06-19 20:29:46 -0500 )edit

https://bugs.launchpad.net/neutron/+b...

Sounds like an l2 agent configuration issue.

mpetason gravatar imagempetason ( 2014-06-26 00:48:00 -0500 )edit

Am hitting this bug too and I don't believe https://bugs.launchpad.net/neutron/+b... is the fix (have tried tuning down report_interval and agent_down_time, no change there).

Will open a new question with my logs.

arthur.lutz gravatar imagearthur.lutz ( 2014-08-26 02:55:14 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-28 04:34:29 -0500

If you are still seeing this issue, may be these link help, main issues seems to be the neutron port binding problem:

The options given in these threads would be helpful, worked for me for similar issue:

  1. https://ask.openstack.org/en/question/43813/failed-to-bind-port-in-neutron-on-router/ (https://ask.openstack.org/en/question...)
  2. https://ask.openstack.org/en/question/48407/instance-failing-to-spawn-logs-show-novaexception-unexpected-vif_typebinding_failed/ (https://ask.openstack.org/en/question...)
  3. https://ask.openstack.org/en/question/47533/instance-fails-to-spawn-with-unexpected-vif_typebinding_failed/ (https://ask.openstack.org/en/question...)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-06-18 12:52:48 -0500

Seen: 1,227 times

Last updated: Jun 18 '14