Error when resetting netplan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Create and set Brgidge of oepn vswich with netplan.
With the following settings, there is no problem with the network settings at boot time.
When changing the settings, the netplan command causes an error and the settings cannot be changed.
The cause is that the ovs-vsctl command is used to delete-> register when resetting.
An error occurs because the hwaddr ":" is passed to the command as it is.
/etc/netplan/
-------
network:
ethernets:
enp1s0:
dhcp4: no
dhcp6: no
bridges:
br-ex:
addresses:
- 192.168.0.1/24
- 172.16.0.1/24
gateway4: 192.168.0.254
nameservers:
search: [ develop.local ]
addresses:
- 192.168.0.254
interfaces:
- enp1s0
openvswitch:
hwaddr: 52:54:00:c7:8d:f3
version: 2
-------
netplan apply
-------
ovs-vsctl: 52:54:00:c7:8d:f3: unexpected ":" parsing set of 1 or more strings
Traceback (most recent call last):
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
NetplanAppl
File "/usr/share/
apply_
File "/usr/share/
clear_
File "/usr/share/
_del_dict(type, iface, split[1], split[2], value)
File "/usr/share/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
-------
ovs-vsctl list Bridge br-ex
-------
_uuid : c3959c3c-
auto_attach : []
controller : [ba3026ab-
datapath_id : "0000525400c78df3"
datapath_type : system
datapath_version : "<unknown>"
external_ids : {netplan="true", "netplan/
fail_mode : secure
flood_vlans : []
flow_tables : {}
ipfix : []
mcast_snooping_
mirrors : []
name : br-ex
netflow : []
other_config : {hwaddr=
ports : [5fc15fc7-
protocols : [OpenFlow10, OpenFlow13, OpenFlow14]
rstp_enable : false
rstp_status : {}
sflow : []
status : {}
stp_enable : false
-------
Change line 52 in /usr/share/
subprocess.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: netplan.io 0.101-0ubuntu3~
ProcVersionSign
Uname: Linux 5.4.0-70-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: LXQt
Date: Sun Apr 18 10:22:39 2021
InstallationDate: Installed on 2021-04-10 (7 days ago)
InstallationMedia: Ubuntu-Server 20.04.2 LTS "Focal Fossa" - Release amd64 (20210201.2)
SourcePackage: netplan.io
UpgradeStatus: No upgrade log present (probably fresh install)
I thik this got fixed as of Netplan 0.103: https:/ /github. com/canonical/ netplan/ pull/203