InternalError: Failure running os_vif plugin plug method: No VIF plugin was found with the name ovs

asked 2019-12-13 05:48:32 -0500

xfhd2019 gravatar image

updated 2019-12-16 00:19:34 -0500

devstack stein with ovs create instence error Failed to build and run instance: InternalError: Failure runn InternalError: Failure running os_vif plugin plug method: No VIF plugin was found with the name ovs

Log:

ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2] Traceback (most recent call last):
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/opt/stack/nova/nova/compute/manager.py", line 2353, in _build_and_run_instance
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     block_device_info=block_device_info)
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3204, in spawn
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     destroy_disks_on_failure=True)
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5724, in _create_domain_and_network
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     destroy_disks_on_failure)
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     self.force_reraise()
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     six.reraise(self.type_, self.value, self.tb)
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5683, in _create_domain_and_network
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     self.plug_vifs(instance, network_info)
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 879, in plug_vifs
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     self.vif_driver.plug(instance, vif)
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/opt/stack/nova/nova/virt/libvirt/vif.py", line 734, in plug
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     self._plug_os_vif(instance, vif_obj)
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]   File "/opt/stack/nova/nova/virt/libvirt/vif.py", line 714, in _plug_os_vif
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2]     raise exception.InternalError(msg)
Dec 13 19:36:29 localhost.localdomain nova-compute[25057]: ERROR nova.compute.manager [instance: 4b11ec1f-006f-451c-98d3-112da38f84e2] InternalError: Failure running os_vif plugin plug method: No VIF plugin was found with the name ovs

local.conf

[[local|localrc]]

ADMIN_PASSWORD=password
SERVICE_TOKEN ...
(more)
edit retag flag offensive close merge delete

Comments

This looks like the cloud configures Openvswitch, although it is not deployed. Perhaps deployment is incomplete only on the node where the instance is scheduled.

Does this happen only once or all the time? How was this cloud created? What is its Neutron and ML2 configuration?

Bernd Bausch gravatar imageBernd Bausch ( 2019-12-13 08:32:05 -0500 )edit

This error is generated by function _plug_os_vif() in https://opendev.org/openstack/nova/sr..., itself called by plug(). Setting the log level to DEBUG should print more information about this problem.

Bernd Bausch gravatar imageBernd Bausch ( 2019-12-13 19:26:12 -0500 )edit

devstack deploy base on https://docs.openstack.org/devstack/latest/guides/neutron.html%EF%BC%8CI've (https://docs.openstack.org/devstack/l...) tried many times, the error is repeated.

xfhd2019 gravatar imagexfhd2019 ( 2019-12-15 20:09:44 -0500 )edit

So my third question remains: What is its Neutron and ML2 configuration? You could also add the local.conf to your question.

Bernd Bausch gravatar imageBernd Bausch ( 2019-12-15 20:44:59 -0500 )edit

Why don't you use the official devstack repo? This is the third time I see somebody with problems when cloning trystack.cn.

Bernd Bausch gravatar imageBernd Bausch ( 2019-12-16 00:19:01 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-12-15 22:30:03 -0500

xfhd2019 gravatar image

this is my local.conf.

[[local|localrc]]

ADMIN_PASSWORD=password SERVICE_TOKEN=$ADMIN_PASSWORD DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD

HOST_IP=10.10.20.123 SERVICE_HOST=10.10.20.123 MYSQL_HOST=10.10.20.123 RABBIT_HOST=10.10.20.123 GLANCE_HOSTPORT=10.10.20.123:9292

use TryStack git mirror

GIT_BASE=http://git.trystack.cn NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git

OFFLINE=true

RECLONE=True

HORIZON_BRANCH=stable/stein KEYSTONE_BRANCH=stable/stein NOVA_BRANCH=stable/stein NEUTRON_BRANCH=stable/stein GLANCE_BRANCH=stable/stein CINDER_BRANCH=stable/stein

Q_USE_SECGROUP=True FLOATING_RANGE="10.10.20.0/24" IPV4_ADDRS_SAFE_TO_USE="10.0.0.0/22" Q_FLOATING_ALLOCATION_POOL=start=10.10.20.250,end=10.10.20.254 PUBLIC_NETWORK_GATEWAY="10.10.20.1" PUBLIC_INTERFACE=em2

Open vSwitch provider networking configuration

Q_USE_PROVIDERNET_FOR_PUBLIC=True OVS_PHYSICAL_BRIDGE=br-ex PUBLIC_BRIDGE=br-ex OVS_BRIDGE_MAPPINGS=public:br-ex

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-12-13 05:48:32 -0500

Seen: 291 times

Last updated: Dec 16 '19