canonical / opensearch-operator

OpenSearch operator
Apache License 2.0
9 stars 5 forks source link

[DPE-4557] fix timeout when initializing the security index #321

Closed reneradoi closed 3 weeks ago

reneradoi commented 3 weeks ago

Issue

https://github.com/canonical/opensearch-operator/issues/320

Solution

When the last unit in a cluster is stopping, it adds the voting_config_exclusion, but doesn't delete it anymore (because all units are already stopped). It is then persisting on disk. If the storage is reused and the first new unit starts, it may happen that the new unit can't become cluster manager because it's not possible to reach quorum.

Therefore the last unit stopping should not add a voting exclusion.