Kjeld Schouten
Kjeld Schouten
I'm getting this quite often even when I completely remove the PVC, PV, Cluster-object and the complete helm chart of the affected application. Seems to be quite related to latest...
Well I now have to helm charts, that I completely nuke every trace off. And yet every damn reinstall it ends up with this stupid error. Its so bad and...
> quick glance showed that cnpg [heavily relies](https://github.com/cloudnative-pg/cloudnative-pg/blob/ebe20200dee0bd8ed357ab459b6e5fdc30d12855/internal/controller/cluster_restore.go#L241) on [annotations](https://cloudnative-pg.io/documentation/1.23/labels_annotations/) in its logic. i got the same err msg when i precreated pvc and cnpg cannot find appropritate annotation. i...
> > I have no PVC or PV, everything is 100% a clean slate, so it should be creating them. > > This error shouldnt show if there is no...
I found at least one case where this could be reproduced somewhat: Cases where somehow the storageClass was invalid and it wasn't creating PVCs might, in some cases, not start...
@vacquah Can you give me the name of your storageClass?
> In my case, this happens when I manually delete the pvc/pv. See also: > > [cloudnative-pg/internal/controller/cluster_create.go](https://github.com/cloudnative-pg/cloudnative-pg/blob/b3b6dbe7899d27dd65b42d4ecd89c9d0c3d780b0/internal/controller/cluster_create.go#L1063) > > Line 1063 in [b3b6dbe](/cloudnative-pg/cloudnative-pg/commit/b3b6dbe7899d27dd65b42d4ecd89c9d0c3d780b0) > > contextLogger.Info("refusing to create the primary...
> Why do you create the storage before-hand instead of using dynamic provisioning? Might be best to ignore this weird setup when bug tracing this. As most of the other...
> I can see why creating storage before hand can make sense in some scenarios... Can we please just **all** ignore this? As it has absolutely zero to do with...
I agree the current design is simply not infrastructure-as-code compliant enough