install icon indicating copy to clipboard operation
install copied to clipboard

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

Open dvavili opened this issue 7 years ago • 3 comments

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 [email protected] -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 ~]$

dvavili avatar Apr 14 '17 23:04 dvavili

@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.

gaurav-dalvi avatar Apr 15 '17 00:04 gaurav-dalvi

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 [email protected]
  3. ./install/ansible/install_swarm.sh -f install/ansible/cfg.yml -e ~/.ssh/contiv_id_ecdsa -u admin

Regards, Philip

PhilipSchmid avatar Apr 20 '17 07:04 PhilipSchmid

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

gaurav-dalvi avatar Apr 20 '17 17:04 gaurav-dalvi