-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate StatefulSet ControllerRevision, PerconaServerMongoDB status stucks in "Initializing" #1557
Labels
Comments
Attach MongoDB DB Helm values
|
I experience a very similar issue, only that I am not using ArgoCD at all. I am deploying using Helm in an EKS cluster (k8s v1.30) and, although the correct number of replicas are created, the psmdb operator remains stuck in initialization state. This issue has been introduced with operator version 1.16.x, while the versions 1.14 and 1.15 behaved as expected. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Report
The PerconaServerMongoDB status stucks in "Initializing" because the field "status.updatedReplicas" is always smaller than "status.replicas" which is caused by multiple ControllerRevision
More about the problem
When creating new MongoDB cluster from the Helm chart percona/psmdb-db in ArgoCD, there are two controller revisions of the Config Server and ReplicaSet StatefulSet,
kubectl get controllerrevision command result
The issue happens in the logic of "smart.go" function, the controller compares the StatefulSet field "status.updatedReplicas" with "status.replicas". If it's not equal, then the StatefulSet is not up to date
Log details
{"level":"info","ts":1716685730.240358,"msg":"StatefulSet is not up to date","controller":"psmdb-controller","object":{"name":"mongodb-cluster","namespace":"mongodb"},"namespace":"mongodb","name":"mongodb-cluster","reconcileID":"75a29a96-608c-45f4-ac87-e132bf180b29","sts":"mongodb-cluster-cfg"}
Steps to reproduce
Install MongoDB Operator in "mongodb-operator" namespace in ArgoCD
Install MongoDB Helm in "mongodb" namespace in ArgoCD
Versions
Anything else?
The issue does not happen with Operator version 1.15.4 and Database version 1.15.3
The text was updated successfully, but these errors were encountered: