Skip to content

test(host): run the connectivity watchdog under real systemd in the KVM harness - #241

Open
Mearman wants to merge 1 commit into
mainfrom
test/watchdog-systemd-scenario
Open

Mearman wants to merge 1 commit into
mainfrom
test/watchdog-systemd-scenario

Conversation

@Mearman

@Mearman Mearman commented Nov 7, 2026

Copy link
Copy Markdown
Member

Adds the connectivity watchdog to the KVM harness: the real transaction and watchdog worker, with the unit from the role's template, run under a guest's systemd and NetworkManager. It changes no role, module or host behaviour.

Measured in a disposable offline guest on NetworkManager 1.54.3: a change whose owner crashes before committing is restored by the worker after its deadline (13 s against a 12 s deadline); the same holds when the worker is also killed with SIGKILL and systemd restarts it within a second; a change committed in time is left in place after its deadline.

Not covered: a reboot (the boot-id path, still tested with fakes only), and the guest's NetworkManager reported connectivity checking off from the start, so the recorded rolled_back phase, written only after the reload returns, is the evidence that the reload ran.

…VM harness

The watchdog and the transaction were only exercised with fakes. The harness now runs the real
modules and the unit from the role's template under a guest's systemd and NetworkManager: a
change whose owner crashes is restored by the worker after its deadline, the same holds when
the worker is killed too and systemd restarts it, and a change committed in time is kept.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant