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:
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:A workaround that has worked, is to rerun the playbook:
It would be good to include some check to ensure that no attempt is made to initialise the vault until its pods are ready.