Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kargo/Ansible is not able to connect through ssh from Kargo Docker container #65

Open
jalbstmeijer opened this issue Aug 4, 2016 · 1 comment

Comments

@jalbstmeijer
Copy link

root@d05db7b33842:/# kargo deploy --verbose --aws -u ec2-user --passwd secret -n weave

CHECKING SSH CONNECTIONS *******************************************************
k8s-mckay-7zw49 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh.",
"unreachable": true
}
k8s-mckay-1thil | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh.",
"unreachable": true
}

just using plain ssh works;

ssh ec2-user@host

an Ansible ping not

root@d05db7b33842:/# ansible -i /root/.kargo/inventory/inventory.cfg -u ec2-user -m ping k8s-mckay-7zw49
k8s-mckay-hrwtl | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh.",
"unreachable": true
}

found workaround http://stackoverflow.com/questions/31649421/ansible-wont-let-me-connect-through-ssh

root@d05db7b33842:/# cat > /root/.ansible.cfg
[ssh_connection]
ssh_args=

@jalbstmeijer
Copy link
Author

You would expect the 'TASK [Wait until SSH is available] ' of 'kargo aws --nodes 3 --cluster-name kubbe' to fail too before.
But looking at the comment #37 (comment) it seems there the default ssh_args get overruled in the command line with ''--ssh-extra-args''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant