
Before the watchdog restarts the whole daemon, Cumulus has a ladder of smaller
state-cleanup failures: BGP sessions that reset on their own, routes that look
healthy and are not, zebra memory that grows until FRR restarts, ports stranded
in the wrong VRF. One shape runs through all of them.
The shape
Every bug in this part has the same anatomy:
- a state transition happens — a link event, a config commit, a subinterface
recreation, a daemon crash; - one component updates its view;
- another component's cleanup, invalidation, or reconciliation step does not
happen; - every health signal stays green;
- the damage is discovered by a user, not by the switch.
That is the same anatomy as #5376361, one layer down. The watchdog bug is the
extreme case: the cleanup step that never happens is "recover the stuck thread
without restarting the switch."
The documented ladder
These are real open issues from the Cumulus 5.19.0 release notes, not
hypotheticals.
#5413953 — BGP sessions reset without a switchd or device restart.
Affects 5.16.8–5.19.0. The session drops and re-establishes with no
corresponding daemon restart. From the operator's chair this looks like a
network problem; from the switch's chair it is a control-plane event with no
logged cause.
#5389894 — iBGP looks healthy while routing is broken underneath.
Recreating a numbered IPv6 iBGP subinterface leaves the neighbour
Established with the same link-local next hop, but the learned route is no
longer valid and disappears from the table. The workaround is to clear the BGP
session on the neighbour. This is the purest example of the shape: the
control-plane indicator says up, the forwarding state says gone.
#5432451 — zebra memory grows until FRR restarts. Running
nv show router nexthop rib --view=brief (or the vtysh equivalent) leaks
memory for every next-hop group with more than one next hop. Frequent polling
grows memory until FRR restarts. The workaround is to avoid --view=brief.
A monitoring loop can therefore cause the outage it is watching for.
#5419474 — ports stranded in the default VRF. A single commit that moves
ports from a bridge into a VRF leaves some ports in the default VRF in
hardware, with traffic trapped to the CPU. The workaround is a two-step commit,
or systemctl restart switchd — which interrupts traffic. The recovery for a
configuration bug is the same blunt instrument as the watchdog.
#5364805 — BFD stale offload entries. If bfdd crashes or is force-killed
while BFD is offloaded, old transmit entries keep sending healthy "Up" messages
to peers while the restarted daemon's sessions stay Down. The device and its
peers disagree about whether the path is alive. No cleanup, no alarm.
Why the ladder matters
- State is duplicated across NVUE, FRR, the kernel and the ASIC. Every
duplication needs a reconciliation path, and reconciliation is the hardest
part to test. - Health is reported per layer. No layer owns the end-to-end question "does
what I think I programmed match what the peer and the chip actually have?" - Recovery is coarse. The available levers are clear the session, restart
FRR, restartswitchd, or reboot. Each is a bigger hammer than the fault. - Workarounds are operational. The release notes tell you which command to
run after you notice, not how to prevent the state divergence.
The escalation to #5376361
The ladder escalates in blast radius:
| Failure | Blast radius | Recovery |
|---|---|---|
| #5389894 route invalid | one prefix set on one neighbour | clear the session |
| #5413953 session reset | one session | automatic |
| #5432451 zebra leak | one switch's FRR | restart FRR |
| #5419474 stranded ports | ports on one switch | two-step commit or restart switchd |
| #5364805 BFD stale state | one BFD session's peers | restart bfdd, clear sessions |
| #5376361 switchd loop | every session on the switch, repeatedly | watchdog restart, ~23 min |
The last row is not a different kind of bug. It is the same missing-cleanup
pattern applied to the daemon that owns the chip — and because that daemon owns
everything, the blast radius is the whole box.

Next: Part 7 — the first and most fundamental flaw: #5376361, step by step,
and why the watchdog's only answer is a restart.

Comments (0)