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

RHOSO Operator CrashLoopBackOff panic: interface conversion: interface {} is nil, not string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhos-18.0.11
    • rhos-18.0.6
    • openstack-operator
    • None
    • OSPK8S Sprint 5
    • 1
    • Important

      To Reproduce Steps to reproduce the behavior:

      • clear steps to reproduce are unclear
      • affected RHOSO 18.0.6 environment was originally deployed on top of OCP 4.16.15
      • then OCP was updated to 4.17.35 (which doesn't support RHOSO)
      • then OCP was updated to 4.18.20, but openstack-operator-controller-operator is still in CrashLoopBackOff with the same error.

      Error trace:

      2025-07-30T11:59:26.659Z        INFO    Controllers.OpenStackOperator   Found Operator  {"controller": "openstack", "controllerGroup": "operator.openstack.org", "controllerKind": "OpenStack", "OpenStack": {"name":"openstack","namespace":"openstack-operators"}, "namespace": "openstack-operators", "name": "openstack", "reconcileID": "5d7dc474-bda4-42b8-bbb6-849111e727e3", "name": "barbican-operator.openstack-operators"}
      2025-07-30T11:59:26.659Z        INFO    Controllers.OpenStackOperator   Deleting operator reference     {"controller": "openstack", "controllerGroup": "operator.openstack.org", "controllerKind": "OpenStack", "OpenStack": {"name":"openstack","namespace":"openstack-operators"}, "namespace": "openstack-operators", "name": "openstack", "reconcileID": "5d7dc474-bda4-42b8-bbb6-849111e727e3", "Reference": {"apiVersion":"apiextensions.k8s.io/v1","conditions":[{"lastTransitionTime":"2024-11-06T15:42:40Z","message":"no conflicts found","reason":"NoConflicts","status":"True","type":"NamesAccepted"},{"lastTransitionTime":"2024-11-06T15:42:40Z","message":"the initial names have been accepted","reason":"InitialNamesAccepted","status":"True","type":"Established"}],"kind":"CustomResourceDefinition","name":"barbicanapis.barbican.openstack.org"}}
      2025-07-29T07:52:35.117Z        INFO    Observed a panic in reconciler: interface conversion: interface {} is nil, not string   {"controller": "openstack", "controllerGroup": "operator.openstack.org", "controllerKind": "OpenStack", "OpenStack": {"name":"openstack","namespace":"openstack-operators"}, "namespace": "openstack-operators", "name": "openstack", "reconcileID": "b67733cc-5ae7-4f90-bca6-80ed9d4bc214"}
      panic: interface conversion: interface {} is nil, not string [recovered]
              panic: interface conversion: interface {} is nil, not string
      
      goroutine 221 [running]:
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.6/pkg/internal/controller/controller.go:116 +0x1e5
      panic({0x18e1760?, 0xc000b4fe60?})
              /usr/lib/golang/src/runtime/panic.go:914 +0x21f
      github.com/openstack-k8s-operators/openstack-operator/controllers/operator.(*OpenStackReconciler).postCleanupObsoleteResources(0xc00030f3b0, {0x1db0e48, 0xc00092a360}, 0xc000a9c3c0)
              /remote-source/app/controllers/operator/openstack_controller.go:665 +0xe14
      github.com/openstack-k8s-operators/openstack-operator/controllers/operator.(*OpenStackReconciler).Reconcile(0xc00030f3b0, {0x1db0e48?, 0xc00092a360}, {{{0xc0005faf78?, 0x5?}, {0xc000698960?, 0xc0008a3d08?}}})
              /remote-source/app/controllers/operator/openstack_controller.go:256 +0x1097
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x1db4140?, {0x1db0e48?, 0xc00092a360?}, {{{0xc0005faf78?, 0xb?}, {0xc000698960?, 0x0?}}})
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.6/pkg/internal/controller/controller.go:119 +0xb7
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0001e75e0, {0x1db0e80, 0xc00037e640}, {0x1973920?, 0xc000684000?})
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.6/pkg/internal/controller/controller.go:316 +0x3cc
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0001e75e0, {0x1db0e80, 0xc00037e640})
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.6/pkg/internal/controller/controller.go:266 +0x1af
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.6/pkg/internal/controller/controller.go:227 +0x79
      created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 in goroutine 175
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.6/pkg/internal/controller/controller.go:223 +0x565

      Bug impact
      LCM is blocked

      Known workaround
      None

              abays@redhat.com Andrew Bays
              rhn-support-astupnik Alex Stupnikov
              rhos-dfg-ospk8s
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: