metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 2xyo <...@git.apache.org>
Subject [GitHub] incubator-metron pull request #219: Fix support of ansible 2.1 in metron_ela...
Date Sun, 21 Aug 2016 12:14:46 GMT
GitHub user 2xyo opened a pull request:

    https://github.com/apache/incubator-metron/pull/219

    Fix support of ansible 2.1 in metron_elasticsearch_templates - Fix  #153

    This pull request add the option `body_format: "json"` to support the upload of json.
    
    Fix the following error during the installation with ansible 2.1.1.0:
    ```
    TASK [metron_elasticsearch_templates : Wait for Index to Become Available] *****
    ok: [node1]
    
    TASK [metron_elasticsearch_templates : Add Elasticsearch templates for topologies] ***
    failed: [node1] (item=/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/yaf_index.template)
=> {"content": "", "failed": true, "item": "/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/yaf_index.template",
"msg": "Status code was not [200]: An unknown error occurred: sendall() argument 1 must be
string or buffer, not dict", "redirected": false, "status": -1, "url": "http://node1:9200/_template/yaf_index"}
    failed: [node1] (item=/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/snort_index.template)
=> {"content": "", "failed": true, "item": "/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/snort_index.template",
"msg": "Status code was not [200]: An unknown error occurred: sendall() argument 1 must be
string or buffer, not dict", "redirected": false, "status": -1, "url": "http://node1:9200/_template/snort_index"}
    failed: [node1] (item=/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/bro_index.template)
=> {"content": "", "failed": true, "item": "/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/bro_index.template",
"msg": "Status code was not [200]: An unknown error occurred: sendall() argument 1 must be
string or buffer, not dict", "redirected": false, "status": -1, "url": "http://node1:9200/_template/bro_index"}
    
    NO MORE HOSTS LEFT *************************************************************
    	to retry, use: --limit @playbooks/metron_full_install.retry
    
    PLAY RECAP *********************************************************************
    node1                      : ok=7    changed=3    unreachable=0    failed=1   
    
    ```
    
     - Fix closed issue #153.
     - Not tested with vagrant! (should work..)
     - Ansible documentation of `body_format`: http://docs.ansible.com/ansible/uri_module.html
and ansible/ansible-modules-core#1011.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/2xyo/incubator-metron patch-1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/219.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #219
    
----
commit 6651cf198c8e46375e5108558619ad340fa12bc3
Author: 2*yo <yohann@lepage.info>
Date:   2016-08-21T12:14:16Z

    Fix support of ansible 2.1 in metron_elasticsearch_templates - Fix  #153
    
    This pull request add the option `body_format: "json"` to support the upload of json.
    
    Fix the following error during the installation with ansible 2.1.1.0:
    ```
    TASK [metron_elasticsearch_templates : Wait for Index to Become Available] *****
    ok: [node1]
    
    TASK [metron_elasticsearch_templates : Add Elasticsearch templates for topologies] ***
    failed: [node1] (item=/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/yaf_index.template)
=> {"content": "", "failed": true, "item": "/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/yaf_index.template",
"msg": "Status code was not [200]: An unknown error occurred: sendall() argument 1 must be
string or buffer, not dict", "redirected": false, "status": -1, "url": "http://node1:9200/_template/yaf_index"}
    failed: [node1] (item=/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/snort_index.template)
=> {"content": "", "failed": true, "item": "/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/snort_index.template",
"msg": "Status code was not [200]: An unknown error occurred: sendall() argument 1 must be
string or buffer, not dict", "redirected": false, "status": -1, "url": "http://node1:9200/_template/snort_index"}
    failed: [node1] (item=/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/bro_index.template)
=> {"content": "", "failed": true, "item": "/home/yoyo/incubator-metron/metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/bro_index.template",
"msg": "Status code was not [200]: An unknown error occurred: sendall() argument 1 must be
string or buffer, not dict", "redirected": false, "status": -1, "url": "http://node1:9200/_template/bro_index"}
    
    NO MORE HOSTS LEFT *************************************************************
    	to retry, use: --limit @playbooks/metron_full_install.retry
    
    PLAY RECAP *********************************************************************
    node1                      : ok=7    changed=3    unreachable=0    failed=1   
    
    ```
    
     - Fix closed issue #153.
     - Not tested with vagrant! (should work..)
     - Ansible documentation of `body_format`: http://docs.ansible.com/ansible/uri_module.html
and ansible/ansible-modules-core#1011.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message