Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OS : Rocky Linux 9
Version : Opensearch 2.18
Method : rpm
IP Cluster : 10.251.0.207
IP Node 1 : 10.251.0.137
Describe the issue:
Hello,
I try to create an opensearch cluster. Everything seems to be ok, except while i browse : https://opensearch-cluster.local:9200 i get :
OpenSearch Security not initialized
My opensearch.yml :
#### cluster part ####
cluster.name: opensearch-cluster
node.name: opensearch-cluster_manager
node.roles: ["master"]
#node.roles: [ cluster_manager ]
cluster.initial_cluster_manager_nodes: ["opensearch-cluster_manager"]
discovery.seed_hosts: ["10.251.0.130"]
#### standard part ####
network.bind_host: 10.251.0.207
network.host: 0.0.0.0
#discovery.type: single-node
plugins.security.disabled: false
plugins.security.ssl.transport.pemcert_filepath: /etc/opensearch/node1.pem
plugins.security.ssl.transport.pemkey_filepath: /etc/opensearch/node1-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: /etc/opensearch/root-ca.pem
plugins.security.ssl.http.enabled: true
plugins.security.ssl.http.pemcert_filepath: /etc/opensearch/node1.pem
plugins.security.ssl.http.pemkey_filepath: /etc/opensearch/node1-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: /etc/opensearch/root-ca.pem
plugins.security.allow_default_init_securityindex: true
plugins.security.authcz.admin_dn:
- 'CN=ADMIN,OU=AXI,O=AXI,L=PARIS,ST=PARIS,C=FR'
plugins.security.nodes_dn:
# - 'CN=opensearch-cluster.local,OU=AXIGATE,O=AXI,L=PARIS,ST=PARIS,C=FR'
- 'CN=10.251.0.130,OU=AXI,O=AXI,L=PARIS,ST=PARIS,C=FR'
plugins.security.audit.type: internal_opensearch
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
I usually install only one VM with opensearch, opensearch-dashboards, logstash.
It’ok with the default installation and the “#standard part” in opensearch.yml
Actually, the log says : [opensearch-cluster_manager] Not yet initialized (you may need to run securityadmin)
But i can’t because when i try to user securityadmin i get this error :
/usr/share/opensearch/plugins/opensearch-security/tools/securityadmin.sh -cd /etc/opensearch/opensearch-security -rev -icl -nhnv -cacert /etc/opensearch/root-ca.pem -cert /etc/opensearch/admin.pem -key /etc/opensearch/admin-key.pem -h opensearch-cluster.local -p 9200 --accept-red-cluster
Security Admin v7
Will connect to opensearch-cluster.local:9200 ... done
Connected as "CN=ADMIN,OU=AXI,O=AXI,L=PARIS,ST=PARIS,C=FR"
OpenSearch Version: 2.18.0
Contacting opensearch cluster 'opensearch' ...
Clustername: opensearch-cluster
Clusterstate: RED
Number of nodes: 1
Number of data nodes: 0
.opendistro_security index already exists, so we do not need to create one.
ERR: .opendistro_security index state is RED.
Populate config from /etc/opensearch/opensearch-security/
Will update '/config' with /etc/opensearch/opensearch-security/config.yml
FAIL: Configuration for 'config' failed because of java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-6 [ACTIVE]
Any ideas ?
Nico