Hi,
When my cluster is started, his status is in yellow:
{
"cluster_name" : "datawarehouse",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 6,
"number_of_data_nodes" : 0,
"active_primary_shards" : 0,
"active_shards" : 0,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 9,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 0.0
}
Also in parallel I check the kibana logs (because the service can't start), the error is:
{"type":"log","@timestamp":"2019-12-02T15:58:39Z","tags":["security","error"],"pid":6,"message":"Error registering Kibana Privileges with Elasticsearch for kibana-.kibana: [unavailable_shards_exception] at least one primary shard for the index [.security-7] is unavailable"}
I check my shards:
curl -k -u "elastic:xxxxx" "https://datawarehouse-es-http:9200/_c
at/shards?h=index,shard,prirep,state,unassigned.reason" --silent
.security-7 0 p UNASSIGNED INDEX_CREATED
.kibana_task_manager_1 0 p UNASSIGNED INDEX_CREATED
.kibana_task_manager_1 0 r UNASSIGNED INDEX_CREATED
.kibana_1 0 p UNASSIGNED INDEX_CREATED
.kibana_1 0 r UNASSIGNED INDEX_CREATED
.apm-agent-configuration 0 p UNASSIGNED INDEX_CREATED
.apm-agent-configuration 0 r UNASSIGNED INDEX_CREATED
Then I check the cluster allocation:
curl -k -u "elastic:xxxxx" "https://datawarehouse-es-http:9200/_c
luster/allocation/explain?pretty"
{
"index" : ".kibana_1",
"shard" : 0,
"primary" : true,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "INDEX_CREATED",
"at" : "2019-12-02T15:34:31.969Z",
"last_allocation_status" : "no_attempt"
},
"can_allocate" : "no",
"allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes"
}
Also I found this error in the elasticsearch logs: org.elasticsearch.action.UnavailableShardsException: at least one primary shard for the index [.security-7] is unavailable
I check the cluster settings:
curl -k -u "elastic:xxxxx" https://datawarehouse-es-http:9200/_cl
uster/settings?pretty
{
"persistent" : { },
"transient" : {
"cluster" : {
"routing" : {
"allocation" : {
"exclude" : {
"_name" : "none_excluded"
}
}
}
}
}
}
ECK version: 1.0.0-beta
elasticsearch version: 7.4.2
elasticsearch config: eck elastic config · GitHub (it's the config of 1 nodes)
cluster: 3 master & 3 data nodes
I tried to boot a new cluster, the problem persists
If someone can help me to understand / fix the issue it would be awesome.