Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK [dare.common.vault_init_config : initialise vault ...] can fail if pod does not have host #91

Open
mikej888 opened this issue Sep 28, 2023 · 0 comments

Comments

@mikej888
Copy link
Collaborator

Issue encountered while running DARE-SeRP-Dev-Deployment Version: 43f688f (Thu Sep 14 17:15:42 2023 +0100) main branch.

Running monolithic_mk8s_example/1-vm-setup-and-deploy.yaml sometimes failed at:

$ ansible-playbook -i vmware-host.yaml 1-vm-setup-and-deploy.yaml -v
...
TASK [dare.common.vault_init_config : initialise vault with given number of key shares and threshold] ***
fatal: [single_host]: FAILED! => {"changed": false, "msg": "Failed to
execute on pod vault-0 due to : (0)\nReason: Handshake status 400 Bad
Request -+-+- {'audit-id': 'a064b9e0-4f1b-4def-b346-6bad38407dac',
'cache-control': 'no-cache, private', 'content-type':
'application/json', 'date': 'Wed, 27 Sep 2023 16:32:02 GMT',
'content-length': '156'} -+-+-
b'{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"pod
vault-0 does not have a host
assigned\",\"reason\":\"BadRequest\",\"code\":400}\\n'\n"} 

A workaround that has worked, is to rerun the playbook:

$ ansible-playbook -i inventories/eidf-tre-teleport.yaml 1-vm-setup-and-deploy.yaml -v

It would be good to include some check to ensure that no attempt is made to initialise the vault until its pods are ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant