Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-33501

catalog-operator and packageserver pods are CrashLoopBackOff if updateStrategy is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.13, 4.12, 4.11, 4.10, 4.9, 4.8, 4.7, 4.6, 4.14, 4.15, 4.16
    • OLM
    • Important
    • No
    • Toasty OLM Sprint 254
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      catalog-operator and packageserver pods are CrashLoopBackOff if updateStrategy is empty 

      Version-Release number of selected component (if applicable):

          xzha@xzha1-mac OCP-68901 % oc get clusterversion
      NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.16.0-0.nightly-2024-05-08-222442   True        False         7h41m   Cluster version is 4.16.0-0.nightly-2024-05-08-222442

      How reproducible:

          always

      Steps to Reproduce:

          1. create catsrc with updateStrategy is empty
      xzha@xzha1-mac OCP-68901 % cat catsrc2.yaml 
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      metadata:
        name: test-index
        namespace: openshift-marketplace
      spec:
        displayName: Test
        publisher: OLM-QE
        sourceType: grpc
        image: quay.io/olmqe/nginxolm-operator-index:v1
        updateStrategy: {}
      
      xzha@xzha1-mac OCP-68901 % oc apply -f catsrc2.yaml catalogsource.operators.coreos.com/test-index created
      
          2. check catalog-operator and packageserver pods
      xzha@xzha1-mac OCP-68901 % oc get pod -n openshift-operator-lifecycle-manager
      NAME                                      READY   STATUS             RESTARTS     AGE
      catalog-operator-6498df8f49-srpmf         0/1     CrashLoopBackOff   1 (6s ago)   5h38m
      collect-profiles-28588710-fsp5q           0/1     Completed          0            40m
      collect-profiles-28588725-2spfp           0/1     Completed          0            25m
      collect-profiles-28588740-9hr4l           0/1     Completed          0            10m
      olm-operator-64d96d5b8d-mhrd2             1/1     Running            0            5h38m
      package-server-manager-5494bdcc59-scgx9   2/2     Running            0            5h38m
      packageserver-56f846df67-6h79n            0/1     CrashLoopBackOff   1 (6s ago)   5h38m
      packageserver-56f846df67-x67zg            0/1     CrashLoopBackOff   1 (6s ago)   5h44m
      
      xzha@xzha1-mac OCP-68901 % oc logs packageserver-56f846df67-6h79n -n openshift-operator-lifecycle-manager
      time="2024-05-10T07:10:30Z" level=info msg="Using in-cluster kube client config"
      time="2024-05-10T07:10:30Z" level=info msg="Defaulting Interval to '12h0m0s'"
      I0510 07:10:30.524611       1 handler.go:275] Adding GroupVersion packages.operators.coreos.com v1 to ResourceManager
      time="2024-05-10T07:10:30Z" level=info msg="connection established. cluster-version: v1.29.4+6c10b2d"
      time="2024-05-10T07:10:30Z" level=info msg="operator ready"
      time="2024-05-10T07:10:30Z" level=info msg="starting informers..."
      time="2024-05-10T07:10:30Z" level=info msg="informers started"
      time="2024-05-10T07:10:30Z" level=info msg="waiting for caches to sync..."
      E0510 07:10:30.528088       1 runtime.go:79] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
      goroutine 258 [running]:
      k8s.io/apimachinery/pkg/util/runtime.logPanic({0x20db060?, 0x3b210f0})
      	/build/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:75 +0x85
      k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x2540be400?})
      	/build/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:49 +0x6b
      panic({0x20db060?, 0x3b210f0?})
      	/usr/lib/golang/src/runtime/panic.go:914 +0x21f
      k8s.io/client-go/tools/cache.(*Reflector).list(0xc00054a380, 0xc000568720)
      	/build/vendor/k8s.io/client-go/tools/cache/reflector.go:534 +0xaf1
      k8s.io/client-go/tools/cache.(*Reflector).ListAndWatch(0xc00054a380, 0xc000568720)
      	/build/vendor/k8s.io/client-go/tools/cache/reflector.go:345 +0x291
      k8s.io/client-go/tools/cache.(*Reflector).Run.func1()
      	/build/vendor/k8s.io/client-go/tools/cache/reflector.go:291 +0x25
      k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x10?)
      	/build/vendor/k8s.io/apimachinery/pkg/util/wait/backoff.go:226 +0x33
      k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc0005510a0?, {0x2817600, 0xc000536550}, 0x1, 0xc000568720)
      	/build/vendor/k8s.io/apimachinery/pkg/util/wait/backoff.go:227 +0xaf
      k8s.io/client-go/tools/cache.(*Reflector).Run(0xc00054a380, 0xc000568720)
      	/build/vendor/k8s.io/client-go/tools/cache/reflector.go:290 +0x1cd
      k8s.io/client-go/tools/cache.(*controller).Run.(*Group).StartWithChannel.func2()
      	/build/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:55 +0x1e
      k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1()
      	/build/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:72 +0x4f
      created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start in goroutine 238
      	/build/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:70 +0x73
      panic: runtime error: invalid memory address or nil pointer dereference [recovered]
      	panic: runtime error: invalid memory address or nil pointer dereference
      
           3.
          

      Actual results:

          catalog-operator and packageserver pods are CrashLoopBackOff

      Expected results:

          catalog-operator and packageserver pods are Running, and raise error message when creating catsrc.

      Additional info:

          

            rashmigottipati Rashmi Gottipati
            rhn-support-xzha Xia Zhao
            Xia Zhao Xia Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: