# Elasticsearch shows "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster"

**URL:** https://forum.opensearch.org/t/elasticsearch-shows-master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped-v7-cluster/7655
**Category:** Open Source Elasticsearch and Kibana
**Created:** [November 17, 2021, 7:22am UTC](https://forum.opensearch.org/t/elasticsearch-shows-master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped-v7-cluster/7655 "2021-11-17T07:22:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shaimoh](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@shaimoh](https://forum.opensearch.org/u/shaimoh)
#### Post date: [November 17, 2021, 7:22am UTC](https://forum.opensearch.org/t/elasticsearch-shows-master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped-v7-cluster/7655/1 "2021-11-17T07:22:37Z")

</div>

Hello Team,

Im setting up a single node cluster and below is my elasticsearch.yml file

```auto
cluster.name: my-application

node.name: node-1
node.master: true
node.data: true

bootstrap.memory_lock: true

network.host: CZASMV-MSELK004

http.port: 9200

discovery.seed_hosts: ["CZASMV-MSELK004"]

cluster.initial_master_nodes: ["CZASMV-MSELK004"]

######## Start OpenDistro for Elasticsearch Security Demo Configuration ########
# WARNING: revise all the lines below before you go into production
opendistro_security.ssl.transport.pemcert_filepath: esnode.pem
opendistro_security.ssl.transport.pemkey_filepath: esnode-key.pem
opendistro_security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
opendistro_security.ssl.transport.enforce_hostname_verification: false
opendistro_security.ssl.http.enabled: true
opendistro_security.ssl.http.pemcert_filepath: esnode.pem
opendistro_security.ssl.http.pemkey_filepath: esnode-key.pem
opendistro_security.ssl.http.pemtrustedcas_filepath: root-ca.pem
opendistro_security.allow_unsafe_democertificates: true
opendistro_security.allow_default_init_securityindex: true
opendistro_security.authcz.admin_dn:
  - CN=kirk,OU=client,O=client,L=test, C=de

opendistro_security.audit.type: internal_elasticsearch
opendistro_security.enable_snapshot_restore_privilege: true
opendistro_security.check_snapshot_restore_write_privileges: true
opendistro_security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
opendistro_security.system_indices.enabled: true
opendistro_security.system_indices.indices: [".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opendistro-notifications-*", ".opendistro-notebooks", ".opendistro-asynchronous-search-response*"]
cluster.routing.allocation.disk.threshold_enabled: false
node.max_local_storage_nodes: 3

```

Once I start the cluster, I get the WARN message telling the below

```auto
[WARN][o.e.c.c.ClusterFormationFailureHelper] [node-1] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [CZASMV-MSELK004] to bootstrap a cluster: have discovered [{node-1}{QC2YR8ecRaWSJny4Vgr3mQ}{mpl_FOfmTJqQurBszJSwuw}{CZASMV-MSELK004}{10.200.59.35:9300}{dimr}]; discovery will continue using [] from hosts providers and [{node-1}{QC2YR8ecRaWSJny4Vgr3mQ}{mpl_FOfmTJqQurBszJSwuw}{CZASMV-MSELK004}{10.200.59.35:9300}{dimr}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

```

However I can see the master role is enabled as show below

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/9/9c41ef624380273a1bdc2a037b81e4140d3cd2c3.png)

Can someone please help me if im missing something here ? Thanks for your help

---

<div class="post-metadata">

### Author: ![oscark](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/oscark/32/866_2.png) [@oscark](https://forum.opensearch.org/u/oscark)
#### Post date: [November 17, 2021, 2:47pm UTC](https://forum.opensearch.org/t/elasticsearch-shows-master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped-v7-cluster/7655/2 "2021-11-17T14:47:56Z")

</div>

Might be a good start:

```auto
discovery.seed_hosts: ['node-1', 'node-2', 'node-3']
cluster.initial_master_nodes: ['node-1', 'node-2', 'node-3']

```

> **[Cluster formation](https://opensearch.org/docs/latest/opensearch/cluster/#step-4-configure-discovery-hosts-for-a-cluster)**
>
> Cluster formation

---

<div class="post-metadata">

### Author: ![mmamaenko](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@mmamaenko](https://forum.opensearch.org/u/mmamaenko)
#### Post date: [November 17, 2021, 2:57pm UTC](https://forum.opensearch.org/t/elasticsearch-shows-master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped-v7-cluster/7655/3 "2021-11-17T14:57:26Z")

</div>

discovery.type: single-node
