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

The unsupported old osus bundles should be removed in redhat-operators catalogsource

XMLWordPrintable

    • Important
    • No
    • 5
    • OTA 241
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Due to deprecated APIs, osus 4.9.0/4.9.1/5.0.0 are not supported in OCP 4.12/4.13/4.14. Before ocp 4.14, only latest osus(5.0.1) can be chosen from web-console, so it's not a big problem for users which will not get the old versions(4.9.0/4.9.1/5.0.0) easily, which are still able to be installed from CLI(a potential risk). 
      But from OCP 4.14, the old versions are all listed in web-console, which means users can choose an old version easily to install, then it will hit the failure(same with https://issues.redhat.com/browse/OTA-857). 
      
      $ oc -n openshift-update-service get poNAME                                      READY   STATUS             RESTARTS      AGEupdateservice-operator-5894766cf7-vgxp8   0/1     CrashLoopBackOff   6 (69s ago)   7m44s
      
      $ oc -n openshift-update-service logs updateservice-operator-5894766cf7-vgxp8
      ...
      2023-07-17T02:04:56.072Z ERROR controller-runtime.source if kind is a CRD, it should be installed before calling Start {"kind": "PodDisruptionBudget.policy", "error": "no matches for kind \"PodDisruptionBudget\" in version \"policy/v1beta1\""}sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/source/source.go:117sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1 /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:167sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:223sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1 /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/manager/internal.go:6812023-07-17T02:04:56.072Z ERROR cmd Manager exited non-zero {"error": "no matches for kind \"PodDisruptionBudget\" in version \"policy/v1beta1\""}main.main /remote-source/app/main.go:119runtime.main /usr/lib/golang/src/runtime/proc.go:204

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

      osus 4.9.0/4.9.1/5.0.0
      ocp 4.14/4.13/4.12

      How reproducible:

      always

      Steps to Reproduce:

      1.Set up 4.14 cluster
      2.Search `openshift update service` from operatorhub, and choose any of old version(4.9.0/4.9.1/5.0.0) 
      3.
      

      Actual results:

      Install osus 5.0.0/4.9.1/4.9.0 failed

      Expected results:

      The unsupported old versions should be removed in the index.

      Additional info:

      # opm alpha list bundles registry.redhat.io/redhat/redhat-operator-index:v4.14 cincinnati-operatorPACKAGE              CHANNEL  BUNDLE                          REPLACES                        SKIPS                           SKIP RANGE  IMAGEcincinnati-operator  v1       update-service-operator.v4.9.0                                  update-service-operator.v4.6.0              registry.redhat.io/openshift-update-service/cincinnati-operator-bundle@sha256:2743f74cc102c059d7c1dc6698eb947cca75a3cc4230905f09703666ae7a4dbfcincinnati-operator  v1       update-service-operator.v4.9.1  update-service-operator.v4.9.0  update-service-operator.v4.6.0              registry.redhat.io/openshift-update-service/cincinnati-operator-bundle@sha256:71b8f7816a01503a4af5d6f93b9b3a057f6c011aef3b560b408ee4d7abf02165cincinnati-operator  v1       update-service-operator.v5.0.0                                                                              registry.redhat.io/openshift-update-service/cincinnati-operator-bundle@sha256:3feccb95e912f2d710958e701a1b52acf16a676fde9a8219491ad9381e6284eacincinnati-operator  v1       update-service-operator.v5.0.1  update-service-operator.v4.9.1  update-service-operator.v5.0.0              registry.redhat.io/openshift-update-service/cincinnati-operator-bundle@sha256:15f80efb399fc33a80e9979df4e8044501737eee335a2a5034c8de98957a87b9
      
      # opm alpha list bundles registry.redhat.io/redhat/redhat-operator-index:v4.13 cincinnati-operatorPACKAGE              CHANNEL  BUNDLE                          REPLACES                        SKIPS                           SKIP RANGE  IMAGEcincinnati-operator  v1       update-service-operator.v4.9.0                                  update-service-operator.v4.6.0              registry.redhat.io/openshift-update-service/cincinnati-operator-bundle@sha256:2743f74cc102c059d7c1dc6698eb947cca75a3cc4230905f09703666ae7a4dbfcincinnati-operator  v1       update-service-operator.v4.9.1  update-service-operator.v4.9.0  update-service-operator.v4.6.0              registry.redhat.io/openshift-update-service/cincinnati-operator-bundle@sha256:71b8f7816a01503a4af5d6f93b9b3a057f6c011aef3b560b408ee4d7abf02165cincinnati-operator  v1       update-service-operator.v5.0.0                                                                              registry.redhat.io/openshift-update-service/cincinnati-operator-bundle@sha256:3feccb95e912f2d710958e701a1b52acf16a676fde9a8219491ad9381e6284eacincinnati-operator  v1       update-service-operator.v5.0.1  update-service-operator.v4.9.1  update-service-operator.v5.0.0              registry.redhat.io/openshift-update-service/cincinnati-operator-bundle@sha256:15f80efb399fc33a80e9979df4e8044501737eee335a2a5034c8de98957a87b9

              pratikam Pratik Mahajan
              rhn-support-jiajliu Jia Liu
              Jia Liu Jia Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: