Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-8076

CustomMonitoringStack makes telemetry-operator panic because of a missing CRD field

XMLWordPrintable

    • 2
    • CloudOps 2024 Sprint 14
    • Moderate

      • _How reproducible
        _
        • always
      • Steps to reproduce
        • Configure MetricStorage with using the CustomMonitoringStack
      • _Expected result
        _
        • CustomMonitoringStack gets deployed successfully
      • Actual results
        • telemetry-operator panics
      • Additional info:
        • MonitoringStack
        •   spec:
              alertmanagerConfig:
                disabled: false
              logLevel: debug
              prometheusConfig:
                replicas: 1
                scrapeInterval: 30s
              resourceSelector:
                matchLabels:
                  service: ceilometer
              resources:
                limits:
                  cpu: 500m
                  memory: 512Mi
                requests:
                  cpu: 100m
                  memory: 256Mi
              retention: 1d 
        • telemetry-operator panic traceback
        • 2024-06-27T17:45:21Z    INFO    Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference    {"controller": "metricstorage", "controllerGroup": "telemetry.openstack.org", "controllerKind": "MetricStorage", "MetricStorage": {"name":"metric-storage","namespace":"openstack"}, "namespace": "openstack", "name": "metric-storage", "reconcileID": "61aa1074-9d5c-443b-99f9-af50cb9d0900"}
          panic: runtime error: invalid memory address or nil pointer dereference [recovered]
              panic: runtime error: invalid memory address or nil pointer dereference
          [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x18b748b]goroutine 399 [running]:
          sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
              /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:116 +0x1fa
          panic({0x1acb660, 0x2db1a70})
              /usr/lib/golang/src/runtime/panic.go:884 +0x213
          github.com/openstack-k8s-operators/telemetry-operator/controllers.getAddressFromIPSet(0xc002a03080, 0xc00404f6b8, 0xc00404f6d0, 0xc0006b8bb0)
              /remote-source/controllers/metricstorage_controller.go:877 +0x22b
          github.com/openstack-k8s-operators/telemetry-operator/controllers.getNodeExporterTargets(0xc002a03080, 0x1d69577?)
              /remote-source/controllers/metricstorage_controller.go:810 +0x567
          github.com/openstack-k8s-operators/telemetry-operator/controllers.(*MetricStorageReconciler).reconcileNormal(0xc0001c98f0, {0x2020f20, 0xc002a59860}, 0xc002a03080, 0xc0006b8bb0)
              /remote-source/controllers/metricstorage_controller.go:471 +0x202e
          github.com/openstack-k8s-operators/telemetry-operator/controllers.(*MetricStorageReconciler).Reconcile(0xc0001c98f0, {0x2020f20, 0xc002a59860}, {{{0xc0006b14e6?, 0x5?}, {0xc0006b14f0?, 0xc000be9d08?}}})
              /remote-source/controllers/metricstorage_controller.go:200 +0xfe5
          sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x20236a0?, {0x2020f20?, 0xc002a59860?}, {{{0xc0006b14e6?, 0xb?}, {0xc0006b14f0?, 0x0?}}})
              /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:119 +0xc8
          sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0003c4960, {0x2020e78, 0xc0000f0e60}, {0x1b85460?, 0xc000392ca0?})
              /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:316 +0x3ca
          sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0003c4960, {0x2020e78, 0xc0000f0e60})
              /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:266 +0x1c5
          sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
              /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:227 +0x85
          created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
              /opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:223 +0x587 

              rh-ee-jwysogla Jaromir Wysoglad
              rh-ee-jwysogla Jaromir Wysoglad
              rhos-dfg-cloudops
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: