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
|
|
@ -85,6 +85,9 @@ in
|
|||
exit 1
|
||||
fi
|
||||
if ! value="$(store_bao kv get -field=value ${lib.escapeShellArg "secret/swarm/hives/${hiveController.hiveName}/squid-selfcheck"} 2>"$STORE_ERR")"; then
|
||||
# Done, not retried: a hive with no minted credential is a supported
|
||||
# state (the self-check reports `credential=absent`), so there is
|
||||
# nothing to wait for. The refresh timer reads the path again.
|
||||
if grep -qi 'no value found' "$STORE_ERR"; then
|
||||
echo "the swarm has not minted this hive's squid self-check credential yet; ${credentialFile} stays as it is."
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue