Restarting nova-compute fails when there is an instance with a port where binding:vif_type=binding_failed nova-compute
Version
======
How to reproduce
===============
1. Launch an instance.
2. Attach another interface to the instance using a second network
# nova interface-attach --net-id <net-id> <server>
3. Restart nova-compute
Version
======
python-nova-2014.2.1-14.el7ost.noarch
python-novaclient-2.20.0-1.el7ost.noarch
openstack-nova-common-2014.2.1-14.el7ost.noarch
openstack-nova-compute-2014.2.1-14.el7ost.noarch
Restarting nova-compute fails when there is an instance with a port where binding: vif_type= binding_ failed nova-compute
Version
======
How to reproduce
===============
1. Launch an instance.
2. Attach another interface to the instance using a second network
# nova interface-attach --net-id <net-id> <server>
3. Restart nova-compute
Version nova-2014. 2.1-14. el7ost. noarch novaclient- 2.20.0- 1.el7ost. noarch nova-common- 2014.2. 1-14.el7ost. noarch nova-compute- 2014.2. 1-14.el7ost. noarch
======
python-
python-
openstack-
openstack-
nova-compute Log libvirt. vif [-] vif_type= binding_ failed instance= Instance( access_ ip_v4=None, access_ ip_v6=None, architecture= None,auto_ disk_config= False,availabil ity_zone= None,cell_ name=None, cleaned= False,config_ drive=' ',created_ at=2015- 02-08T13: 56:26Z, default_ ephemeral_ device= None,default_ swap_device= None,deleted= False,deleted_ at=None, disable_ terminate= False,display_ description= 'vm1',display_ name='vm1' ,ephemeral_ gb=0,ephemeral_ key_uuid= None,fault= <?>,host= 'puma48. scl.lab. tlv.redhat. com',hostname= 'vm1',id= 190,image_ ref='c6e549fd- 4ba2-4723- a7c9-c1fa13cd24 f8',info_ cache=InstanceI nfoCache, instance_ type_id= 5,kernel_ id='',key_ data=None, key_name= None,launch_ index=0, launched_ at=2015- 02-08T13: 56:35Z, launched_ on='puma48. scl.lab. tlv.redhat. com',locked= False,locked_ by=None, memory_ mb=2048, metadata= <?>,node= 'puma48. scl.lab. tlv.redhat. com',numa_ topology= <?>,os_ type=None, pci_devices= <?>,power_ state=1, progress= 0,project_ id='a10d7b579ee 546ada9a9e5b70c fb9a25' ,ramdisk_ id='',reservati on_id=' r-bhwfpof7' ,root_device_ name='/ dev/vda' ,root_gb= 20,scheduled_ at=None, security_ groups= <?>,shutdown_ terminate= False,system_ metadata= <?>,task_ state=None, terminated_ at=None, updated_ at=2015- 02-08T13: 56:35Z, user_data= None,user_ id='4a5d45f0d5c f402b99a6819e28 a12466' ,uuid=a7106220- 1d42-4c47- 9c91-e2bc8ce0a2 d3,vcpus= 1,vm_mode= None,vm_ state=' active' ) vif=VIF({'profile': {}, 'ovs_interfaceid': None, 'network': Network({'bridge': None, 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': u'fixed', 'floating_ips': [], 'address': u'192.168. 250.10' })], 'version': 4, 'meta': {u'dhcp_server': u'192.168.250.3'}, 'dns': [], 'routes': [], 'cidr': u'192.168. 250.0/24' , 'gateway': IP({'meta': {}, 'version': 4, 'type': u'gateway', 'address': u'192.168. 250.1'} )})], 'meta': {u'injected': False, u'tenant_id': u'a10d7b579ee54 6ada9a9e5b70cfb 9a25'}, 'id': u'70f730d8- aced-48e8- a08e-0395fa446e 28', 'label': u'net3'}), 'devname': u'tap1e546c5b-f5', 'vnic_type': u'normal', 'qbh_params': None, 'meta': {}, 'details': {}, 'address': u'fa:16: 3e:d2:bd: fb', 'active': False, 'type': u'binding_failed', 'id': u'1e546c5b- f5b5-4221- bfb2-7be46a323e a9', 'qbg_params': None}) plug /usr/lib/ python2. 7/site- packages/ nova/virt/ libvirt/ vif.py: 531 common. threadgroup [-] Unexpected vif_type= binding_ failed common. threadgroup Traceback (most recent call last): common. threadgroup File "/usr/lib/ python2. 7/site- packages/ nova/openstack/ common/ threadgroup. py", line 125, in wait common. threadgroup x.wait() common. threadgroup File "/usr/lib/ python2. 7/site- packages/ nova/openstack/ common/ threadgroup. py", line 47, in wait common. threadgroup return self.thread.wait() common. threadgroup File "/usr/lib/ python2. 7/site- packages/ eventlet/ greenthread. py", line 173, in wait common. threadgroup return self._exit_ event.wait( ) common. threadgroup File "/usr/lib/ python2. 7/site- packages/ eventlet/ event.py" , line 121, in wait common. threadgroup return hubs.get_ hub().switch( ) common. threadgroup File "/usr/lib/ python2. 7/site- packages/ eventlet/ hubs/hub. py", line 293, in switch common. threadgroup return self.greenlet. switch( ) common. threadgroup File "/usr/lib/ python2. 7/site- packages/ eventlet/ greenthread. py", line 212, in main common. threadgroup result = function(*args, **kwargs) common. threadgroup File "/usr/lib/ python2. 7/site- packages/ nova/openstack/ common/ service. py", line 492, in run_service common. threadgroup service.start() common. threadgroup File "/usr/lib/ python2. 7/site- packages/ nova/service. py", line 164, in start common. threadgroup self.manager. init_host( ) common. threadgroup File "/usr/lib/ python2. 7/site- packages/ nova/compute/ manager. py", line 1139, in init_host common. threadgroup self._init_ instance( context, instance) common. threadgroup File "/usr/lib/ python2. 7/site- packages/ nova/compute/ manager. py", line 982, in _init_instance common. threadgroup self.driver. plug_vifs( instance, net_info) common. threadgroup File "/usr/lib/ python2. 7/site- packages/ nova/virt/ libvirt/ driver. py", line 948, in plug_vifs common. threadgroup self.vif_ driver. plug(instance, vif) common. threadgroup File "/usr/lib/ python2. 7/site- packages/ nova/virt/ libvirt/ vif.py" , line 541, in plug common. threadgroup _("Unexpected vif_type=%s") % vif_type) common. threadgroup NovaException: Unexpected vif_type= binding_ failed common. threadgroup
===============
2015-02-08 16:00:27.695 5794 DEBUG nova.virt.
2015-02-08 16:00:27.698 5794 ERROR nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.
2015-02-08 16:00:27.698 5794 TRACE nova.openstack.