Cluster yellow b/c .security-7 index in unassigned state

We started the upgrade of the cluster that was in green state. The upgrade (through ansible) failed on node1 while it was not able to download rpm. We found the issue and fixed. Now the cluster after restart w/o any actual upgrade started to be in yellow state due to .security-7 index:

.security-7                                  0     p      STARTED                    <IP>  node3
.security-7                                  0     r      UNASSIGNED

What can we do? We can't start upgrade while cluster health is yellow

What is the result of the following:

GET _cluster/allocation/explain
{
  "index": ".security-7",
  "shard": 0,
  "primary": false
}

NM. We found and resolved this with

curl -k -u ppp:pp 'https://${HOSTNAME}:9201/_cluster/settings'
{"persistent":{"cluster":{"routing":{"allocation":{"enable":"primaries"}}}},"transient":{}}

curl -k -u ppp:pp -XPUT 'https://${HOSTNAME}:9201/_cluster/settings'
-H "Content-Type: application/json" -d '{ "persistent": { "cluster.routing.allocation.enable" : null } }'

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