Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator: service reconciliation error #3124

Closed
frzifus opened this issue Jul 13, 2024 · 1 comment · Fixed by #3125
Closed

Operator: service reconciliation error #3124

frzifus opened this issue Jul 13, 2024 · 1 comment · Fixed by #3125
Assignees
Labels
bug Something isn't working

Comments

@frzifus
Copy link
Member

frzifus commented Jul 13, 2024

Component(s)

collector

What happened?

Description

Spam of operator error logs

Steps to Reproduce

Expected Result

NAME                                     TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                                                              AGE
cluster-collector-collector              ClusterIP   172.30.165.115   <none>        4317/TCP,4318/TCP,8889/TCP                                           5s
cluster-collector-collector-headless     ClusterIP   None             <none>        4317/TCP,4318/TCP,8889/TCP                                           5s
cluster-collector-collector-monitoring   ClusterIP   172.30.234.38    <none>        8888/TCP  

Actual Result

Operator Logs

{
  "level": "ERROR",
  "timestamp": "2024-07-13T14:05:31.962191926Z",
  "logger": "controllers.OpenTelemetryCollector",
  "message": "failed to configure desired",
  "opentelemetrycollector": {
    "name": "cluster-collector",
    "namespace": "chainsaw-otlp-metrics"
  },
  "object_name": "cluster-collector-collector-headless",
  "object_kind": "&TypeMeta{Kind:,APIVersion:,}",
  "error": "Service \"cluster-collector-collector-headless\" is invalid: spec.ports[1]: Duplicate value: core.ServicePort{Name:\"\", Protocol:\"TCP\", AppProtocol:(*string)(nil), Port:4317, TargetPort:intstr.IntOrString{Type:0, IntVal:0, StrVal:\"\"}, NodePort:0}",
  "stacktrace": "github.com/open-telemetry/opentelemetry-operator/controllers.reconcileDesiredObjects\n\t/var/home/frzifus/git/go/observability/opentelemetry-operator/controllers/common.go:166\ngithub.com/open-telemetry/opentelemetry-operator/controllers.(*OpenTelemetryCollectorReconciler).Reconcile\n\t/var/home/frzifus/git/go/observability/opentelemetry-operator/controllers/opentelemetrycollector_controller.go:286\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/var/home/frzifus/git/golang_workspace/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.4/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/var/home/frzifus/git/golang_workspace/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.4/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/var/home/frzifus/git/golang_workspace/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.4/pkg/internal/controller/controller.go:261\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/var/home/frzifus/git/golang_workspace/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.4/pkg/internal/controller/controller.go:222"
}

Kubernetes Version

1.26

Operator version

0cafedf

Collector version

v0.103.0

Environment information

Environment

OS: Fedora Silverblue
Compiler(if manually compiled): go version go1.22.2 linux/amd64

Log output

No response

Additional context

I assume it was introduced here: 1289c63

Reverting this change, resolves the issue.


Original report:
https://issues.redhat.com/browse/TRACING-4458

@frzifus frzifus added the bug Something isn't working label Jul 13, 2024
@frzifus frzifus self-assigned this Jul 13, 2024
@jaronoff97
Copy link
Contributor

@frzifus i'm looking into this rn too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants