glib warning on netplan-try with wrong config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hello! Not sure if it is a bug or not, but:
While learning netplan, I've made a wrong config, then check it with netplan-try, and get the error below.
(generate:1255): GLib-WARNING **: 07:45:34.289: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: /etc/netplan/
- to: 0.0.0.0/0
^
/etc/netplan/
via: fe80::1
An error occurred: the configuration could not be generated
Reverting.
Warning: Stopping systemd-
systemd-
My config is (addresses were replaced):
network:
version: 2
renderer: networkd
ethernets:
eth0:
- 192.46.XXX.XXX/24
- 2a01:7e01:
routes:
- to: 0.0.0.0/0
via: 192.XXX.XXX.1
- to: 0.0.0.0/0
via: fe80::1
Oh, sorry, I've forgot to add the system info:
VPC
Linux localhost 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
libnetplan0/ focal-updates, now 0.102-0ubuntu1~ 20.04.2 amd64 [installed, automatic] io/focal- updates, now 0.102-0ubuntu1~ 20.04.2 amd64 [installed, automatic]
netplan.