# Rolling deployment causing unassigned shards

**URL:** <https://forum.search-guard.com/t/rolling-deployment-causing-unassigned-shards/153>\
**Category:** Search Guard\
**Created:** [April 25, 2016, 9:17pm UTC](https://forum.search-guard.com/t/rolling-deployment-causing-unassigned-shards/153 "2016-04-25T21:17:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike1](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mike1](https://forum.search-guard.com/u/Mike1)\
**Post date:** [April 25, 2016, 9:17pm UTC](https://forum.search-guard.com/t/rolling-deployment-causing-unassigned-shards/153/1 "2016-04-25T21:17:58Z")

</div>

Is Search Guard an all or nothing deployment? I am running into a problem when trying to do a rolling deployment. I have 3 masters and 3 nodes in a test cluster. I deployed all 3 masters and 1 node with search guard and left the other 2 nodes without search guard. Shards will not be reassigned to the search guard node. Any idea how to fix this? In our production environment we do not have the option of deploying all of the nodes at the same time.

ES version: 1.7.5

Search Guard: 1.7.x

---

<div class="post-metadata">

**Author:** ![Mike1](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mike1](https://forum.search-guard.com/u/Mike1)\
**Post date:** [April 26, 2016, 4:25pm UTC](https://forum.search-guard.com/t/rolling-deployment-causing-unassigned-shards/153/2 "2016-04-26T16:25:08Z")

</div>

This turns out not to be an issue. It was an issue with my deployment scripts. Prior to deploying the node, we lock all the shards in the cluster via a curl command. Then after elasticsearch is deployed we unlock the shards via a curl command. All of the curl commands are using the newly deployed node. I did not pass any authentication information via curl. The shard lock works because the node did not have search guard. But after the deployment the shard unlock is ignored because the node does have search guard and no valid authentication was provided. Once I issued the curl command with valid authentication, the unassigned shards were allocated.
