Repository navigation
Closed
Description
According to docs after terraform apply im running ansible-playbook, but it fails with no such file or directory.
[dm@localhost kubeform]$ ansible-playbook -u core --ssh-common-args="-F /tmp/kubeform/terraform/aws/public-cloud/ssh.config -i /tmp/kubeform/terraform/aws/public-cloud/id_rsa -q" --inventory-file=inventory site.yml -e kube_apiserver_vip=$(cd /tmp/kubeform/terraform/aws/public-cloud && terraform output master_elb_hostname)
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default).
This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [all:!role=bastion] *******************************************************
TASK [Wait for ssh port to become available from bastion server.] **************
skipping: [kube-worker-0]
skipping: [kube-edge-router-0]
skipping: [kube-master-0]
TASK [Wait for port 22 to become available from local server.] *****************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 2] No such file or directory
fatal: [kube-master-0 -> localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 114, in <module>\n File \"<stdin>\", line 28, in invoke_module\n File \"/usr/lib64/python2.7/subprocess.py\", line 711, in __init__\n errread, errwrite)\n File \"/usr/lib64/python2.7/subprocess.py\", line 1327, in _execute_child\n raise child_exception\nOSError: [Errno 2] No such file or directory\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 2] No such file or directory
fatal: [kube-edge-router-0 -> localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 114, in <module>\n File \"<stdin>\", line 28, in invoke_module\n File \"/usr/lib64/python2.7/subprocess.py\", line 711, in __init__\n errread, errwrite)\n File \"/usr/lib64/python2.7/subprocess.py\", line 1327, in _execute_child\n raise child_exception\nOSError: [Errno 2] No such file or directory\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 2] No such file or directory
fatal: [kube-worker-0 -> localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 114, in <module>\n File \"<stdin>\", line 28, in invoke_module\n File \"/usr/lib64/python2.7/subprocess.py\", line 711, in __init__\n errread, errwrite)\n File \"/usr/lib64/python2.7/subprocess.py\", line 1327, in _execute_child\n raise child_exception\nOSError: [Errno 2] No such file or directory\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
Metadata
Metadata
Assignees
Labels
No labels
Activity
enxebre commentedon Jul 4, 2016
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-cloudand you have cloned the project on /tmp/kubeformThanks!
aldarund commentedon Jul 4, 2016
@enxebre export was done. did again -> nothing changed. project cloned too into /tmp/kubeform.
enxebre commentedon Jul 4, 2016
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
aldarund commentedon Jul 4, 2016
@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.
aldarund commentedon Jul 4, 2016
@enxebre tried with 2.0.2.0. Different error now
aldarund commentedon Jul 4, 2016
And im certainly can reach it via ssh. E.g
enxebre commentedon Jul 4, 2016
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.ymlSo I think It's probably
-F /tmp/kubeform/terraform/aws/public-cloud/ssh.configwhich 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-hoststhat 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_rsaand ssh core@52.48.0.203Hope that helps
aldarund commentedon Jul 4, 2016
@enxebre Now new error :)
aldarund commentedon Jul 4, 2016
nvm, it was my a bit wrongly builded ansible. ansible finished succesfully
enxebre commentedon Jul 4, 2016
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!