Description:
Hi all!
I was trying to deploy the Percona Operator for MongoDB using the helm chart following the instructions on
Unfortunately I’m not able to get a stable operator working for long. After a few minutes of deploy the operator throws an error and restart.
Steps to Reproduce:
The process I used for installation was
helm install mongodb-psmdb-operator percona/psmdb-operator -n mongodb-temp --version 1.15.0 -f percona.yml
being the custom contents of the percona.yml
logLevel: DEBUG
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 1
memory: 1Gi
disableTelemetry: true
the remaining will be the defaults for this version of the chart 1.15.0
Version:
v1.15.0
Deployed into GKE 1.25
Logs:
Logs of the operator till it crashes
2023-10-24T19:01:39.873Z INFO setup Manager starting up {"gitCommit": "ed2d8b4907c39beadfb020ce1cb555fee0ac682d", "gitBranch": "release-1-15-0", "goVersion": "go1.20.9", "os": "linux", "arch": "amd64"}
I1024 19:01:40.924853 1 request.go:697] Waited for 1.034285823s due to client-side throttling, not priority and fairness, request: GET:https://10.145.32.1:443/apis/constraints.gatekeeper.sh/v1alpha1?timeout=32s
2023-10-24T19:01:43.435Z INFO server version {"platform": "kubernetes", "version": "v1.25.12-gke.500"}
2023-10-24T19:01:43.445Z INFO starting server {"kind": "health probe", "addr": "[::]:8081"}
2023-10-24T19:01:43.445Z INFO controller-runtime.metrics Starting metrics server
I1024 19:01:43.445368 1 leaderelection.go:250] attempting to acquire leader lease mongodb-temp/08db0feb.percona.com...
2023-10-24T19:01:43.445Z INFO controller-runtime.metrics Serving metrics server {"bindAddress": ":8080", "secure": false}
I1024 19:02:01.263394 1 leaderelection.go:260] successfully acquired lease mongodb-temp/08db0feb.percona.com
2023-10-24T19:02:01.263Z DEBUG events mongodb-psmdb-operator-84849858b8-mp2h9_ba6e5c4f-850a-4dac-a73b-4062eaf3861d became leader {"type": "Normal", "object": {"kind":"Lease","namespace":"mongodb-temp","name":"08db0feb.percona.com","uid":"855ef146-fd90-41b9-8c86-cd0b82697425","apiVersion":"coordination.k8s.io/v1","resourceVersion":"2108411632"}, "reason": "LeaderElection"}
2023-10-24T19:02:01.263Z INFO Starting EventSource {"controller": "psmdb-controller", "source": "kind source: *v1.PerconaServerMongoDB"}
2023-10-24T19:02:01.263Z INFO Starting Controller {"controller": "psmdb-controller"}
2023-10-24T19:02:01.263Z INFO Starting EventSource {"controller": "psmdbrestore-controller", "source": "kind source: *v1.PerconaServerMongoDBRestore"}
2023-10-24T19:02:01.263Z INFO Starting EventSource {"controller": "psmdbbackup-controller", "source": "kind source: *v1.PerconaServerMongoDBBackup"}
2023-10-24T19:02:01.263Z INFO Starting EventSource {"controller": "psmdbbackup-controller", "source": "kind source: *v1.Pod"}
2023-10-24T19:02:01.263Z INFO Starting EventSource {"controller": "psmdbrestore-controller", "source": "kind source: *v1.Pod"}
2023-10-24T19:02:01.263Z INFO Starting Controller {"controller": "psmdbbackup-controller"}
2023-10-24T19:02:01.263Z INFO Starting Controller {"controller": "psmdbrestore-controller"}
2023-10-24T19:02:01.397Z INFO Starting workers {"controller": "psmdb-controller", "worker count": 1}
2023-10-24T19:02:01.401Z INFO Starting workers {"controller": "psmdbrestore-controller", "worker count": 1}
2023-10-24T19:02:01.401Z INFO Starting workers {"controller": "psmdbbackup-controller", "worker count": 1}
E1024 19:03:27.804464 1 leaderelection.go:369] Failed to update lock: Put "https://10.145.32.1:443/apis/coordination.k8s.io/v1/namespaces/mongodb-temp/leases/08db0feb.percona.com": context deadline exceeded
I1024 19:03:27.804527 1 leaderelection.go:285] failed to renew lease mongodb-temp/08db0feb.percona.com: timed out waiting for the condition
2023-10-24T19:03:27.804Z DEBUG events mongodb-psmdb-operator-84849858b8-mp2h9_ba6e5c4f-850a-4dac-a73b-4062eaf3861d stopped leading {"type": "Normal", "object": {"kind":"Lease","namespace":"mongodb-temp","name":"08db0feb.percona.com","uid":"855ef146-fd90-41b9-8c86-cd0b82697425","apiVersion":"coordination.k8s.io/v1","resourceVersion":"2108413524"}, "reason": "LeaderElection"}
2023-10-24T19:03:27.804Z INFO Stopping and waiting for non leader election runnables
2023-10-24T19:03:27.806Z INFO Stopping and waiting for leader election runnables
2023-10-24T19:03:27.806Z INFO Stopping and waiting for caches
2023-10-24T19:03:27.804Z ERROR setup problem running manager {"error": "leader election lost"}
main.main
/go/src/github.com/percona/percona-server-mongodb-operator/cmd/manager/main.go:161
runtime.main
/usr/local/go/src/runtime/proc.go:250
Expected Result:
To the operator pod not to go into CrashLoopBackOff
Do you have any idea, what could be the cause of this, or how can I fix it?