Watch
0
0
Fork
You've already forked hyperhive
0

egress-pin: a hung pass fails instead of stopping every later pass

The lock wait polls try_lock and gives up at the pass deadline (30 s), nft, ip
and nsenter get 10 s each before they are killed, and both pin units get
TimeoutStartSec=90s, which systemd does not set for a oneshot unit.
This commit is contained in:
maia 2026-11-19 20:03:14 +01:00 • committed by mara
commit 1552019580

View file

@ -826,7 +826,14 @@ source check lives in that table and the host-side filtering stays in
for it. udev starts it for each new `vb-*` port
(`hive-egress-pin@<port>.service`), and a timer (`hive-egress-pin.timer`, every
30 seconds) runs it for the ports that still have no binding. The timer reads
no container while every port has one. The `hive-egress` unit loads the tables
no container while every port has one. One pass at a time reads and writes the
bindings, under a lock. A pass waits 30 seconds for the lock and gives up with
`lock held by another pass for 30 s; giving up`, and `ip`, `nsenter` and `nft`
each get 10 seconds before the pass kills them and fails. Both units also have
`TimeoutStartSec=90s`. A pass that stops responding fails visibly and the
next run of the timer or udev starts again, instead of stopping every later
pass. The
`hive-egress` unit loads the tables
with `hive-priv egress-load`: it looks up the bindings first, while the old
tables still filter, and puts them and the leases from dnsmasq's lease file
into the same nft transaction as the tables. A start or reload never leaves