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

sg-core crashes with "panic: interface conversion: interface is nil, not main.expiry"

XMLWordPrintable

    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • rhos-observability-telemetry
    • None
    • Hide
      .The `sg-core` container no longer crashes when accessing empty lists

      Before this update, the `sg-core` container crashed with the message "panic: interface conversion: interface is nil, not main.expiry". This error was caused by the use of a list data structure that is not suitable for concurrent access. With this update, access to the shared list has been serialized to prevent the `sg-core` container crashing when accessing empty lists.
      Show
      .The `sg-core` container no longer crashes when accessing empty lists Before this update, the `sg-core` container crashed with the message "panic: interface conversion: interface is nil, not main.expiry". This error was caused by the use of a list data structure that is not suitable for concurrent access. With this update, access to the shared list has been serialized to prevent the `sg-core` container crashing when accessing empty lists.
    • Bug Fix
    • CloudOps 2025 Sprint 19, Bug Delivery Tracker
    • 2
    • Moderate

      To Reproduce Steps to reproduce the behavior:

      1. Deploy STF 1.5.6
      2. Connect STF to a OSP 17.1 cloud
      3. Allow messages to flow and see the sg-core container crashing sporadically
      4. Inspect logs for the pod with "oc logs -f default-cloud-smartgateway -c sg-core --previous --tail 50"
      5. See "panic: interface conversion: interface is nil, not main.expiry" trace

      Expected behavior

      • The sg-core container shouldn't crash

      Bug impact

      • This impacts all STF customers and potentially telemetry-operator as well

      Known workaround

      • No workaround. The sg-core pod crashes and this cause gaps in the data.

      Additional context

      • This is reproducible when the cloud monitored by that sg-core is a production cloud and the volume of metrics being processed is high

              rhn-engineering-vimartin Victoria Martinez de la Cruz
              rhn-engineering-vimartin Victoria Martinez de la Cruz
              Jason Joyce, Leif Madsen
              rhos-observability-telemetry
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: