netplan overwrites yml file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
Considering these 3 netplan commands:
sudo netplan set ethernets.
sudo netplan set bridges.
sudo netplan set bridges.
With netplan 0.104-0ubuntu2, it creates a file /etc/netplan/
network:
bridges:
mybridge:
dhcp4: false
interfaces:
- enp0s8
ethernets:
enp0s8:
dhcp4: false
version: 2
With netplan 0.105-0ubuntu2~
network:
version: 2
bridges:
mybridge:
dhcp4: false
and last command produce output error:
(process:1941): GLib-GIO-CRITICAL **: 15:35:18.738: g_file_
(process:1941): GLib-GIO-CRITICAL **: 15:35:18.739: g_file_read: assertion 'G_IS_FILE (file)' failed
(process:1941): GLib-GIO-CRITICAL **: 15:35:18.739: g_data_
(process:1941): GLib-GObject-
(process:1941): GLib-GIO-CRITICAL **: 15:35:18.740: g_data_
(process:1941): GLib-GIO-CRITICAL **: 15:35:18.740: g_data_
(process:1941): GLib-GIO-CRITICAL **: 15:35:18.740: g_data_
(process:1941): GLib-GIO-CRITICAL **: 15:35:18.740: g_data_
(process:1941): GLib-GIO-CRITICAL **: 15:35:18.741: g_data_
(process:1941): GLib-GObject-
(process:1941): GLib-GObject-
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/
parser.
File "/usr/share/
_checked_
File "/usr/share/
raise LibNetplanExcep
netplan.
(null)
Thank you for reporting this! I think this is related to the "netplan set" regression we're seeing in bug #1997467