Watch
0
0
Fork
You've already forked hyperhive
0

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:
maia 2026-11-23 12:43:37 +01:00
commit dad288d555

View file

@ -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