order the store's readers after its container without wanting it
This commit is contained in:
parent
b1c828dbf8
commit
868c57321c
1 changed files with 37 additions and 28 deletions
|
|
@ -1239,13 +1239,14 @@ let
|
|||
}
|
||||
{
|
||||
# Where the store runs here, each reader waits for its container and
|
||||
# the PKI unit minting the leaf it logs in with, and wants both. It
|
||||
# never requires the PKI unit: a refused pki start fails a requirer's
|
||||
# the PKI unit minting the leaf it logs in with, and wants the PKI unit only:
|
||||
# a `Wants=` on the container would start it mid-switch on the old closure.
|
||||
# It never requires the PKI unit: a refused pki start fails a requirer's
|
||||
# job with `dependency`, which its `Restart=on-failure` never retries.
|
||||
# Elsewhere neither unit exists. On the store's host without the
|
||||
# readers, none of them is rendered as a stub. Rosters are counted: an
|
||||
# empty one holds vacuously.
|
||||
name = "a store reader waits for and wants the store's container and PKI unit only where the store runs here, and requires neither";
|
||||
name = "a store reader waits for the store's container and PKI unit only where the store runs here, wants only the PKI unit, and requires neither";
|
||||
ok =
|
||||
let
|
||||
machine = serviceContainersWithCi.services.hyperhive.swarm.bao.machine;
|
||||
|
|
@ -1276,7 +1277,7 @@ let
|
|||
&& lib.elem "swarm-bao-pki.service" here.${u}.wants
|
||||
&& !(lib.any (n: lib.elem n here.${u}.requires) storeUnits)
|
||||
&& lib.elem "container@${machine}.service" here.${u}.after
|
||||
&& lib.elem "container@${machine}.service" here.${u}.wants;
|
||||
&& !(lib.elem "container@${machine}.service" here.${u}.wants);
|
||||
namesNoStoreUnit =
|
||||
u:
|
||||
let
|
||||
|
|
|
|||
Loading…
Reference in a new issue