Failed to plug VIF VIFOpenVSwitch

asked 2020-02-16 14:11:42 -0500

jmora gravatar image

Openstack Train - EL7 - openvswitch-agent - python3

Attempting to deploy a virtual server with openstack server create --flavor m1.extra_tiny --image cirros-raw --nic net-id=Test-1 selfservice-instance and i get the below error on the compute node. Seems like an issue when trying to create a network interface.

2020-02-16 14:01:12.773 1830 DEBUG oslo_concurrency.lockutils [req-41936923-022d-4009-b824-f093c2068438 ca0816a1f8eb4497b2d72e123698c266 ba6f2b182bed4d86aa38fcd62bab2bbe - default default] Lock "compute_resources" released by "nova.compute.resource_tracker.ResourceTracker.abort_instance_claim" :: held 0.116s inner /usr/local/lib/python3.6/site-packages/oslo_concurrency/lockutils.py:370
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [req-41936923-022d-4009-b824-f093c2068438 ca0816a1f8eb4497b2d72e123698c266 ba6f2b182bed4d86aa38fcd62bab2bbe - default default] [instance: f6855345-66ca-4201-a792-bb8e04625756] Failed to build and run instance: nova.exception.InternalError: Failure running os_vif plugin plug method: Failed to plug VIF VIFOpenVSwitch(active=False,address=fa:16:3e:80:59:65,bridge_name='br-int',has_traffic_filtering=True,id=7ff0063a-8a47-4a9d-a2c4-624ef9c9463d,network=Network(2086872b-0972-479d-a483-2cfa962e375b),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=False,vif_name='tap7ff0063a-8a'). Got error: a bytes-like object is required, not 'str'
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756] Traceback (most recent call last):
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]   File "/usr/local/lib/python3.6/site-packages/os_vif/__init__.py", line 77, in plug
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]     plugin.plug(vif, instance_info)
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]   File "/usr/local/lib/python3.6/site-packages/vif_plug_ovs/ovs.py", line 288, in plug
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]     self._plug_vif_generic(vif, instance_info)
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]   File "/usr/local/lib/python3.6/site-packages/vif_plug_ovs/ovs.py", line 232, in _plug_vif_generic
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]     self._get_vif_datapath_type(vif))
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]   File "/usr/local/lib/python3.6/site-packages/vif_plug_ovs/ovsdb/ovsdb_lib.py", line 61, in ensure_ovs_bridge
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]     datapath_type=datapath_type).execute()
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]   File "/usr/local/lib/python3.6/site-packages/vif_plug_ovs/ovsdb/impl_vsctl.py", line 124, in execute
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]     txn.add(self)
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]   File "/usr/local/lib/python3.6/site-packages/ovsdbapp/api.py", line 69, in __exit__
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]     self.result = self.commit()
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]   File "/usr/local/lib/python3.6/site-packages/vif_plug_ovs/ovsdb/impl_vsctl.py", line 94, in commit
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]     res = res.replace(r'\\', '\\').splitlines()
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756] TypeError: a bytes-like object is required, not 'str'
2020-02-16 14:01:12.774 1830 ERROR nova.compute.manager [instance: f6855345-66ca-4201-a792-bb8e04625756]
2020-02-16 14 ...
(more)
edit retag flag offensive close merge delete

Comments

1

This is configuration issue.

Share you Test-1 network details openstack network show Test-1

and your neutron config file.

piyushsrivastava gravatar imagepiyushsrivastava ( 2020-02-20 02:34:08 -0500 )edit

Indeed it was, i was missing a configuration file.

jmora gravatar imagejmora ( 2020-03-04 17:26:53 -0500 )edit