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

Installer fails as hosts are not accessible though passwordless ssh is setup properly #115

Open
dvavili opened this issue Apr 14, 2017 · 3 comments

Comments

@dvavili
Copy link
Contributor

dvavili commented Apr 14, 2017

Executing this from mac

./install/ansible/install_swarm.sh -f install/ansible/cfg.yml -e ~/.ssh/ssh-key -u admin -i
Starting the installer container
Generating Ansible configuration
Using 15.29.37.216 as the master node
Verifying ansible reachability
WARNING Some of the hosts are not accessible via passwordless SSH

This means either the host is unreachable or passwordless SSH is not
set up for it. Please resolve this before proceeding.

The same host is accessible via ssh from the host:

ssh admin@15.29.37.216 -i ~/.ssh/ssh-key
Warning: Permanently added '15.29.37.216' (ECDSA) to the list of known hosts.
Last login: Fri Apr 14 16:46:26 2017 from pfsense-contiv.cisco.com
[admin@user-vm-1 ~]$
@gaurav-dalvi
Copy link
Contributor

@DivyaVavili
This is internal setup issue and not related to installer. Could you please try on your linux machine, rather than trying from mac. You need to add static IP route to private lab network.

@PhilipSchmid
Copy link

Hi @DivyaVavili,

I had the same problem and for me the problem was the following:

For some strange reasons Ansible requires an ECDSA private key (RSA is not working).

  1. Therefore generate a ECDSA key using ssh-keygen -t ECDSA.
  2. sudo ssh-copy-id -i ~/.ssh/contiv_id_ecdsa.pub admin@192.168.X.X
  3. ./install/ansible/install_swarm.sh -f install/ansible/cfg.yml -e ~/.ssh/contiv_id_ecdsa -u admin

Regards,
Philip

@gaurav-dalvi
Copy link
Contributor

@neelimamukiri Could you please take a look at this one ?

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

3 participants