After update operator to 1.11.0: error:"operator image not found" spamed in operator logs

Hello community,

I upgraded my cluster to 1.11.0, but the operator is not working anymore. It shows me the following error:

{"level":"error","ts":1655791676.7311056,"logger":"controller.perconaxtradbcluster-controller","msg":"Reconciler error","name":"mysql-cluster-prod-px","namespace":"mysql-cluster","error":"operator image not found","errorVerbose":"operator image not found\ngithub.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.operatorImageName\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/controller.go:1405\ngithub.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).deploy\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/controller.go:545\ngithub.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).Reconcile\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/controller.go:307\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1571","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227

I have no Idea how I can fix it. I looked into the source and it seems that it check the containername or something like that is equal to ‘percona-xtradb-cluster-operator’.

I used the helm chart to deploy the operator under the namespace ‘mysql-cluster’. I tried already to set the helm release name to ‘percona-xtradb-cluster-operator’ but it does not solving the error.
Where is the problem?

1 Like

Hi @j_tschoche !

Seems you are not the only one who bumped into this, we already have a contribution PR for the helm chart here: K8SPXC-1047 - fix: percona operator image identification by liogate · Pull Request #146 · percona/percona-helm-charts · GitHub
Also I have opened a Jira ticket here: [K8SPXC-1047] Helm chart upgrade issue - Percona JIRA
So I suggest you watch these two for how and when it will be resolved.

Thanks!

2 Likes

Hi @j_tschoche ! The fix was finally merged and available in helm chart pxc-operator version 1.11.1.

Kind regards!

1 Like