Comment 39 for bug 822979

Revision history for this message
amir sanjar (asanjar) wrote :

problem:
  elasticsearch node discovery doesn't work. (tested on local trusty)

How to recreate :

create five elk nodes as follow:
  juju deploy local:trusty/elasticsearch master
  juju deploy local:trusty/elasticsearch slave
  juju add-unit -n 3 slave

however health check (by below json command) of master node revealed
node discovery has been unsuccessful.

 curl -XGET 'http://10.0.3.120:9200/_cluster/health?pretty=true'
{
  "cluster_name" : "elasticsearch",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1, <== should be 5
  "number_of_data_nodes" : 1, <== should be 5
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0
}

Expected discovery :
curl -XGET 'http://10.0.3.114:9200/_cluster/health?pretty=true'
{
  "cluster_name" : "elasticsearch",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 5,
  "number_of_data_nodes" : 5,
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0
}