Skip to content

[Bug]: Cluster stays in BootstrapPending forever when the ObjectStore is created after the Cluster ("requeuing" never requeues) #11618

Description

@dc-1985

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

[email protected]

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

Activity

  1. added
    bug 🐛
    triage
    on Oct 6, 2026
  2. added this to the Now milestone on Oct 17, 2026
  3. removed
    triage
    on Oct 17, 2026
  4. added theissue type on Oct 17, 2026
  5. added 2 commits that reference this issue on Oct 17, 2026
    4677773
    154eeb6
  6. added a commit that references this issue on Oct 17, 2026
    99e9645
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐛

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions