[ 
https://issues.apache.org/jira/browse/METRON-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nick Allen updated METRON-1839:
-------------------------------
    Description: 
When re-provisioning the development environment, the "Install Elasticsearch 
MPack on Ambari Host" step will fail.  This step needs to be idempotent so it 
succeeds when re-provisioned.

 

Steps to Replicate:

1. Start the development environment.
{code:java}
cd metron-deployment/development/centos6
vagrant up{code}
2. Re-provision the environment.
{code:java}
vagrant provision{code}
This will fail with the following error message.
{code:java}
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.360554", "end": "2018-10-20 17:13:54.836885", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-20 17:13:54.476331", "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/nallen/tmp/metron-pr1238/metron-deployment/development/centos6/ansible/playbook.retry

PLAY RECAP *********************************************************************
node1 : ok=36 changed=5 unreachable=0 failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
{code}

  was:
When re-provisioning the development environment, the "Install Elasticsearch 
MPack on Ambari Host" step will fail.  This step needs to be idempotent so it 
succeeds when re-provisioned.
{code:java}
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.360554", "end": "2018-10-20 17:13:54.836885", "msg": "non-zero return 
code", "rc": 255, "start": "2018-10-20 17:13:54.476331", "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/nallen/tmp/metron-pr1238/metron-deployment/development/centos6/ansible/playbook.retry

PLAY RECAP *********************************************************************
node1 : ok=36 changed=5 unreachable=0 failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
{code}


> Install Elasticsearch MPack Step in Ansible Not Idempotent
> ----------------------------------------------------------
>
>                 Key: METRON-1839
>                 URL: https://issues.apache.org/jira/browse/METRON-1839
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Nick Allen
>            Assignee: Nick Allen
>            Priority: Major
>
> When re-provisioning the development environment, the "Install Elasticsearch 
> MPack on Ambari Host" step will fail.  This step needs to be idempotent so it 
> succeeds when re-provisioned.
>  
> Steps to Replicate:
> 1. Start the development environment.
> {code:java}
> cd metron-deployment/development/centos6
> vagrant up{code}
> 2. Re-provision the environment.
> {code:java}
> vagrant provision{code}
> This will fail with the following error message.
> {code:java}
> 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.360554", "end": "2018-10-20 17:13:54.836885", "msg": "non-zero 
> return code", "rc": 255, "start": "2018-10-20 17:13:54.476331", "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/nallen/tmp/metron-pr1238/metron-deployment/development/centos6/ansible/playbook.retry
> PLAY RECAP 
> *********************************************************************
> node1 : ok=36 changed=5 unreachable=0 failed=1
> Ansible failed to complete successfully. Any error output should be
> visible above. Please fix these errors and try again.
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to