Watch
0
0
Fork
You've already forked hyperhive
0

swarm-nats: order the host queue's callout-key unit after the prune

A switch back deletes the queue's pod with --wait, so the pod is still
ending while swarm-nats-k8s-prune runs. swarm-bao-nats-callout-xkey was
ordered before the container but not after the prune, so on a slow
apiserver its ensure-callout-keys ran beside the pod's responder and the
switch test saw two responders. On a host with the cluster node the unit
now starts after the prune. The prune names the unit nowhere, so there is
no cycle, and without the node nothing changes.

Closes #6831
This commit is contained in:
maia 2026-11-24 08:49:21 +01:00 • committed by maia
commit 00b5a191ef

View file

@ -1769,6 +1769,12 @@ in
# (./glue-bao-readers-store-order.nix); elsewhere the timeout below
# bounds the attempt.
before = [ "container@${machine}.service" ];
# On a host with the cluster node, also after the prune that deletes the
# queue's pod on a switch back. The prune waits for the pod to end, and
# `ensure-callout-keys` must not run beside a pod still terminating: its
# responder is a second one against the same store. The prune names
# this unit nowhere, so the order has no cycle.
after = lib.optional deployCfg.k8s.enable "${machine}-k8s-prune.service";
wantedBy = [
"multi-user.target"
"container@${machine}.service"