-
Bug
-
Resolution: Cannot Reproduce
-
Undefined
-
None
-
None
-
None
-
1
-
False
-
None
-
False
-
-
-
Tracing Sprint # 260
-
Important
Description of problem:
The OpenTelemetry Operator was upgraded to `OTEL 0.102.0-3`, after it, it was starting Crashloopback the OpenTelemetry operator pod:
$ oc get pods -n openshift-opentelemetry-operator NAME READY STATUS RESTARTS AGE opentelemetry-operator-controller-manager-6cc444f55-9g2lb 1/2 CrashLoopBackOff 30 4h
with the error:
2024-08-26T18:15:53.317999046Z {"level":"ERROR","timestamp":"2024-08-26T18:15:53.317861696Z","logger":"conversion-webhook","message":"failed to convert","request":"fef05adb-b23d-4f50-8af5-34a0348cc7d3","error":"json: cannot unmarshal string into Go struct field OpenTelemetryCollectorSpec.spec.config of type v1beta1.Config","stacktrace":"sigs.k8s.io/controller-runtime/pkg/webhook/conversion.(*webhook).ServeHTTP\n\t/remote-source/otelop/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.3/pkg/webhook/conversion/conversion.go:74\nsigs.k8s.io/controller-runtime/pkg/webhook/internal/metrics.InstrumentedHook.InstrumentHandlerInFlight.func1\n\t/remote-source/otelop/deps/gomod/pkg/mod/github.com/prometheus/client_golang@v1.19.1/prometheus/promhttp/instrument_server.go:60\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/lib/golang/src/net/http/server.go:2166\ngithub.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1\n\t/remote-source/otelop/deps/gomod/pkg/mod/github.com/prometheus/client_golang@v1.19.1/prometheus/promhttp/instrument_server.go:147\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/lib/golang/src/net/http/server.go:2166\ngithub.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2\n\t/remote-source/otelop/deps/gomod/pkg/mod/github.com/prometheus/client_golang@v1.19.1/prometheus/promhttp/instrument_server.go:109\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/lib/golang/src/net/http/server.go:2166\nnet/http.(*ServeMux).ServeHTTP\n\t/usr/lib/golang/src/net/http/server.go:2683\nnet/http.serverHandler.ServeHTTP\n\t/usr/lib/golang/src/net/http/server.go:3137\nnet/http.(*conn).serve\n\t/usr/lib/golang/src/net/http/server.go:2039"}
Also, it's not possible to delete/modify the `OpenTelemetryCollector` CR `otel` created in the namespace `opentelemetry` as receiving always the error:
conversion webhook for opentelemetry.io/v1beta1, Kind=OpenTelemetryCollector failed: json: cannot unmarshal string into Go struct field OpenTelemetryCollectorSpec.spec.config of type v1beta1.Config
It's created a new `OpenTelemetryCollector` CR with a different name of `otel`, it's created sucessful and also able to delete it.
Version-Release number of selected component (if applicable):
OpenShift 4.14
OpenTelemetry 0.102.0-3
How reproducible:
Not able to reproduce
Actual results:
- `OpenTelemetryCollector` CR `otel` in Crashloopback with the error reported in the *Description of the problem*
- Not able to delete/modify the `OpenTelemetryCollector` CR `otel` created in the namespace `opentelemetry` as receiving always the error reported in the *Description of the problem*
Expected results:
- `OpenTelemetryCollector` CR `otel` in Crashloopback running without any issues
- Able to delete/modify the `OpenTelemetryCollector` CR `otel` created in the namespace `opentelemetry`
Additional info:
- It was done some tests, but not able to reproduce the same.
- Also, it was tried to uninstall/reinstalled the OpenTelemetry Operator, but with the same result