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
dd55750b8d
commit
f349137d73
1 changed files with 77 additions and 7 deletions
|
|
@ -464,6 +464,9 @@ let
|
|||
with subtest("step 4: bao operator unseal, with the shamir seal"):
|
||||
swarm.succeed(f"bao operator unseal \"$(jq -r '.unseal_keys_b64[0]' {INIT})\"")
|
||||
swarm.succeed("bao status")
|
||||
# Unsealed is not active: the node takes a few seconds to elect itself, and a write before
|
||||
# that is refused with "local node not active".
|
||||
swarm.wait_until_succeeds(f"BAO_TOKEN=\"$(jq -r .root_token {INIT})\" bao policy list", timeout=120)
|
||||
|
||||
with subtest("step 1: the granter bootstrap"):
|
||||
swarm.succeed(
|
||||
|
|
|
|||
Loading…
Reference in a new issue