Master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster

hello i'm trying to install elasticsearch7.17.13 in my vmware workstation along with wazuh 4.5 follwing wazuh documentation

""/deployment-options/elastic-stack/distributed-deployment/elasticsearch-cluster/elasticsearch-multi-node-cluste ""

and i'm setting 3 node : 1 master and 2 data node
this the configuration of the first master node
"network.host: 10.10.10.5
node.name: elk-master
cluster.name: indexer_cluster
#cluster.initial_master_nodes:
# - elk-master
# - elk-worker1
# - elk-worker2
discovery.seed_hosts:
- 10.10.10.5
- 10.10.10.6
- 10.10.10.7 "
and this the configuration of the data node 1
"network.host: 10.10.10.6
node.name: elk-worker1
cluster.name: indexer_cluster
#cluster.initial_master_nodes:
# - elk-master
# - elk-worker1
# - elk-worker2
discovery.seed_hosts:
- 10.10.10.5
- 10.10.10.6
- 10.10.10.7
node.master: false "
and this is the configurrtion to the data node 2
" network.host: 10.10.10.7
node.name: elk-worker2
cluster.name: indexer_cluster
#cluster.initial_master_nodes:
# - elk-master
# - elk-worker1
#- elk-worker2
discovery.seed_hosts:
- 10.10.10.5
- 10.10.10.6
- 10.10.10.7
node.master: false
"
the firewall is stoped
this is part of the logs "

[2024-03-25T16:40:30,775][WARN ][o.e.d.PeerFinder         ] [elk-master] address [10.10.10.7:9300], node [null], requesting [false] connection failed: [elk-worker2][10.10.10.7:9300] non-master-eligible node found
[2024-03-25T16:40:31,776][WARN ][o.e.d.PeerFinder         ] [elk-master] address [10.10.10.7:9300], node [null], requesting [false] connection failed: [elk-worker2][10.10.10.7:9300] non-master-eligible node found
[2024-03-25T16:40:31,777][WARN ][o.e.d.PeerFinder         ] [elk-master] address [10.10.10.6:9300], node [null], requesting [false] connection failed: [elk-worker1][10.10.10.6:9300] non-master-eligible node found
[2024-03-25T16:40:32,780][WARN ][o.e.d.PeerFinder         ] [elk-master] address [10.10.10.6:9300], node [null], requesting [false] connection failed: [elk-worker1][10.10.10.6:9300] non-master-eligible node found
[2024-03-25T16:40:32,782][WARN ][o.e.d.PeerFinder         ] [elk-master] address [10.10.10.7:9300], node [null], requesting [false] connection failed: [elk-worker2][10.10.10.7:9300] non-master-eligible node found
[2024-03-25T16:40:33,782][WARN ][o.e.d.PeerFinder         ] [elk-master] address [10.10.10.6:9300], node [null], requesting [false] connection failed: [elk-worker1][10.10.10.6:9300] non-master-eligible node found
[2024-03-25T16:40:33,790][WARN ][o.e.d.PeerFinder         ] [elk-master] address [10.10.10.7:9300], node [null], requesting [false] connection failed: [elk-worker2][10.10.10.7:9300] non-master-eligible node found
"

this is other "

address [10.10.10.6:9300], node [null], requesting [false] connection failed: [elk-worker1][10.10.10.6:9300] non-master-eligible node found" }
{"type": "server", "timestamp": "2024-03-25T16:42:41,856Z", "level": "WARN", "component": "o.e.d.PeerFinder", "cluster.name": "indexer_cluster", "node.name": "elk-master", "message": "address [10.10.10.7:9300], node [null], requesting [false] connection failed: [elk-worker2][10.10.10.7:9300] non-master-eligible node found" }
{"type": "server", "timestamp": "2024-03-25T16:42:42,854Z", "level": "WARN", "component": "o.e.d.PeerFinder", "cluster.name": "indexer_cluster", "node.name": "elk-master", "message": "address [10.10.10.7:9300], node [null], requesting [false] connection failed: [elk-worker2][10.10.10.7:9300] non-master-eligible node found" }
{"type": "server", "timestamp": "2024-03-25T16:42:42,855Z", "level": "WARN", "component": "o.e.d.PeerFinder", "cluster.name": "indexer_cluster", "node.name": "elk-master", "message": "address [10.10.10.6:9300], node [null], requesting [false] connection failed: [elk-worker1][10.10.10.6:9300] non-master-eligible node found" }

"

This error persists, and I haven't been able to resolve it. Is there an error in my configuration?