netplan apply crashes if ovs service is masked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
If OVS is installed but masked `netplan apply` crashes even if there is no OVS-related configuration present.
Steps to reproduce:
1. apt-get install openvswitch-common openvswitch-switch
2. systemctl mask ovs-vswitchd.
3. netplan apply.
Expected behavior: work normal
Actual behavior:
netplan apply
ovs-vsctl: unix:/var/
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/
out = subprocess.
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
raise CalledProcessEr
subprocess.
Ubuntu version: 20.04
description: | updated |