Closed aldarund closed 8 years ago
Hey @aldarund I'm not able to reproduce that.
Can you please tell us the version of ansible you are running?
Also make sure you've exported export TF_VAR_STATE_ROOT=/tmp/kubeform/terraform/aws/public-cloud
and you have cloned the project on /tmp/kubeform
Thanks!
@enxebre export was done. did again -> nothing changed. project cloned too into /tmp/kubeform.
[dm@localhost kubeform]$ ansible-playbook --version
ansible-playbook 2.1.0.0
config file = /tmp/kubeform/ansible.cfg
configured module search path = ['./library']
Hey @aldarund we can't guarantee success with 2.1.0.0 at the minute as this has not been tested. We rely on 2.0.2.0 at the minute. https://github.com/Capgemini/kubeform/blob/master/requirements.txt#L1 We'll be providing a one shot deployment handling this dependencies soon If you still having issues with 2.0.2.0, it'd be useful if you add the -vvv flag into the ansible command so we can get more feedback
@enxebre ok, i see.will try with 2.0.2.0 , but need to build that sources since in epel for centos 7 there only 2.1 available.
@enxebre tried with 2.0.2.0. Different error now
TASK [Wait for port 22 to become available from local server.] *****************
ok: [kube-worker-0 -> localhost]
ok: [kube-edge-router-0 -> localhost]
ok: [kube-master-0 -> localhost]
PLAY [bootstrap coreos hosts] **************************************************
TASK [coreos_timezone : include] ***********************************************
included: /tmp/kubeform/roles/coreos_timezone/tasks/timezone.yml for kube-worker-0, kube-edge-router-0, kube-master-0
TASK [coreos_timezone : check if timezone is already set correctly] ************
fatal: [kube-edge-router-0]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}
fatal: [kube-master-0]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}
fatal: [kube-worker-0]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}
And im certainly can reach it via ssh. E.g
[dm@localhost kubeform]$ ssh 52.48.0.203
The authenticity of host '52.48.0.203 (52.48.0.203)' can't be established.
ECDSA key fingerprint is e3:60:85:0c:42:d3:6d:33:8f:64:09:04:4a:4a:ab:ff.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '52.48.0.203' (ECDSA) to the list of known hosts.
hey @aldarund seems we've got an out of date command in the docs
It shold be:
ansible-playbook -u core --ssh-common-args="-i terraform/aws/public-cloud/id_rsa -q" --inventory-file=inventory site.yml
So I think It's probably -F /tmp/kubeform/terraform/aws/public-cloud/ssh.config
which is making it fail for you.
You can also test it running something like ansible kube-worker-0 -m setup -i inventory/ --private-key=terraform/aws/public-cloud/id_rsa -u core --list-hosts
that should return all the extra vars for kube-worker-0
You should also be able to access via ssh by adding the ssh-add terraform/aws/public-cloud/id_rsa
and ssh core@52.48.0.203
Hope that helps
@enxebre Now new error :)
TASK [coreos_timezone : setup new timezone] ************************************
fatal: [kube-worker-0]: FAILED! => {"changed": false, "failed": true, "module_stderr": "/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\n/home/core/pypy/bin/pypy: /lib64/libssl.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)\n/home/core/pypy/bin/pypy: /lib64/libcrypto.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)\n/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\nTraceback (most recent call last):\n File \"app_main.py\", line 75, in run_toplevel\n File \"app_main.py\", line 636, in run_it\n File \"<stdin>\", line 2422, in <module>\n File \"<stdin>\", line 401, in main\nTypeError: set_fs_attributes_if_different() takes exactly 3 arguments (4 given)\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
fatal: [kube-master-0]: FAILED! => {"changed": false, "failed": true, "module_stderr": "/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\n/home/core/pypy/bin/pypy: /lib64/libssl.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)\n/home/core/pypy/bin/pypy: /lib64/libcrypto.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)\n/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\nTraceback (most recent call last):\n File \"app_main.py\", line 75, in run_toplevel\n File \"app_main.py\", line 636, in run_it\n File \"<stdin>\", line 2422, in <module>\n File \"<stdin>\", line 401, in main\nTypeError: set_fs_attributes_if_different() takes exactly 3 arguments (4 given)\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
fatal: [kube-edge-router-0]: FAILED! => {"changed": false, "failed": true, "module_stderr": "/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\n/home/core/pypy/bin/pypy: /lib64/libssl.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)\n/home/core/pypy/bin/pypy: /lib64/libcrypto.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)\n/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\nTraceback (most recent call last):\n File \"app_main.py\", line 75, in run_toplevel\n File \"app_main.py\", line 636, in run_it\n File \"<stdin>\", line 2422, in <module>\n File \"<stdin>\", line 401, in main\nTypeError: set_fs_attributes_if_different() takes exactly 3 arguments (4 given)\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
nvm, it was my a bit wrongly builded ansible. ansible finished succesfully
Cool, I'm closing this issue them. Feel free to have a look at this video demo https://www.youtube.com/watch?v=Ejc5rKTzHiQ on how to start to play with the cluster and edge router ingress scaling. Thanks for your feedback!
According to docs after terraform apply im running ansible-playbook, but it fails with no such file or directory.