Uploaded image for project: 'Knative Serving'
  1. Knative Serving
  2. SRVKS-1307

Nil pointer error when uninstalling the Serving CR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.36.0, 1.35.1
    • 1.35.0
    • None
    • None
    • Important

      This was seen in https://access.redhat.com/support/cases/#/case/04045980.
      Here is the log:

       2025-02-21T13:26:06.397673811Z {"severity":"INFO","timestamp":"2025-02-21T13:26:06.397577811Z","logger":"knative-operator","caller":"knativeserving/knativeserving.go:84","message":"Deleting cluster-scoped resources","commit":"437a902","knative.dev/pod":"knative-operator-webhook-744f6d65dd-jcltj","knative.dev/controller":"knative.dev.operator.pkg.reconciler.knativeserving.Reconciler","knative.dev/kind":"operator.knative.dev.KnativeServing","knative.dev/traceid":"dee47de3-6a94-4cd1-a453-4a33ce2664f0","knative.dev/key":"knative-serving/knative-serving"}
      2025-02-21T13:26:06.399854219Z panic: runtime error: invalid memory address or nil pointer dereference
      2025-02-21T13:26:06.399854219Z [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1927953]
      2025-02-21T13:26:06.399873619Z 
      2025-02-21T13:26:06.399873619Z goroutine 225 [running]:
      2025-02-21T13:26:06.399884419Z knative.dev/operator/pkg/reconciler/knativeserving.(*Reconciler).FinalizeKind(0xc0001645b0, {0x23e63e8, 0xc0045e0750}, 0xc000468dc8)
      2025-02-21T13:26:06.399893119Z 	/workspace/vendor/knative.dev/operator/pkg/reconciler/knativeserving/knativeserving.go:91 +0x493
      2025-02-21T13:26:06.399909819Z knative.dev/operator/pkg/client/injection/reconciler/operator/v1beta1/knativeserving.(*reconcilerImpl).Reconcile(0xc00066dc20, {0x23e63e8, 0xc0045e0720}, {0xc00b7f9100, 0x1f})
      2025-02-21T13:26:06.399934019Z 	/workspace/vendor/knative.dev/operator/pkg/client/injection/reconciler/operator/v1beta1/knativeserving/reconciler.go:241 +0x3b8
      2025-02-21T13:26:06.399942019Z knative.dev/pkg/controller.(*Impl).processNextWorkItem(0xc00069b740)
      2025-02-21T13:26:06.399950119Z 	/workspace/vendor/knative.dev/pkg/controller/controller.go:540 +0x508
      2025-02-21T13:26:06.399978519Z knative.dev/pkg/controller.(*Impl).RunContext.func3()
      2025-02-21T13:26:06.399978519Z 	/workspace/vendor/knative.dev/pkg/controller/controller.go:489 +0x59
      2025-02-21T13:26:06.399978519Z created by knative.dev/pkg/controller.(*Impl).RunContext in goroutine 222
      2025-02-21T13:26:06.399988619Z 	/workspace/vendor/knative.dev/pkg/controller/controller.go:487 +0x31f
      

      We should check earlier about manifests being empty here: https://github.com/openshift-knative/serverless-operator/blob/main/vendor/knative.dev/operator/pkg/reconciler/knativeserving/knativeserving.go#L96.

              skontopo@redhat.com Stavros Kontopoulos (Inactive)
              skontopo@redhat.com Stavros Kontopoulos (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: