Team, I setup percona mongodb cluster using helm. So after using for some time the db, I expanded volume by just editing pvc for replicas( 0-2). Now cluster is in error state due to reconciler errors in operator pods and also description of psmdb cluster. Though pods are up and running and also mongosh working fine. I believe it will create issue in future if anything happens in order to recover pods or something. I saw this problem in first hand when I tried to enable PMM after updating secret data for PMM_SERVER_API_KEY in k8s secret of mongodb cluster. Not able to enable PMM for this cluster due to reconciler issues.
can you please suggest some solution?
You can check error logs.
2025-01-31T16:29:13.591Z ERROR Reconciler error {"controller": "psmdb-controller", "object": {"name":"prodeu-psmdb-db","namespace":"mongodb"}, "namespace": "mongodb", "name": "prodeu-psmdb-db", "reconcileID": "05feb733-8767-4605-b015-3a04ee4f36ad", "error": "reconcile statefulsets: reconcile StatefulSet for rs0: update StatefulSet prodeu-psmdb-db-rs0: StatefulSet.apps \"prodeu-psmdb-db-rs0\" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden", "errorVerbose": "reconcile StatefulSet for rs0: update StatefulSet prodeu-psmdb-db-rs0: StatefulSet.apps \"prodeu-psmdb-db-rs0\" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden\ngithub.com/percona/percona-server-mongodb-operator/pkg/controller/perconaservermongodb.(*ReconcilePerconaServerMongoDB).reconcileReplsets\n\t/go/src/github.com/percona/percona-server-mongodb-operator/pkg/controller/perconaservermongodb/psmdb_controller.go:489