# Azure cloud discovery plugin not working for 6.7.2

**URL:** <https://discuss.elastic.co/t/azure-cloud-discovery-plugin-not-working-for-6-7-2/201141>\
**Category:** Elasticsearch\
**Created:** [September 26, 2019, 5:45am UTC](https://discuss.elastic.co/t/azure-cloud-discovery-plugin-not-working-for-6-7-2/201141 "2019-09-26T05:45:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shankar\_s](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankar_s/32/54569_2.png) [@shankar\_s](https://discuss.elastic.co/u/shankar_s)\
**Post date:** [September 26, 2019, 5:45am UTC](https://discuss.elastic.co/t/azure-cloud-discovery-plugin-not-working-for-6-7-2/201141/1 "2019-09-26T05:45:16Z")

</div>

i'm trying to build up the 3-master 3-nodes elastic search stack in azure using vm.  
when i configure the elasticsearch with azure cloud discovery plugin i dont see that both master can communicate & it is not able to join the cluster.  
Elasticsearch version: 6.7.2  
os: ubuntu 16.04 LTS  
what im trying to solve is,  
i wanted elasticsearch to discover new nodes and join to the cluster automatically.

Please suggest how i can reslove this issue and implement node autodiscovery?

my current elastic search.yml looks like below:  
cluster.name: "esprod"  
node.name: "master-3"  
path.logs: /var/log/elasticsearch  
path.data: /var/lib/elasticsearch  
discovery.zen.minimum\_master\_nodes: 2  
node.master: true  
node.data: false  
network.host: 0.0.0.0  
cloud:  
azure:  
management:  
subscription.id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx  
cloud.service.name: esprod  
keystore:  
path: /etc/elasticsearch/azurekeystore.pkcs12  
password: xxxxxxxxx  
discovery:  
zen.hosts\_provider: azure  
azure:  
host:  
type: private\_ip  
endpoint:  
name: elasticsearch  
i tested the pkcs12 which is fine.

Logs:  
**master-3:**  
[2019-09-25T17:55:04,722][WARN][o.e.d.z.ZenDiscovery] [master-3] not enough master nodes discovered during pinging (found [[Candidate{node={master-3}{Fpo\_LFhORbShL26UAUrwdw}{ZDI1vbyNRnGCJHgqUl5xPA}{172.16.0.5}{172.16.0.5:9300}{ml.machine\_memory=8341356544, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true}, clusterStateVersion=-1}]], but needed [2]), pinging again  
[2019-09-25T17:57:08,006][INFO][o.a.h.i.e.RetryExec] [master-3] I/O exception (java.net.SocketException) caught when processing request to {s}-\>[https://management.core.windows.net:443](https://management.core.windows.net:443): Connection reset  
[2019-09-25T17:57:08,007][INFO][o.a.h.i.e.RetryExec] [master-3] Retrying request to {s}-\>[https://management.core.windows.net:443](https://management.core.windows.net:443)  
[2019-09-25T17:57:08,350][WARN][o.e.d.a.c.AzureUnicastHostsProvider] [master-3] can not get list of azure nodes: [can not get list of azure nodes]. Returning empty list of nodes.  
[2019-09-25T17:57:41,644][WARN][o.e.d.a.c.AzureUnicastHostsProvider] [master-3] can not get list of azure nodes: [can not get list of azure nodes]. Returning empty list of nodes.  
[2019-09-25T17:58:15,042][WARN][o.e.d.a.c.AzureUnicastHostsProvider] [master-3] can not get list of azure nodes: [can not get list of azure nodes]. Returning empty list of nodes.  
[2019-09-25T17:58:48,523][WARN][o.e.d.a.c.AzureUnicastHostsProvider] [master-3] can not get list of azure nodes: [can not get list of azure nodes]. Returning empty list of nodes.  
[2019-09-25T17:59:21,855][WARN][o.e.d.a.c.AzureUnicastHostsProvider] [master-3] can not get list of azure nodes: [can not get list of azure nodes]. Returning empty list of nodes.  
**master-2:**  
2019-09-25T19:08:24,332][WARN][o.e.d.a.c.AzureUnicastHostsProvider] [master-2] can not get list of azure nodes: [can not get list of azure nodes]. Returning empty list of nodes.  
[2019-09-25T19:08:27,338][INFO][o.e.d.z.ZenDiscovery] [master-2] failed to send join request to master [{master-3}{Fpo\_LFhORbShL26UAUrwdw}{ZDI1vbyNRnGCJHgqUl5xPA}{172.16.0.5}{172.16.0.5:9300}{ml.machine\_memory=8341356544, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true}], reason [RemoteTransportException[[master-3][172.16.0.5:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[master-2][127.0.0.1:9300] handshake failed. unexpected remote node {master-3}{Fpo\_LFhORbShL26UAUrwdw}{ZDI1vbyNRnGCJHgqUl5xPA}{172.16.0.5}{172.16.0.5:9300}{ml.machine\_memory=8341356544, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true}]; ]  
[2019-09-25T19:08:27,635][WARN][o.e.d.a.c.AzureUnicastHostsProvider] [master-2] can not get list of azure nodes: [can not get list of azure nodes]. Returning empty list of nodes.  
[2019-09-25T19:08:30,640][INFO][o.e.d.z.ZenDiscovery] [master-2] failed to send join request to master [{master-3}{Fpo\_LFhORbShL26UAUrwdw}{ZDI1vbyNRnGCJHgqUl5xPA}{172.16.0.5}{172.16.0.5:9300}{ml.machine\_memory=8341356544, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true}], reason [RemoteTransportException[[master-3][172.16.0.5:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[master-2][127.0.0.1:9300] handshake failed. unexpected remote node {master-3}{Fpo\_LFhORbShL26UAUrwdw}{ZDI1vbyNRnGCJHgqUl5xPA}{172.16.0.5}{172.16.0.5:9300}{ml.machine\_memory=8341356544, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true}];

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 24, 2019, 5:45am UTC](https://discuss.elastic.co/t/azure-cloud-discovery-plugin-not-working-for-6-7-2/201141/2 "2019-10-24T05:45:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
