[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-22 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
+1

Thanks for the fix @nickwallen ! I have seen this issue previously as well.

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` to see 
that the ES mpack install goes through fine:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
ok: [node1]
```



---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
+1

Thanks for the fix @nickwallen ! I have bumped into this issue previously 
as well.

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` to see 
that the ES mpack install goes through fine:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
ok: [node1]
```



---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
+1

Thanks for the fix @nickwallen ! I have bumped into this issue previously 
as well.

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` to see 
that the ES mpack install goes through fine:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
ok: [node1]
```



---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
+1

Thanks for the fix @nickwallen ! I have seen this issue previously as well.

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` to see 
that the ES mpack install goes through fine:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
ok: [node1]
```



---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
+1

Thanks for the fix @nickwallen ! I have seen this issue previously as well.

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` to see 
that the ES mpack install goes through fine:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
ok: [node1]
```



---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
+1

Thanks for the fix @nickwallen ! I have seen this issue previously as well.

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and 
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` to see 
that the ES mpack install goes through fine:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
ok: [node1]
```


---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
+1

Thanks for the fix @nickwallen !

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error (which I have also seen previously many 
times!):
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and 
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` to see 
that the ES mpack install goes through fine:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
ok: [node1]
```


---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
Hey @nickwallen , I am seeing an error at the `ambari_gather_facts : Ask 
Ambari: core_site_tag` step when trying to validate the fix. 

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and 
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` after 
which I am seeing the below error:
```

TASK [ambari_gather_facts : Ask Ambari: namenode_host] 
*
changed: [node1]

TASK [ambari_gather_facts : set_fact] 
**
ok: [node1]

TASK [ambari_gather_facts : Ask Ambari: core_site_tag] 
*
fatal: [node1]: FAILED! => {"changed": true, "cmd": "curl -s -u admin:admin 
-X GET -H \"X-Requested-By: ambari\" 
'http://node1:8080/api/v1/clusters/metron_cluster/hosts/node1/host_components/NAMENODE'
 | python -c 'import sys, json; print 
json.load(sys.stdin)[\"HostRoles\"][\"actual_configs\"][\"core-site\"][\"default\"]'",
 "delta": "0:00:00.060271", "end": "2018-10-21 23:19:31.928568", "msg": 
"non-zero return code", "rc": 1, "start": "2018-10-21 23:19:31.868297", 
"stderr": "Traceback (most recent call last):\n  File \"\", line 1, in 
\nKeyError: 'core-site'", "stderr_lines": ["Traceback (most recent call 
last):", "  File \"\", line 1, in ", "KeyError: 'core-site'"], 
"stdout": "", "stdout_lines": []}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

Am I missing something?


---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
Hey @nickwallen , I am seeing an error at the `ambari_gather_facts : Ask 
Ambari: core_site_tag` step when trying to validate the fix. 

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and 
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` after 
which I am seeing the below error:
```

TASK [ambari_gather_facts : Ask Ambari: namenode_host] 
*
changed: [node1]

TASK [ambari_gather_facts : set_fact] 
**
ok: [node1]

TASK [ambari_gather_facts : Ask Ambari: core_site_tag] 
*
fatal: [node1]: FAILED! => {"changed": true, "cmd": "curl -s -u admin:admin 
-X GET -H \"X-Requested-By: ambari\" 
'http://node1:8080/api/v1/clusters/metron_cluster/hosts/node1/host_components/NAMENODE'
 | python -c 'import sys, json; print 
json.load(sys.stdin)[\"HostRoles\"][\"actual_configs\"][\"core-site\"][\"default\"]'",
 "delta": "0:00:00.060271", "end": "2018-10-21 23:19:31.928568", "msg": 
"non-zero return code", "rc": 1, "start": "2018-10-21 23:19:31.868297", 
"stderr": "Traceback (most recent call last):\n  File \"\", line 1, in 
\nKeyError: 'core-site'", "stderr_lines": ["Traceback (most recent call 
last):", "  File \"\", line 1, in ", "KeyError: 'core-site'"], 
"stdout": "", "stdout_lines": []}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

Am I missing something?


---


[GitHub] metron issue #1244: METRON-1839 Install Elasticsearch MPack Step in Ansible ...

2018-10-21 Thread anandsubbu
Github user anandsubbu commented on the issue:

https://github.com/apache/metron/pull/1244
  
Hey @nickwallen , I am seeing an error at the `ambari_gather_facts : Ask 
Ambari: core_site_tag` step when trying to validate the fix. 

1. Re-created the problem first by:
a) Running `vagrant up`
b) Then attempting `vagrant provision` again
c) Noticed the following error:
```
TASK [ambari_master : Install Elasticsearch MPack on Ambari Host] 
**
fatal: [node1]: FAILED! => {"changed": true, "cmd": "ambari-server 
install-mpack --mpack=/tmp/elasticsearch_mpack-0.6.1.0.tar.gz", "delta": 
"0:00:00.433435", "end": "2018-10-21 18:12:29.939320", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-21 18:12:29.505885", "stderr": "", 
"stderr_lines": [], "stdout": "Using python  /usr/bin/python\nInstalling 
management pack\nERROR: Management pack elasticsearch-ambari.mpack-5.6.2 
already installed!\nERROR: Exiting with exit code -1. \nREASON: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "stdout_lines": ["Using 
python  /usr/bin/python", "Installing management pack", "ERROR: Management pack 
elasticsearch-ambari.mpack-5.6.2 already installed!", "ERROR: Exiting with exit 
code -1. ", "REASON: Management pack elasticsearch-ambari.mpack-5.6.2 already 
installed!"]}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

2. Destroyed the VM, applied the fix and 
a) Running `vagrant up`
b) Then ran `vagrant --ansible-skip-tags="build,sensors" provision` after 
which I am seeing the below error:
```

TASK [ambari_gather_facts : Ask Ambari: namenode_host] 
*
changed: [node1]

TASK [ambari_gather_facts : set_fact] 
**
ok: [node1]

TASK [ambari_gather_facts : Ask Ambari: core_site_tag] 
*
fatal: [node1]: FAILED! => {"changed": true, "cmd": "curl -s -u admin:admin 
-X GET -H \"X-Requested-By: ambari\" 
'http://node1:8080/api/v1/clusters/metron_cluster/hosts/node1/host_components/NAMENODE'
 | python -c 'import sys, json; print 
json.load(sys.stdin)[\"HostRoles\"][\"actual_configs\"][\"core-site\"][\"default\"]'",
 "delta": "0:00:00.060271", "end": "2018-10-21 23:19:31.928568", "msg": 
"non-zero return code", "rc": 1, "start": "2018-10-21 23:19:31.868297", 
"stderr": "Traceback (most recent call last):\n  File \"\", line 1, in 
\nKeyError: 'core-site'", "stderr_lines": ["Traceback (most recent call 
last):", "  File \"\", line 1, in ", "KeyError: 'core-site'"], 
"stdout": "", "stdout_lines": []}
to retry, use: --limit 
@/Users/asubramanian/Desktop/Metron/anand-metron-fork/metron-latest/metron/metron-deployment/development/centos6/ansible/playbook.retry
```

Am I missing something?


---