netplan fails to remove OVS vlan interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
netplan fails to delete OVS vlan interfaces that were previously defined but were then removed from the configuration. The underlying problem appears to be that the "ovs-vsctl iface-to-br" command used (https:/
As a bare bones reproducible:
$ cat /etc/netplan/
network:
version: 2
renderer: networkd
openvswitch: {}
ethernets:
enp0s8: {} # physical ethernet interface
bridges:
br0:
interfaces: [enp0s8]
openvswitch: {}
vlans:
enp0s8_999:
id: 999
link: br0
openvswitch: {}
$ sudo netplan apply
$ sudo ovs-vsctl show
709aacc0-
Bridge br0
fail_mode: standalone
Port br0
Port enp0s8_999
tag: 999
Port enp0s8
ovs_version: "2.16.0"
# This does not work and note the error message
$ sudo ovs-vsctl iface-to-br enp0s8_999
ovs-vsctl: no interface named enp0s8_999
# Make edits to /etc/netplan/
$ cat /etc/netplan/
network:
version: 2
renderer: networkd
openvswitch: {}
ethernets:
enp0s8: {} # physical ethernet interface
bridges:
br0:
interfaces: [enp0s8]
openvswitch: {}
# Note the below has the same error message as the example iface-to-br command
$ sudo netplan apply
ovs-vsctl: no interface named enp0s8_999
$ sudo ovs-vsctl show
709aacc0-
Bridge br0
fail_mode: standalone
Port br0
Port enp0s8_999
tag: 999
Port enp0s8
ovs_version: "2.16.0"
# Interface is still defined
Changed in netplan: | |
status: | New → In Progress |
Changed in netplan: | |
status: | In Progress → Fix Committed |
I just submitted a PR on the Github repository at https:/ /github. com/canonical/ netplan/ pull/256