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

[TP] PlatformOperator does not work after it is reenable.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • 4.16
    • OLM
    • None
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          after creating PO CR, it always hands at UnpackPending.
      actually the bundle is already unpacked and installed.

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

          4.16.0-0.nightly-2024-02-05-184957

      How reproducible:

          always

      Steps to Reproduce:

      kuiwang@kuiwang-mac jb % oc get clusterversion
      NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.16.0-0.nightly-2024-02-05-184957   True        False         102m    Cluster version is 4.16.0-0.nightly-2024-02-05-184957
      kuiwang@kuiwang-mac jb % oc get co|grep platform
      platform-operators-aggregated              4.16.0-0.nightly-2024-02-05-184957   True        False         False      2m32s   
      kuiwang@kuiwang-mac openshift-tests-private % cat po-quay.json 
              {
                  "apiVersion": "platform.openshift.io/v1alpha1",
                  "kind": "PlatformOperator",
                  "metadata": {
                      "name": "quay-operator"
                  },
                  "spec": {
                      "package": {
                          "name": "quay-operator"
                      }
                  }
              }
      
      
      kuiwang@kuiwang-mac openshift-tests-private % oc apply -f po-quay.json 
      platformoperator.platform.openshift.io/quay-operator created
      kuiwang@kuiwang-mac openshift-tests-private % oc get platformoperator.platform.openshift.io/quay-operator -o yaml
      apiVersion: platform.openshift.io/v1alpha1
      kind: PlatformOperator
      metadata:
        annotations:
          kubectl.kubernetes.io/last-applied-configuration: |
            {"apiVersion":"platform.openshift.io/v1alpha1","kind":"PlatformOperator","metadata":{"annotations":{},"name":"quay-operator"},"spec":{"package":{"name":"quay-operator"}}}
        creationTimestamp: "2024-02-06T02:59:11Z"
        generation: 1
        name: quay-operator
        resourceVersion: "102687"
        uid: 99aa03e6-75c5-408f-a00d-0fc786cee21f
      spec:
        package:
          name: quay-operator
      status:
        activeBundleDeployment:
          name: ""
        conditions:
        - lastTransitionTime: "2024-02-06T02:59:15Z"
          message: Waiting for the bundle to be unpacked
          reason: UnpackPending
          status: "False"
          type: Installed
      
      actually the bundled is already unpacked and installed. we could know them by bundledeployment.
      kuiwang@kuiwang-mac jb % oc get bd
      NAME            INSTALL STATE           AGE
      quay-operator   InstallationSucceeded   30s
      kuiwang@kuiwang-mac jb % oc get bd quay-operator -o yaml
      apiVersion: core.rukpak.io/v1alpha2
      kind: BundleDeployment
      metadata:
        creationTimestamp: "2024-02-06T02:59:15Z"
        finalizers:
        - core.rukpak.io/delete-cached-bundle
        generation: 1
        name: quay-operator
        ownerReferences:
        - apiVersion: platform.openshift.io/v1alpha1
          blockOwnerDeletion: true
          controller: true
          kind: PlatformOperator
          name: quay-operator
          uid: 99aa03e6-75c5-408f-a00d-0fc786cee21f
        resourceVersion: "102844"
        uid: d33be41a-144a-4d4b-8fe2-21a5d26b141e
      spec:
        provisionerClassName: core-rukpak-io-registry
        source:
          image:
            ref: registry.redhat.io/quay/quay-operator-bundle@sha256:34a0e75c106c6baf0bec422f510540c8cb982f85f13eee3204e9efc09c1cb0dc
          type: image
      status:
        conditions:
        - lastTransitionTime: "2024-02-06T02:59:19Z"
          message: Successfully unpacked the image Bundle
          reason: UnpackSuccessful
          status: "True"
          type: Unpacked
        - lastTransitionTime: "2024-02-06T02:59:20Z"
          message: Instantiated bundle quay-operator successfully
          reason: InstallationSucceeded
          status: "True"
          type: Installed
        - lastTransitionTime: "2024-02-06T02:59:22Z"
          message: BundleDeployment is healthy
          reason: Healthy
          status: "True"
          type: Healthy
        contentURL: https://core.openshift-rukpak.svc/bundles/quay-operator.tgz
        observedGeneration: 1
        resolvedSource:
          image:
            ref: 8054ccef38c4e59af968bf2ae2fd5d0da150f00649f4a27b31904a8ffdeac727
          type: image
      
      

      Actual results:

          the platformoperator CR hangs.

      Expected results:

          the platformoperator CR is created correctly

      Additional info:

          

              krizza@redhat.com Kevin Rizza
              rhn-support-kuiwang Kui Wang
              Kui Wang Kui Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: