Uploaded image for project: 'Percona Operator for MongoDB'
  1. Percona Operator for MongoDB
  2. K8SPSMDB-843

Cannot start the cluster after it was deleted

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 1.13.0
    • 1.14.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:

      1. deploy the cluster with default cr, disabled sharding and expose replica set nodes
      2. delete the cluster after it is ready
      3. 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;"

      Attachments

        Activity

          People

            Unassigned Unassigned
            sergey.pronin Sergey Pronin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist