[Bug 2089234] Re: /usr/libexec/netplan/generate:ERROR:../src/parse.c:1350:handle_gateway4: assertion failed (scalar(node) == npp->current.netdef->gateway4): (\"192.168.100.1\" == \"192.168.100.254\")
Danilo Egea Gondolfo
2089234 at bugs.launchpad.net
Thu Nov 21 09:35:29 UTC 2024
This problem was fixed upstream but is still present on Jammy (even on 0.107.1-3ubuntu0.22.04.2).
See https://github.com/canonical/netplan/commit/a670781c0f00171d2fb7dd83dbd2de723432a11d
Reproducer:
# cat /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
enp5s0:
dhcp4: true
eth0:
gateway4: 1.2.3.4
eth0:
gateway4: 4.3.2.1
root at jammy-deleteme:~# /usr/libexec/netplan/generate
** (generate:991): WARNING **: 09:33:00.343: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
**
ERROR:../src/parse.c:1441:handle_gateway4: assertion failed (scalar(node) == npp->current.netdef->gateway4): ("4.3.2.1" == "1.2.3.4")
Bail out! ERROR:../src/parse.c:1441:handle_gateway4: assertion failed (scalar(node) == npp->current.netdef->gateway4): ("4.3.2.1" == "1.2.3.4")
Aborted (core dumped)
root at jammy-deleteme:~# netplan get
** (process:993): WARNING **: 09:33:02.396: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
**
ERROR:../src/parse.c:1441:handle_gateway4: assertion failed (scalar(node) == npp->current.netdef->gateway4): ("4.3.2.1" == "1.2.3.4")
Bail out! ERROR:../src/parse.c:1441:handle_gateway4: assertion failed (scalar(node) == npp->current.netdef->gateway4): ("4.3.2.1" == "1.2.3.4")
Aborted (core dumped)
** Also affects: netplan.io (Ubuntu Jammy)
Importance: Undecided
Status: New
** Changed in: netplan.io (Ubuntu Jammy)
Importance: Undecided => Medium
** Changed in: netplan.io (Ubuntu Jammy)
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2089234
Title:
/usr/libexec/netplan/generate:ERROR:../src/parse.c:1350:handle_gateway4:
assertion failed (scalar(node) == npp->current.netdef->gateway4):
(\"192.168.100.1\" == \"192.168.100.254\")
Status in netplan.io package in Ubuntu:
New
Status in netplan.io source package in Jammy:
Triaged
Bug description:
The Ubuntu Error Tracker has been receiving reports about a problem regarding netplan.io. This problem was most recently seen with package version 0.106.1-7ubuntu0.22.04.4, the problem page at https://errors.ubuntu.com/problem/c964eb70c0cbf27657746e5a11019d6dc36530dd contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2089234/+subscriptions
More information about the foundations-bugs
mailing list