Repository navigation
Description
Is there an existing issue already for this bug?
- I have searched for an existing issue, and could not find anything. I believe this is a new bug.
I have read the troubleshooting guide
- I have read the troubleshooting guide and I think this is a new bug.
I am running a supported version of CloudNativePG
- I have read the troubleshooting guide and I think this is a new bug.
Contact Details
Version
1.30 (latest patch)
What version of Kubernetes are you using?
1.36
What is your Kubernetes environment?
Cloud: Amazon EKS
How did you install the operator?
Helm
What happened?
Note: This might also be an issue with the Barman plugin.... not sure.
We install the Cluster and the ObjectStore it references from the same Helm release. Helm applies both
within about 200 ms, but in no guaranteed order. When the operator reconciles the Cluster before the
ObjectStore exists, the plugin's pre-reconcile hook logs that it is requeuing, but the cluster is never
reconciled again. It stays in Initialized=False / BootstrapPending with no PVC, no initdb job and no
events, until something else triggers a reconcile. In our case that was restarting the operator 1h45m later,
after which the cluster bootstrapped normally within two minutes.
Cluster status during the stall:
Initialized=False BootstrapPending: Cluster has not been bootstrapped yet
Suggested fix
Set a requeue delay in the not-found branch.
Cluster resource
Relevant log output
Plugin log, the only two entries for this cluster before the ObjectStore showed up:
{"level":"info","ts":"2026-10-06T06:53:04.244063157Z","msg":"barman object configuration not found, requeuing","name":"example-postgres","namespace":"example","name":"example-postgres-wal","namespace":"example"}
{"level":"info","ts":"2026-10-06T06:53:04.385310775Z","msg":"barman object configuration not found, requeuing","name":"example-postgres","namespace":"example","name":"example-postgres-wal","namespace":"example"}
{"level":"info","ts":"2026-10-06T06:53:04.460276392Z","msg":"ObjectStore reconciliation start", ... "name":"example-postgres-wal","namespace":"example"}
Operator log for the same two reconciles. Note "Requeue":false,"RequeueAfter":0:
{"level":"info","ts":"2026-10-06T08:53:04.244264307+02:00","msg":"Pre-reconcile hook stopped the reconciliation loop","controller":"cluster", ... "hookResult":{"result":{"Requeue":false,"RequeueAfter":0,"Priority":null},"err":null,"stopReconciliation":true,"identifier":"barman-cloud.cloudnative-pg.io"}}
{"level":"info","ts":"2026-10-06T08:53:04.39461743+02:00","msg":"Pre-reconcile hook stopped the reconciliation loop","controller":"cluster", ... "hookResult":{"result":{"Requeue":false,"RequeueAfter":0,"Priority":null},"err":null,"stopReconciliation":true,"identifier":"barman-cloud.cloudnative-pg.io"}}Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(plugin): requeue when a hook asks for it without a delay (#11683)
fix(plugin): requeue when a hook asks for it without a delay (#11683)
fix(plugin): requeue when a hook asks for it without a delay (cloudna…