Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Make sure Elasticsearch is running before proceeding" test is broken #184

Closed
kravietz opened this issue May 23, 2019 · 2 comments
Closed

Comments

@kravietz
Copy link
Contributor

The test in roles/wazuh-ansible/roles/elastic-stack/ansible-elasticsearch/tasks/main.yml line 87 only works if the elasticsearch_network_host is set to localhost but ElasticSearch uses this parameter to configure its bind address, so in many real-world instances it will be set to 0.0.0.0 or ::, in which case the test fails.

- name: Make sure Elasticsearch is running before proceeding
  wait_for: host={{ elasticsearch_network_host }} port={{ elasticsearch_http_port }} delay=3 timeout=300
  tags:
    - configure
    - init           
@manuasir
Copy link
Contributor

Hello @kravietz ,

Thanks for reporting this, we will take a look at it and will fix it as soon as possible.

Regards

@manuasir manuasir self-assigned this May 23, 2019
@manuasir manuasir added this to the 30th week sprint milestone Jul 22, 2019
@manuasir manuasir assigned rshad and unassigned manuasir Jul 22, 2019
manuasir pushed a commit that referenced this issue Jul 24, 2019
Fixes for Elasticsearch issue #184 -  Testing Elasticsearch functionality when network.host is not localhost.
@manuasir
Copy link
Contributor

Done here #212 .

Thanks @kravietz , as always, for your help. Please, don't hesitate to collaborate again, it will be much appreciated.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants