Support Questions
Find answers, ask questions, and share your expertise

Apache Metron - Single Node Dev install - Error "Host not reachable"

Highlighted

Apache Metron - Single Node Dev install - Error "Host not reachable"

Apache Metron Single node Dev install is failing with host unreachable error.

Installation on OS X 10.11.5

Vagrant 1.8.5

Output of ansible --version

ansible 2.0.0.2  
config file = /Users/shishir.saxena/Downloads/incubator-metron-master/metron-deployment/vagrant/full-dev-platform/ansible.cfg  
configured module search path = ../../extra_modules

vagrant ssh working

output of vagrant ssh-config

Host node1  
HostName 127.0.0.1  
User vagrant  
Port 2222  
UserKnownHostsFile /dev/null  
StrictHostKeyChecking no  
PasswordAuthentication no  
IdentityFile /Users/abcd/Downloads/incubator-metron-master/metron-deployment/vagrant/full-dev-platform/.vagrant/machines/node1/virtualbox/private_key  
IdentitiesOnly yes
LogLevel FATAL 

vagrant provision is giving following error.

21 plays in ../../playbooks/metron_full_install.yml
PLAY ***************************************************************************
skipping: no hosts matched
PLAY ***************************************************************************
skipping: no hosts matched
PLAY ***************************************************************************
TASK [setup] *******************************************************************
<node1> ESTABLISH SSH CONNECTION FOR USER: vagrant
<node1> SSH: EXEC ssh -C -vvv -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i /Users/shishir.saxena/Downloads/incubator-metron-master/metron-deployment/vagrant/full-dev-platform/.vagrant/machines/node1/virtualbox/private_key -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=30 -o ControlPath=/Users/shishir.saxena/.ansible/cp/%h-%p-%r -tt node1 '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1469559687.31-54186283764878 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1469559687.31-54186283764878 )" )'fatal: [node1]: UNREACHABLE! => {"changed": false, "msg": "ERROR! SSH encountered an unknown error. The output was:\nOpenSSH_6.9p1, LibreSSL 2.1.8\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket \"/Users/shishir.saxena/.ansible/cp/node1-22-vagrant\" does not exist\r\ndebug2: ssh_connect: needpriv 0\r\ndebug1: Connecting to node1 [192.168.66.121] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: connect to address 192.168.66.121 port 22: Operation timed out\r\nssh: connect to host node1 port 22: Operation timed out\r\n", "unreachable": true}
5 REPLIES 5

Re: Apache Metron - Single Node Dev install - Error "Host not reachable"

Rising Star

It looks like it's unhappy about your ssh control socket. Can you try changing the control_path in /Users/shishir.saxena/Downloads/incubator-metron-master/metron-deployment/vagrant/full-dev-platform/ansible.cfg to

[ssh_connection]

control_path = ~/.ssh/ansible-ssh-%%h-%%p-%%r

Highlighted

Re: Apache Metron - Single Node Dev install - Error "Host not reachable"

Thanks @David Lyle. I tried as you suggested. Still same output.

I also changed control_path to

control_path = %(directory)s/%%h-%%r as suggested elsewhere, but no effect.

Highlighted

Re: Apache Metron - Single Node Dev install - Error "Host not reachable"

@David Lyle

Here is the output of

ls -al ~/.ssh

drwx------   3 shishir.saxena  staff   102 Jul 13 08:59 .
drwxr-xr-x+ 32 shishir.saxena  staff  1088 Jul 26 15:38 ..
-rw-r--r--   1 shishir.saxena  staff   786 Jul 13 09:04 known_hosts

I don't see any id_rsa file in this directory. Should there be one ?

Highlighted

Re: Apache Metron - Single Node Dev install - Error "Host not reachable"

Here is the output of platform_info.sh

Metron 0.2.0BETA
fatal: Not a git repository (or any of the parent directories): .git
--
ansible 2.0.0.2
  config file = 
  configured module search path = Default w/o overrides
--
Vagrant 1.8.5
--
Python 2.7.10
--
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.5", arch: "x86_64", family: "mac"
--
Darwin INMAC-WKS946.local 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
Highlighted

Re: Apache Metron - Single Node Dev install - Error "Host not reachable"

Rising Star

If you ssh vagrant@node1, does it connect?