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

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • None
    • Hide
      Cause: high loaded STF deployments
      Consequence: sg-core crashes with "panic: interface conversion: interface is nil, not main.expiry"
      Fix: The container/list data structure used in expiry.go is not safe for concurrent use. Serialize the access to the shared list to avoid having check() on empty lists.
      Result: sg-core no longer crashes
      Show
      Cause: high loaded STF deployments Consequence: sg-core crashes with "panic: interface conversion: interface is nil, not main.expiry" Fix: The container/list data structure used in expiry.go is not safe for concurrent use. Serialize the access to the shared list to avoid having check() on empty lists. Result: sg-core no longer crashes
    • Bug Fix
    • CloudOps 2025 Sprint 19
    • 1
    • 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-conplat-observability
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: