-
Bug
-
Resolution: Done-Errata
-
Undefined
-
None
-
None
-
False
-
None
-
False
-
-
Description of the problem:
When a image name is specified in the OpenTelemetry collector instance with image sha, the collector fails to start. However when a image tag is defined the collector can start with the specified image.
For example:
apiVersion: opentelemetry.io/v1alpha1 kind: OpenTelemetryCollector metadata: name: cluster-collector spec: config: | receivers: otlp: protocols: grpc: http: processors: exporters: jaeger: endpoint: jaeger-production-collector-headless.tracing-system.svc:14250 tls: ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt" service: pipelines: traces: receivers: [otlp] processors: [] exporters: [jaeger] mode: deployment image: "registry.redhat.io/rhosdt/opentelemetry-collector-rhel8@sha256:551680c99e03efc3650373713548f1d63c35efcec83b6202230a3f8e18c4965e"
With the above OpenTelemetry collector instance config, the operator gives the below error.
{"level":"error","ts":"2023-09-05T13:03:34.798717342Z","msg":"Reconciler error","controller":"opentelemetrycollector","controllerGroup":"opentelemetry.io","controllerKind":"OpenTelemetryCollector","OpenTelemetryCollector":{"name":"cluster-collector","namespace":"kuttl-multi-cluster-receive"},"namespace":"kuttl-multi-cluster-receive","name":"cluster-collector","reconcileID":"0739c21a-1cff-4450-9d73-d71d7f04181c","error":"failed to reconcile the expected configmaps: failed to create: ConfigMap \"cluster-collector-collector\" is invalid: metadata.labels: Invalid value: \"551680c99e03efc3650373713548f1d63c35efcec83b6202230a3f8e18c4965e\": must be no more than 63 characters","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/remote-source/otelop/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/otelop/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/remote-source/otelop/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:235"}
Specifying image with sha is helpful in OCP environment as we cannot pull images with tags from registry.redhat.io.
- links to
-
RHBA-2023:121974 Red Hat OpenShift distributed tracing 3.0.0 operator/operand containers