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

**URL:** <https://discuss.elastic.co/t/cluster-yellow-b-c-security-7-index-in-unassigned-state/322112>\
**Category:** Elasticsearch\
**Created:** [December 28, 2022, 4:22pm UTC](https://discuss.elastic.co/t/cluster-yellow-b-c-security-7-index-in-unassigned-state/322112 "2022-12-28T16:22:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitry\_Feigin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimitry_feigin/32/106190_2.png) [@Dimitry\_Feigin](https://discuss.elastic.co/u/Dimitry_Feigin)\
**Post date:** [December 28, 2022, 4:22pm UTC](https://discuss.elastic.co/t/cluster-yellow-b-c-security-7-index-in-unassigned-state/322112/1 "2022-12-28T16:22:16Z")

</div>

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:

```auto
.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

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 28, 2022, 6:48pm UTC](https://discuss.elastic.co/t/cluster-yellow-b-c-security-7-index-in-unassigned-state/322112/2 "2022-12-28T18:48:46Z")

</div>

What is the result of the following:

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

```

---

<div class="post-metadata">

**Author:** ![Dimitry\_Feigin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimitry_feigin/32/106190_2.png) [@Dimitry\_Feigin](https://discuss.elastic.co/u/Dimitry_Feigin)\
**Post date:** [December 28, 2022, 7:06pm UTC](https://discuss.elastic.co/t/cluster-yellow-b-c-security-7-index-in-unassigned-state/322112/3 "2022-12-28T19:06:53Z")

</div>

NM. We found and resolved this with

```auto
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 } }'

```

---

<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:** [January 25, 2023, 7:07pm UTC](https://discuss.elastic.co/t/cluster-yellow-b-c-security-7-index-in-unassigned-state/322112/4 "2023-01-25T19:07:43Z")

</div>

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