Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dr_replication: fix a race in the DR replication scenario
Now that we are using a new module for secrets engines verification without retries we could run into a race: ``` ╷ │ Error: exit status 1 │ │ Error: Execution Error │ │ with module.verify_replicated_data_during_failover.enos_remote_exec.auth_login_testuser, │ on ../../modules/verify_secrets_engines/modules/read/auth.tf line 8, in resource "enos_remote_exec" "auth_login_testuser": │ 8: resource "enos_remote_exec" "auth_login_testuser" { │ │ failed to execute commands due to: running script: │ [/Users/ryan/code/hashi/vault/enos/modules/verify_secrets_engines/scripts/auth-userpass-login.sh] │ failed, due to: 1 error occurred: │ * executing script │ auth/userpass/login/testuser: Error making API request. │ │ URL: PUT http://[::1]:8200/v1/auth/userpass/login/testuser │ Code: 503. Errors: │ │ * Vault is sealed ``` We solve this by waiting for the cluster to be fully unsealed before attempting to login during the data read. Signed-off-by: Ryan Cragun <[email protected]>
- Loading branch information