nova-lxd fails to launch instance with firewall-driver=openvswitch

Bug #1815922 reported by Nobuto Murata
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nova-lxd (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

might be related:
https://bugs.launchpad.net/cloud-archive/+bug/1681758
https://bugs.launchpad.net/nova-lxd/+bug/1808388

When nova-lxd is deployed with firewall-driver=openvswitch, launching instance fails with:

2019-02-14 15:28:20.907 21979 INFO os_vif [req-f2219e73-6880-4655-aef4-ae6e9220a277 d17b0515c8684a538b7c34955f14e059 2d83efd6a3a84bcd8d3902350f33a3d5 - 1758b80aa1684e9f8c9148e3d049eb70 1758b80aa1684e9f8c9148
e3d049eb70] Successfully plugged vif VIFOpenVSwitch(active=False,address=fa:16:3e:37:36:6b,bridge_name='br-int',has_traffic_filtering=True,id=d3d6f207-42aa-4262-81f9-71846affc29d,network=Network(1cc96226-274
4-4aab-8bf3-14480e25f086),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=False,vif_name='tapd3d6f207-42')
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [req-f2219e73-6880-4655-aef4-ae6e9220a277 d17b0515c8684a538b7c34955f14e059 2d83efd6a3a84bcd8d3902350f33a3d5 - 1758b80aa1684e9f8c9148e3d049eb70 1758b80aa1684e9f8c9148e3d049eb70] [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] Instance failed to spawn: AttributeError: 'module' object has no attribute 'create_ovs_vif_port'
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] Traceback (most recent call last):
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2239, in _build_resources
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] yield resources
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2019, in _build_and_run_instance
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] block_device_info=block_device_info)
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] File "/usr/lib/python2.7/dist-packages/nova/virt/lxd/driver.py", line 525, in spawn
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] self.plug_vifs(instance, network_info)
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] File "/usr/lib/python2.7/dist-packages/nova/virt/lxd/driver.py", line 1085, in plug_vifs
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] self.vif_driver.plug(instance, vif)
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] File "/usr/lib/python2.7/dist-packages/nova/virt/lxd/vif.py", line 225, in plug
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] _post_plug_wiring(instance, vif)
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] File "/usr/lib/python2.7/dist-packages/nova/virt/lxd/vif.py", line 156, in _post_plug_wiring
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] POST_PLUG_WIRING[vif_type](instance, vif)
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] File "/usr/lib/python2.7/dist-packages/nova/virt/lxd/vif.py", line 123, in _post_plug_wiring_veth_and_bridge
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] linux_net.create_ovs_vif_port(vif['network']['bridge'],
2019-02-14 15:28:21.561 21979 ERROR nova.compute.manager [instance: 7e29fcd7-7bec-4d37-a3a2-88e040b6d4bc] AttributeError: 'module' object has no attribute 'create_ovs_vif_port'

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python-nova-lxd 17.0.1-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-45.48-generic 4.15.18
Uname: Linux 4.15.0-45-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Thu Feb 14 15:55:32 2019
PackageArchitecture: all
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: nova-lxd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :

bundle with bionic-queens

One instance succeeded with the bundle, then
$ juju config neutron-openvswitch firewall-driver=openvswitch
has been set.

After Juju settles down, the next instance was launched, but failed with the error.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nova-lxd (Ubuntu):
status: New → Confirmed
Revision history for this message
James Page (james-page) wrote :

nova-lxd is EOL and no longer in development.

Changed in nova-lxd (Ubuntu):
status: Confirmed → Won't Fix
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.