Unsupported VIF type unbound convert '_nova_to_osvif_vif_binding_failed' on compute restart

Bug #1738373 reported by Xiao Gong
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Xiao Gong

Bug Description

This bug is same as https://bugs.launchpad.net/nova/+bug/1324041.
Bug #1324041 has been closed, so i create this bug.

Bug #1324041 has been fixed, but the 'plug' function has changed in commit:745f5fbb3a1b0a42eb54e2be2ecfffca3cbbb872.

This commit imports the bug again in nova.network.os_vif_util:nova_to_osvif_vif method.

I find this bug in my Pike enviroment, but i think it also exists in master.

The bug log is:

2017-12-13 16:07:47.994 10236 ERROR oslo_service.service [req-c852fd3f-38e2-4955-84b1-1e31efd0eb22 - - - - -] Error starting thread.: NovaException: Unsupported VIF type binding_failed convert '_nova_to_osvif_vif_binding_failed'
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service Traceback (most recent call last):
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 721, in run_service
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service service.start()
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/service.py", line 143, in start
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service self.manager.init_host()
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1160, in init_host
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service self._init_instance(context, instance)
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 957, in _init_instance
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service self.driver.plug_vifs(instance, net_info)
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 748, in plug_vifs
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service self.vif_driver.plug(instance, vif)
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/vif.py", line 799, in plug
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service vif_obj = os_vif_util.nova_to_osvif_vif(vif)
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/network/os_vif_util.py", line 486, in nova_to_osvif_vif
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service {'type': vif['type'], 'func': funcname})
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service NovaException: Unsupported VIF type binding_failed convert '_nova_to_osvif_vif_binding_failed'
2017-12-13 16:07:47.994 10236 ERROR oslo_service.service

Xiao Gong (gongxiao)
Changed in nova:
assignee: nobody → Xiao Gong (gongxiao)
summary: - nova-compute start failed because of binding_failed vif
+ nova-compute cannot restart if _init_host failed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/528985

Xiao Gong (gongxiao)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/529249

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (stable/pike)

Change abandoned by 龚肖 (<email address hidden>) on branch: stable/pike
Review: https://review.openstack.org/528985

Revision history for this message
Albert Mikaelyan (tahvok) wrote : Re: nova-compute cannot restart if _init_host failed

This bug is also present in ocata release.
I confirm also that https://review.openstack.org/529249 worked for me.

Revision history for this message
Matt Riedemann (mriedem) wrote :
summary: - nova-compute cannot restart if _init_host failed
+ Unsupported VIF type unbound convert '_nova_to_osvif_vif_binding_failed'
+ on compute restart
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Balazs Gibizer (<email address hidden>) on branch: master
Review: https://review.opendev.org/529249
Reason: This is a pretty old patch with negative review. Feel free to restore it (or ask gibi on irc to restore it) if you still working on it.

Revision history for this message
Joris Vleminckx (jvleminc) wrote :

We have observed this issue in stein using kolla-ansible. After a reboot of a compute node , the nova-compute docker container keeps on restarting and when looking at the logs, it's because of the "Unsupported VIF type unbound convert '_nova_to_osvif_vif_unbound'" issue.

Removing and recreating the VM throwing this error fixes the issue. Does there exist any workaround that doesn't make us delete the VM?

Our containers are running nova 11.0.1.

2021-02-03 09:08:14.166 7 ERROR oslo_service.service [req-4c314b58-891e-4d10-874f-558ecd5e48ad - - - - -] Error starting thread.: NovaException: Unsupported VIF type unbound convert '_nova_to_osvif_vif_unbound'
2021-02-03 09:08:14.166 7 ERROR oslo_service.service Traceback (most recent call last):
2021-02-03 09:08:14.166 7 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_service/service.py", line 796, in run_service
2021-02-03 09:08:14.166 7 ERROR oslo_service.service service.start()
2021-02-03 09:08:14.166 7 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/service.py", line 162, in start
2021-02-03 09:08:14.166 7 ERROR oslo_service.service self.manager.init_host()
2021-02-03 09:08:14.166 7 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 1214, in init_host
2021-02-03 09:08:14.166 7 ERROR oslo_service.service self._init_instance(context, instance)
2021-02-03 09:08:14.166 7 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 961, in _init_instance
2021-02-03 09:08:14.166 7 ERROR oslo_service.service self.driver.plug_vifs(instance, net_info)
2021-02-03 09:08:14.166 7 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 819, in plug_vifs
2021-02-03 09:08:14.166 7 ERROR oslo_service.service self.vif_driver.plug(instance, vif)
2021-02-03 09:08:14.166 7 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/vif.py", line 805, in plug
2021-02-03 09:08:14.166 7 ERROR oslo_service.service vif_obj = os_vif_util.nova_to_osvif_vif(vif)
2021-02-03 09:08:14.166 7 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/network/os_vif_util.py", line 519, in nova_to_osvif_vif
2021-02-03 09:08:14.166 7 ERROR oslo_service.service {'type': vif['type'], 'func': funcname})
2021-02-03 09:08:14.166 7 ERROR oslo_service.service NovaException: Unsupported VIF type unbound convert '_nova_to_osvif_vif_unbound'

Revision history for this message
Joris Vleminckx (jvleminc) wrote :

My latest comment references https://bugs.launchpad.net/nova/+bug/1809136, which is a very similar bug, with error message "Unsupported VIF type unbound convert '_nova_to_osvif_vif_unbound'"

After checking, my rocky (not stein!) nova-compute containers weren't running with the fix mentioned in the relevant launchpad (https://opendev.org/openstack/nova/commit/7b4f5725f821ef89176ef69f036471eaaf8a6201), so once I updated it manually with the fix, after a reboot the issue stopped occurring. :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.