TASK [vault_tokens : Create token for staticcerts] ************************************************************** task path: /sas/install/sas_viya_playbook/roles/vault_tokens/tasks/create_service_token.yml:20 ESTABLISH LOCAL CONNECTION FOR USER: sas EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/.$USER.ansible/ `"&& mkdir "` echo /tmp/.$USER.ansible/ansible-tmp-1604899427.83-14503-139023266008405 `" && echo ansible-tmp-1604899427.83-14503-139023266008405="` echo /tmp/.$USER.ansible/ansible-tmp-1604899427.83-14503-139023266008405 `" ) && sleep 0' Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py PUT /home/sas/.ansible/tmp/ansible-local-42365ldde7/tmpnlLiFA TO /tmp/.sas.ansible/ansible-tmp-1604899427.83-14503-139023266008405/AnsiballZ_command.py EXEC /bin/sh -c 'chmod u+x /tmp/.sas.ansible/ansible-tmp-1604899427.83-14503-139023266008405/ /tmp/.sas.ansible/ansible-tmp-1604899427.83-14503-139023266008405/AnsiballZ_command.py && sleep 0' EXEC /bin/sh -c '/usr/bin/python /tmp/.sas.ansible/ansible-tmp-1604899427.83-14503-139023266008405/AnsiballZ_command.py && sleep 0' EXEC /bin/sh -c 'rm -f -r /tmp/.sas.ansible/ansible-tmp-1604899427.83-14503-139023266008405/ > /dev/null 2>&1 && sleep 0' fatal: [deployTarget]: FAILED! => { "changed": true, "cmd": "/opt/sas/viya/home/SASSecurityCertificateFramework/bin/sas-crypto-management new-sec-token --appName staticcerts --out-file /opt/sas/viya/config/etc/vault/default/staticcerts_token --root-token /opt/sas/viya/config/etc/vault/default/root_token --service-root-token /opt/sas/viya/config/etc/vault/default/service_root_token --vault-addr https://hostname.domain.hk:8200 --vault-cafile /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.pem", "delta": "0:09:10.974445", "end": "2020-11-09 13:32:59.072693", "invocation": { "module_args": { "_raw_params": "/opt/sas/viya/home/SASSecurityCertificateFramework/bin/sas-crypto-management new-sec-token --appName staticcerts --out-file /opt/sas/viya/config/etc/vault/default/staticcerts_token --root-token /opt/sas/viya/config/etc/vault/default/root_token --service-root-token /opt/sas/viya/config/etc/vault/default/service_root_token --vault-addr https://hostname.domain.hk:8200 --vault-cafile /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.pem", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true } }, "msg": "non-zero return code", "rc": 1, "start": "2020-11-09 13:23:48.098248", "stderr": "level=warn app=sas-crypto-management timestamp=2020-11-09T05:23:48.222965743Z function=old_commands.ActionGenerateNewSecurityToken msg=\"Legacy new-sec-token command used, it is DEPRECATED and WILL BE REMOVED in future versions of this application\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:23:52.26748243Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:23:57.039971511Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:24:02.94127915Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:24:11.209843704Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:24:23.519613171Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:24:43.7319502Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:25:20.228531177Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:26:27.623680626Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:28:38.92983682Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070596915Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070698622Z function=utils.(*TimeoutOperationPerformer).Perform msg=\"failed to perform the requested operation\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070732633Z function=connection.(*VaultClient).CreatePolicy msg=\"failed to add a Vault policy with policyName\" policyName=staticcerts err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070764617Z function=vault.Generate msg=\"generate failed to create a token policy in Vault for appName\" appName=staticcerts err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"\nPut https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\nlevel=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070814322Z function=main.main err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "stderr_lines": [ "level=warn app=sas-crypto-management timestamp=2020-11-09T05:23:48.222965743Z function=old_commands.ActionGenerateNewSecurityToken msg=\"Legacy new-sec-token command used, it is DEPRECATED and WILL BE REMOVED in future versions of this application\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:23:52.26748243Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:23:57.039971511Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:24:02.94127915Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:24:11.209843704Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:24:23.519613171Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:24:43.7319502Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:25:20.228531177Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:26:27.623680626Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:28:38.92983682Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070596915Z function=connection.(*policyCreationOperation).Perform msg=\"failed to create the policy in Vault through the Vault Sys API\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070698622Z function=utils.(*TimeoutOperationPerformer).Perform msg=\"failed to perform the requested operation\" err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070732633Z function=connection.(*VaultClient).CreatePolicy msg=\"failed to add a Vault policy with policyName\" policyName=staticcerts err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "level=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070764617Z function=vault.Generate msg=\"generate failed to create a token policy in Vault for appName\" appName=staticcerts err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"", "Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error", "level=error app=sas-crypto-management timestamp=2020-11-09T05:32:59.070814322Z function=main.main err=\"Put https://hostname.domain.hk:8200/v1/sys/policies/acl/staticcerts: Proxy Error\"" ], "stdout": "", "stdout_lines": [] } NO MORE HOSTS LEFT ********************************************************************************************** PLAY RECAP ****************************************************************************************************** deployTarget : ok=293 changed=70 unreachable=0 failed=1 skipped=820 rescued=0 ignored=0 localhost : ok=11 changed=1 unreachable=0 failed=0 skipped=7 rescued=0 ignor