failed to send telemetry before the cluster starts

Description

Error log is currently full of errors for sending telemetry because the version is missing.
I'm starting a 5 node cluster and there is 186 of these erorrs in the log:

{"level":"error","ts":1668105111.4801974,"logger":"perconaxtradbcluster","caller":"pxc/version.go:153","msg":"failed to send telemetry to https://check.percona.com","cluster":"cluster1","namespace":"scheduler","error":"empty versions response","stacktrace":"github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).ensurePXCVersion\n\t/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/version.go:153\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:315\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:121\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:320\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:234"}

Notice "empty versions response" in the output.

Maybe we can skip sending telemetry if we don't have needed data to send?

Environment

None

Activity

Done

Details

Assignee

Reporter

Needs QA

Yes

Fix versions

Affects versions

Priority

Smart Checklist

Created November 10, 2022 at 6:47 PM
Updated March 5, 2024 at 5:32 PM
Resolved November 18, 2022 at 9:18 AM

Flag notifications