cloudnative-pg icon indicating copy to clipboard operation
cloudnative-pg copied to clipboard

[Bug]: cluster does not start after adding the barman-cloud-plugin

Open smiyc opened this issue 1 year ago • 7 comments

Is there an existing issue already for this bug?

  • [x] 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

  • [x] I have read the troubleshooting guide and I think this is a new bug.

I am running a supported version of CloudNativePG

  • [x] I have read the troubleshooting guide and I think this is a new bug.

Contact Details

No response

Version

1.26.0-rc1

What version of Kubernetes are you using?

other (unsupported)

What is your Kubernetes environment?

Self-managed: kind (evaluation)

How did you install the operator?

YAML manifest

What happened?

I added the barman-cloud-plugin to the cluster spec and afterwards the cluster does not start any more

Cluster resource

...
   plugins:
   - name: barman-cloud.cloudnative-pg.io
     isWALArchiver: true
     parameters:
       barmanObjectName: c800flo-store
...

Relevant log output

"error": "unable to create Pod: Pod \"cluster-1\" is invalid: spec.initContainers[1].startupProbe: Forbidden: may not be set for init containers without restartPolicy=Always",
      "stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tpkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:347\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tpkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:294\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tpkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:255"

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

smiyc avatar Apr 04 '25 09:04 smiyc

@smiyc The sideCar containers need to work with kubernetes v1.29 and above, please check if your kubernetes version.

litaocdl avatar Apr 15 '25 07:04 litaocdl

@litaocdl thanks a lot! We are using v1.28.7+vmware.1-fips.1

I'll PR to add the k8s version as a Prerequisite

smiyc avatar Apr 15 '25 08:04 smiyc

I am seeing this same error on a Kubernetes cluster running Kubernetes 1.32

iancharles avatar Jun 27 '25 15:06 iancharles

@smiyc did you then find a solution for this issue? facing the same issue

skemil007 avatar Jul 11 '25 23:07 skemil007

@skemil007 yes, when using k8s 1.29 or later the pugin works

smiyc avatar Jul 12 '25 09:07 smiyc

@smiyc I am already using 1.30 k8 version and latest barman and cnpg operator version. Still facing issue

skemil007 avatar Jul 12 '25 13:07 skemil007

@skemil007 then open an new issue and/or ask at the community meeting

smiyc avatar Jul 13 '25 10:07 smiyc