netplan drops routes on carrier loss

Bug #1928583 reported by Robert Meeter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan.io (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Our system has some statically defined network devices. Whenever a carrier loss happens, which can be due to manual network cabling changes but also due to the connected ISP's router doing a maintenance restart, the system receives a carrier loss. This results in all routes being removed. They are not added back when the carrier is regained.

I tried putting

[Match]
Name=*

[Link]
ActivationPolicy=always-up

into /etc/systemd/network/netplan-override.network.d/override.conf , but this doesn't seem to help either.

I don't see any way to specify that a carrier loss should be ignored via netplan. I suppose https://github.com/canonical/netplan/pull/34 introduced this for bridge devices.

I'm actually surprised this isn't a bigger issue to people since.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: netplan.io 0.102-0ubuntu1~20.04.2
ProcVersionSignature: Ubuntu 5.4.0-73.82-generic 5.4.106
Uname: Linux 5.4.0-73-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27.17
Architecture: amd64
CasperMD5CheckResult: skip
Date: Sun May 16 13:45:22 2021
SourcePackage: netplan.io
UpgradeStatus: Upgraded to focal on 2020-12-25 (141 days ago)

Revision history for this message
Robert Meeter (wsoptics) wrote :
Revision history for this message
Lukas Märdian (slyon) wrote :

I think this should be fixed as of netplan v0.104: https://github.com/canonical/netplan/pull/215

Could you please try to confirm this, using a "ignore-carrier: true" setting?

Changed in netplan.io (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for netplan.io (Ubuntu) because there has been no activity for 60 days.]

Changed in netplan.io (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.