install
install copied to clipboard
Installer fails as hosts are not accessible though passwordless ssh is setup properly
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 ~]$
@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.
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).
- Therefore generate a ECDSA key using
ssh-keygen -t ECDSA
. -
sudo ssh-copy-id -i ~/.ssh/contiv_id_ecdsa.pub [email protected]
-
./install/ansible/install_swarm.sh -f install/ansible/cfg.yml -e ~/.ssh/contiv_id_ecdsa -u admin
Regards, Philip
@neelimamukiri Could you please take a look at this one ?