Created
December 7, 2017 13:04
-
-
Save crisidev/6d454e577a2b6497800f8c8850d66189 to your computer and use it in GitHub Desktop.
Kubespray vault failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### NON VERBOSE RUN ### | |
TASK [vault : bootstrap/gen_ca | Generate vault root CA] ***************************************************************************************************** | |
Wednesday 06 December 2017 13:02:40 +0000 (0:00:00.541) 0:06:11.577 **** | |
fatal: [spirito -> spirito]: FAILED! => {"cache_control": "no-store", "changed": false, "connection": "close", "content": "{\"errors\":[\"1 error occurred:\\n\\n* Error converting input [vault.kube-system.svc.k8s.cardina.li vault.kube-system.svc vault.kube-system vault] for field alt_names: '' expected type 'string', got unconvertible type '[]interface {}'\"]}\n", "content_length": "234", "content_type": "application/json", "date": "Wed, 06 Dec 2017 13:02:40 GMT", "failed": true, "json": {"errors": ["1 error occurred:\n\n* Error converting input [vault.kube-system.svc.k8s.cardina.li vault.kube-system.svc vault.kube-system vault] for field alt_names: '' expected type 'string', got unconvertible type '[]interface {}'"]}, "msg": "Status code was not [200, 204]: HTTP Error 500: Internal Server Error", "redirected": false, "status": 500, "url": "http://spirito:8200/v1/vault/root/generate/exported"} | |
### VERBOSE RUN ### | |
TASK [vault : bootstrap/gen_ca | Generate vault root CA] ***************************************************************************************************** [62/1728] | |
task path: /opt/cattedrale/provisioning/ansi-ball/kubespray/roles/vault/tasks/shared/gen_ca.yml:8 | |
Wednesday 06 December 2017 13:07:16 +0000 (0:00:00.528) 0:02:36.848 **** | |
Using module file /root/.virtualenvs/ansible24/local/lib/python2.7/site-packages/ansible/modules/net_tools/basics/uri.py | |
<spirito> ESTABLISH SSH CONNECTION FOR USER: None | |
<spirito> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o 'IdentityFile="/root/.ssh/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAu$ | |
hentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/f4c7b57eb3 spirito '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-xlfmnuhlpbebofqjsvbtadxvqzxvifim; no_proxy=10.0.3.11,padre,padre.k8s.cardina.li,10.0.3.12,figlio,figlio.k8s.cardina.li,10.0.3.13,spirito,spiri$ | |
o.k8s.cardina.li,10.0.3.14,santo,santo.k8s.cardina.li,10.0.3.15,amen,amen.k8s.cardina.li,127.0.0.1,localhost https_proxy='"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"''"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"' http_proxy='"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"''"'"'"'"'"'"'"'"'"'"'"'"'$ | |
'"'"'"'"'"'"'"'"'"'"'"'"'"' /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"'' | |
<spirito> (1, '\n{"status": 500, "content_length": "234", "exception": " File \\"/tmp/ansible_hkckRZ/ansible_module_uri.py\\", line 468, in main\\n uresp[\'location\'] = absolute_location(url, uresp[\'location\'])\\n", "url": "http://spirito:8200/v1/vault/root/generate/exported", "connection": "close", "content"$ | |
"{\\"errors\\":[\\"1 error occurred:\\\\n\\\\n* Error converting input [vault.kube-system.svc.k8s.cardina.li vault.kube-system.svc vault.kube-system vault] for field alt_names: \'\' expected type \'string\', got unconvertible type \'[]interface {}\'\\"]}\\n", "failed": true, "json": {"errors": ["1 error occurred:\\$ | |
\\n* Error converting input [vault.kube-system.svc.k8s.cardina.li vault.kube-system.svc vault.kube-system vault] for field alt_names: \'\' expected type \'string\', got unconvertible type \'[]interface {}\'"]}, "content_type": "application/json", "invocation": {"module_args": {"directory_mode": null, "force": false, | |
"remote_src": null, "status_code": ["200", "204"], "body_format": "json", "owner": null, "follow": false, "client_key": null, "group": null, "use_proxy": true, "unsafe_writes": null, "setype": null, "content": null, "serole": null, "follow_redirects": "safe", "return_content": false, "method": "POST", "body": {"comm$ | |
n_name": "vault", "alt_names": ["vault.kube-system.svc.k8s.cardina.li", "vault.kube-system.svc", "vault.kube-system", "vault"], "ttl": "87600h", "exclude_cn_from_sans": true, "format": "pem"}, "timeout": 30, "src": null, "dest": null, "selevel": null, "force_basic_auth": false, "removes": null, "http_agent": "ansibl$ | |
-httpget", "regexp": null, "url_password": null, "url": "http://spirito:8200/v1/vault/root/generate/exported", "validate_certs": true, "seuser": null, "client_cert": null, "creates": null, "headers": {"Content-Type": "application/json", "X-Vault-Token": "bb2509b5-f2ec-3c27-a929-e87fb2b31e5a", "Accept": "application/$ | |
son"}, "delimiter": null, "mode": null, "url_username": null, "attributes": null, "backup": null}}, "date": "Wed, 06 Dec 2017 13:07:16 GMT", "redirected": false, "cache_control": "no-store", "msg": "Status code was not [200, 204]: HTTP Error 500: Internal Server Error"}\n', '') | |
The full traceback is: | |
File "/tmp/ansible_hkckRZ/ansible_module_uri.py", line 468, in main | |
uresp['location'] = absolute_location(url, uresp['location']) | |
fatal: [spirito -> spirito]: FAILED! => { | |
"cache_control": "no-store", | |
"changed": false, | |
"connection": "close", | |
"content": "{\"errors\":[\"1 error occurred:\\n\\n* Error converting input [vault.kube-system.svc.k8s.cardina.li vault.kube-system.svc vault.kube-system vault] for field alt_names: '' expected type 'string', got unconvertible type '[]interface {}'\"]}\n", | |
"content_length": "234", | |
"content_type": "application/json", | |
"date": "Wed, 06 Dec 2017 13:07:16 GMT", | |
"failed": true, | |
"invocation": { | |
"module_args": { | |
"attributes": null, | |
"backup": null, | |
"body": { | |
"alt_names": [ | |
"vault.kube-system.svc.k8s.cardina.li", | |
"vault.kube-system.svc", | |
"vault.kube-system", | |
"vault" | |
], | |
"common_name": "vault", | |
"exclude_cn_from_sans": true, | |
"format": "pem", | |
"ttl": "87600h" | |
}, | |
"body_format": "json", | |
"client_cert": null, | |
"client_key": null, | |
"content": null, | |
"creates": null, | |
"delimiter": null, | |
"dest": null, | |
"directory_mode": null, | |
"follow": false, | |
"follow_redirects": "safe", | |
"force": false, | |
"force_basic_auth": false, | |
"group": null, | |
"headers": { | |
"Accept": "application/json", | |
"Content-Type": "application/json", | |
"X-Vault-Token": "bb2509b5-f2ec-3c27-a929-e87fb2b31e5a" | |
}, | |
"http_agent": "ansible-httpget", | |
"method": "POST", | |
"mode": null, | |
"owner": null, | |
"regexp": null, | |
"remote_src": null, | |
"removes": null, | |
"return_content": false, | |
"selevel": null, | |
"serole": null, | |
"setype": null, | |
"seuser": null, | |
"src": null, | |
"status_code": [ | |
"200", | |
"204" | |
], | |
"timeout": 30, | |
"unsafe_writes": null, | |
"url": "http://spirito:8200/v1/vault/root/generate/exported", | |
"url_password": null, | |
"url_username": null, | |
"use_proxy": true, | |
"validate_certs": true | |
} | |
}, | |
"json": { | |
"errors": [ | |
"1 error occurred:\n\n* Error converting input [vault.kube-system.svc.k8s.cardina.li vault.kube-system.svc vault.kube-system vault] for field alt_names: '' expected type 'string', got unconvertible type '[]interface {}'" | |
] | |
}, | |
"msg": "Status code was not [200, 204]: HTTP Error 500: Internal Server Error", | |
"redirected": false, | |
"status": 500, | |
"url": "http://spirito:8200/v1/vault/root/generate/exported" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment