You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each time it failed to bring up the cluster. I was getting "OpenSearch Security not initialized" errors in the logs and the accepted answer seems to be to run this command:
Will connect to wazind01.domain.local:9200 ... done
Connected as "CN=admin,OU=Wazuh,O=Wazuh,L=California,C=US"
OpenSearch Version: 2.16.0
Contacting opensearch cluster 'opensearch' and wait for YELLOW clusterstate ...
Cannot retrieve cluster state due to: 30,000 milliseconds timeout on connection http-outgoing-2 [ACTIVE]. This is not an error, will keep on trying ...
Root cause: java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-2 [ACTIVE] (java.net.SocketTimeoutException/java.net.SocketTimeoutException)
* Try running securityadmin.sh with -icl (but no -cn) and -nhnv (If that works you need to check your clustername as well as hostnames in your TLS certificates)
* Make sure that your keystore or PEM certificate is a client certificate (not a node certificate) and configured properly in opensearch.yml
* If this is not working, try running securityadmin.sh with --diagnose and see diagnose trace log file)
* Add --accept-red-cluster to allow securityadmin to operate on a red cluster.
Eventually I decided to take DNS resolution out of the equation and changed the ansible hosts file to:
I tried several times to create a cluster using v4.10.1 wazuh-production-ready.yml with FQDNs in the ansible hosts file,e.g.
Each time it failed to bring up the cluster. I was getting "OpenSearch Security not initialized" errors in the logs and the accepted answer seems to be to run this command:
/usr/share/wazuh-indexer/plugins/opensearch-security/tools/securityadmin.sh -cd /usr/etc/wazuh-indexer/opensearch-security/ -nhnv -icl -cacert /etc/wazuh-indexer/certs/root-ca.pem -cert /etc/wazuh-indexer/certs/admin.pem -key /etc/wazuh-indexer/certs/admin-key.pem -h wazind01.domain.local
Which looped with timeouts:
Eventually I decided to take DNS resolution out of the equation and changed the ansible hosts file to:
And the playbook works, and I now have a working cluster. DNS resolution has been tested from all nodes and is working correctly.
The text was updated successfully, but these errors were encountered: