Watch
0
0
Fork
You've already forked hyperhive
0

swarmctl, vm tests: wait for the store's active node after an unseal

An unsealed store has no active node for a few seconds and refuses writes
with "local node not active". swarmctl bao grant-bootstrap now repeats
bao policy list and bao policy write every second, up to a minute, while
the store answers that; setup.md says so. The full-setup and semi-spread
tests wait for bao policy list with the root token before the bootstrap.

full-setup.py: when create_agent gives up it also prints the controller
pod's logs, the pod list and the swarm builder's journal. A run that
failed with no archetype "reviewer" for 13 minutes left no controller or
builder output to read.
This commit is contained in:
atlas 2026-11-27 05:25:02 +01:00
commit 87d79ca4f0

View file

@ -125,7 +125,7 @@ swarmctl bao grant-bootstrap # prompts for the root token, input hidden
```
It writes the `bao-bootstrap` policy, places a 24h grant token for
`swarm-bao-granter-role` and restarts that unit. The token comes from the
`swarm-bao-granter-role` and restarts that unit. Right after an unseal the store has no active node for a few seconds and refuses writes with `local node not active`; the verb asks again every second, for up to a minute, before it reports that. The token comes from the
hidden prompt, or from stdin when stdin isn't a terminal; never from an
argument or environment variable. If the granter exists already, it
runs the same steps again: this is also how a change to the granter's own