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:
parent
f89d289a9f
commit
f658b2c770
1 changed files with 23 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue