A commit can return success and put the change into the active VyOS configuration while the change never reaches FRR or the kernel. No error or warning is shown. The next commit on the router, of any kind, applies the missing change.
It happens when vyos-configd takes longer than 10 ms to answer the first message of a commit. That is easy to hit on nested, slow or busy virtual machines. Reproduces reliably in the lab which uses nested virtualisation vms.
How to reproduce
Commit a static route, then compare the active configuration with FRR and read the vyos-configd journal.
A lost commit:
text
vyos@R2# set protocols static route 10.250.1.0/24 blackhole
[edit]
vyos@R2# commit
[edit]
vyos@R2# vtysh -c "show running-config" | grep -c 10.250
0
[edit]
vyos@R2# sudo journalctl -u vyos-configd --since "-2min" --no-pager
Dec 02 10:17:24 R2 vyos-configd[632]: Received message: {"type": "init"}
[edit]The commit returned no error and the route is in the active configuration, but FRR does not have it, and the daemon logged only the init message for that commit.
The same commit when it works:
text
vyos@R3# set protocols static route 10.250.1.0/24 blackhole
[edit]
vyos@R3# commit
[edit]
vyos@R3# vtysh -c "show running-config" | match 10.250
ip route 10.250.1.0/24 blackhole
[edit]
vyos@R3# sudo journalctl -u vyos-configd --since "-2min" --no-pager
Dec 01 14:25:44 R3 vyos-configd[632]: Received message: {"type": "init"}
Dec 01 14:25:44 R3 vyos-configd[632]: config session pid is 4156
Dec 01 14:25:44 R3 vyos-configd[632]: config session sudo_user is vyos
Dec 01 14:25:44 R3 vyos-configd[632]: commit_scripts: ['protocols_static']
Dec 01 14:25:44 R3 vyos-configd[632]: [protocols_static]
Dec 01 14:25:44 R3 vyos-configd[632]: scripts_called: ['protocols_static']
Dec 01 14:25:45 R3 vyos-configd[632]: Sending reply: SUCCESS with output
[edit]After a lost commit, committing any unrelated change (for example an interface description) puts the missing route into FRR and the kernel.
Cause
- The helper gives up after 10 ms. vyshim (src/shim/vyshim.c, initialization()) waits 10 ms for vyos-configd to answer its first message. If the answer is late, it runs the configuration script itself and returns that script's exit status, so the commit reports success. The timer was added in T2582 (2020).
- The script then skips FRR. src/conf_mode/protocols_static.py writes FRR only when the vyos-configd service is not running. The service is running, so the script leaves FRR to the daemon.
- The daemon never applies it either. vyos-configd got the first message but nothing after it, so it never sees the commit and never renders FRR.
- The next commit repairs it. The daemon accepts the next commit normally, reads the active configuration, which now includes the earlier change, and renders both.
The timer measures elapsed time, so anything that delays the daemon's reply counts: other processes on the same vCPU, or the hypervisor not running the vCPU.
Kernel scheduler traces of the helper's 10 ms window:
- Healthy commit: the daemon's reply arrives 3–4 ms after the request.
- Lost commit, idle lab router: the daemon is on the CPU for more than 8 ms without replying; the helper's own start-up is also twice as slow as on a healthy commit.
- Lost commit under load: the timer fires after 10.19 ms; configuration readers hold the vCPU for 7.3 ms of the window and the daemon's Python thread first runs 9.36 ms after the timer was armed.