Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Fixed
-
1.13.0
-
None
-
None
-
Yes
-
Yes
Description
Operator v 1.13
GKE 1.24
Problem: when I delete the cluster and keep the PVCs and Secrets, and then create the cluster with the same custom resource, the cluster is stuck in initializing state.
I see the following error in the operator log:
Percona Server for MongoDB server version: v5.0.11-10\nuncaught exception: Error: couldn't add user: command createUser requires authentication :
Steps to reproduce:
- deploy the cluster with default cr, disabled sharding and expose replica set nodes
- delete the cluster after it is ready
- redeploy the cluster using the same cr
With pausing the cluster is not starting as well, but I see different error in operator log:
"error": "force reconfig to recover: write mongo config: replSetReconfig: (NotWritablePrimary) New config is rejected :: caused by :: replSetReconfig should only be run on a writable PRIMARY. Current state REMOVED;"