netplan apply will crash if openvswitch is not running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Fix Released
|
Medium
|
Danilo Egea Gondolfo |
Bug Description
The problem was reported on Ubuntu 22.04.
netplan apply will call ovs-vsctl and will crash if openvswitch is not running.
# sudo 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.
Netplan should throw a warning message and ignore ovs configuration is cases like this.
Changed in netplan.io (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in netplan.io (Ubuntu): | |
assignee: | nobody → Danilo Egea Gondolfo (danilogondolfo) |
tags: | added: foundations-todo |
Changed in netplan.io (Ubuntu): | |
status: | Triaged → Fix Committed |
tags: | removed: foundations-todo |
https:/ /github. com/canonical/ netplan/ pull/307