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:
parent
b3c5113d53
commit
fbc670087a
1 changed files with 77 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue