contiv / install

Contiv Installer
https://contiv.github.io
Other
114 stars 56 forks source link

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

Open dvavili opened 7 years ago

dvavili commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

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