# Cannot allocate replica shard to a node with version \[7.10.2\] since this is older than the primary version \[1.2.4\]

**URL:** <https://forum.opensearch.org/t/cannot-allocate-replica-shard-to-a-node-with-version-7-10-2-since-this-is-older-than-the-primary-version-1-2-4/11375>\
**Category:** OpenSearch\
**Tags:** upgrade\
**Created:** [October 31, 2022, 7:13am UTC](https://forum.opensearch.org/t/cannot-allocate-replica-shard-to-a-node-with-version-7-10-2-since-this-is-older-than-the-primary-version-1-2-4/11375 "2022-10-31T07:13:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.opensearch.org/u/Maha)\
**Post date:** [October 31, 2022, 7:13am UTC](https://forum.opensearch.org/t/cannot-allocate-replica-shard-to-a-node-with-version-7-10-2-since-this-is-older-than-the-primary-version-1-2-4/11375/1 "2022-10-31T07:13:14Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
When we upgrade our application from elastic search to opensearch this error is thrown in logs and there is the delay in upgrade.

**Describe the issue** :

helm upgrade get successful result, we have one of the data pods gets hanging on until its restarted to complete upgrade

**Configuration** :

**Relevant Logs or Screenshots** :

OpenSearch status: “yellow”  
Unassigned/Initializing shards:  
app-debug-logs-2022.10.18 1 r UNASSIGNED INDEX\_CREATED  
app-debug-logs-2022.10.18 4 r UNASSIGNED INDEX\_CREATED  
app-debug-logs-2022.10.18 2 r UNASSIGNED INDEX\_CREATED  
app-debug-logs-2022.10.18 0 r UNASSIGNED INDEX\_CREATED  
There are still some UNASSIGNED/INITIALIZING shards: 4  
above r shards can not be allocated, and the reason is because:

{  
“index” : “logs-2022.10.18”,  
“shard” : 1,  
“primary” : false,  
“current\_state” : “unassigned”,  
“unassigned\_info” : {  
“reason” : “INDEX\_CREATED”,  
“at” : “2022-10-18T03:14:50.840Z”,  
“last\_allocation\_status” : “no\_attempt”  
},  
“can\_allocate” : “no”,  
“allocate\_explanation” : “cannot allocate because allocation is not permitted to any of the nodes”,  
“node\_allocation\_decisions” : [  
{  
“node\_id” : “zzzzzzzzzzzzzg”,  
“node\_name” : “cvsdsdddfdfdata-0”,  
“transport\_address” : “zzzzz:1111”,  
“node\_decision” : “no”,  
“weight\_ranking” : 1,  
“deciders” : [  
{  
“decider” : “node\_version”,  
“decision” : “NO”,  
“explanation” : “cannot allocate replica shard to a node with version [7.10.2] since this is older than the primary version [1.2.4]”  
}  
]  
},  
{  
“node\_id” : “zzzzzzzzzzzQ”,  
“node\_name” : “aaaaaa1”,  
“transport\_address” : “aaaaaa:0000”,  
“node\_attributes” : {  
“shard\_indexing\_pressure\_enabled” : “true”  
},  
“node\_decision” : “no”,  
“weight\_ranking” : 2,  
“deciders” : [  
{  
“decider” : “same\_shard”,  
“decision” : “NO”,  
“explanation” : “a copy of this shard is already allocated to this node [[logs-2022.10.18][1], node[LGWgkymERFG2jD-q-sjpAQ], [P], s[STARTED], a[id=I9i3fyapSwKK0MqrFDXpMQ]]”  
}  
]  
}  
]  
}
