OpenSearch Security not initialized in Cluster nodes

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

OpenSearch 2.19.1
Logstash 8.17.3
Ubuntu 20.04

Describe the issue:

Im trying to create a cluster containing 2 Opensearch nodes with these configurations

Configuration:

Node 1:




Node 2:




But when i start the cluster, it only shows the node 1 which i use as the cluster manager
image
the second node has this error
image

Then i check the logs of the second node in /var/log/bkcs.log, and it shows something related to certificates i assume:




Before trying to cluster these 2 nodes, i have them running seperately with 2 different Opensearch Dashboards and they were running flawlessly. My purpose of these cluster is to use only 1 Opensearch Dashboard to receive data from both of those nodes.

Thanks for reading my topic, I appreciate any help
Gray

Hi @gray653,

I do not think there is (at all or easy) way merge two OpenSearch clusters into a single cluster.

You will need to create a new node and join an existing cluster before that node is initiated as a cluster itself - I hope that makes sense.

If you have data on both clusters, you can use the reindex API to transfer that data.

Let me know if you have any further questions.

Best,
mj

so you mean that if i want a new cluster with 2 nodes, i have to start all over again from configuring Opensearch when im installing it because the certificates now are already initialized for the one-node cluster right?

@gray653, not both just one of the and you can use the same certificates if you wish so.

I have not yet had a closer look at your certificates, but first things first.

You can always test with security plugin disabled and make sure you nodes forms a cluster.

Let me know when you get there and/or if you need any further help.

best,
mj

I had the same problem when I was trying to configure multiple nodes on a cluster like that, before that I also created 2 nodes with 2 separate dashboards, tried to merge them and show data on the same dashboard but it didn’t work. I had also disabled the security plugin to test as you said.

Do i need to reinstall everything from scratch including creating the following 2 nodes, joining them to the same cluster before both nodes consider themselves as singer-nodes and then visualize their data on the same dashboard (my data is not that important because i’m just testing :>)

many thanks
hoang

Hi @hoanghn,

You can keep one of the nodes (clusters) and reinstall the other one. You can always add nodes to your cluster, but you cannot merge clusters, if that makes sense.

Best,
mj

1 Like