swarm-otel, swarm-grafana: a delivery unit fails on no value yet
The collector's and Grafana's OIDC delivery units exited 0 when the store held no value, so systemd did not retry them. On a fresh swarm authelia's mint writes the secret about 30 s after the first read, and only the refresh timer, ten minutes on, read it again. Both units now exit 75, and the store retry they already carry asks every 30 s until the mint lands. Closes #6790
This commit is contained in:
parent
480855dfaf
commit
dad288d555
1 changed files with 88 additions and 22 deletions
|
|
@ -196,6 +196,17 @@ with subtest("authelia's mint has published the clients' secrets"):
|
|||
"swarm-bao-operator-viewer-policy",
|
||||
)
|
||||
|
||||
with subtest("the swarm collector's client secret reaches the host"):
|
||||
# `swarm-bao-otel-oidc` reads the mint's path once the store answers, and the mint writes
|
||||
# it a moment after that first read on a fresh swarm. The unit has to fail on "no value yet"
|
||||
# and ask again every 30 s. One that finished would wait for its refresh timer, ten minutes
|
||||
# on, so the wait is shorter than that.
|
||||
settle(
|
||||
"[ -s /run/swarm-otel-oidc/swarm-collector.secret ]",
|
||||
300,
|
||||
"swarm-bao-otel-oidc",
|
||||
)
|
||||
|
||||
with subtest("step 2: swarmctl user add"):
|
||||
machine.wait_until_succeeds(
|
||||
"swarmctl user add mara --display-name Mara --email mara@example.com --group admins "
|
||||
|
|
|
|||
Loading…
Reference in a new issue