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

The platform-operators-aggregated CO failed to display the resource name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 4.12.0
    • OLM
    • None
    • Important
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      As we can see below, the name of the `platformoperators`, `bundles`, `bundledeployments` are empty.

      MacBook-Pro:ocp412 jianzhang$ oc get co platform-operators-aggregated -o yaml
      apiVersion: config.openshift.io/v1
      kind: ClusterOperator
      metadata:
        annotations:
          exclude.release.openshift.io/internal-openshift-hosted: "true"
          include.release.openshift.io/self-managed-high-availability: "true"
          include.release.openshift.io/single-node-developer: "true"
          release.openshift.io/feature-set: TechPreviewNoUpgrade
        creationTimestamp: "2022-09-22T03:42:03Z"
        generation: 1
        name: platform-operators-aggregated
        ownerReferences:
        - apiVersion: config.openshift.io/v1
          kind: ClusterVersion
          name: version
          uid: 8b620776-b3da-4971-80fb-ba0936fc6656
        resourceVersion: "32151"
        uid: 0aea5f63-6111-4e49-8470-458334ebeb08
      spec: {}
      status:
        conditions:
        - lastTransitionTime: "2022-09-22T04:03:02Z"
          message: All POs in a successful state
          status: "False"
          type: Progressing
        - lastTransitionTime: "2022-09-22T04:03:02Z"
          status: "False"
          type: Degraded
        - lastTransitionTime: "2022-09-22T04:03:02Z"
          message: All POs in a successful state
          reason: POsHealthy
          status: "True"
          type: Available
        extension: null
        relatedObjects:
        - group: ""
          name: openshift-platform-operators
          resource: namespaces
        - group: platform.openshift.io
          name: ""
          resource: platformoperators
        - group: core.rukpak.io
          name: ""
          resource: bundles
        - group: core.rukpak.io
          name: ""
          resource: bundledeployments
        versions:
        - name: operator
          version: 4.12.0-0.nightly-2022-09-20-095559

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

      4.12.0-0.nightly-2022-09-20-095559

      How reproducible:

      always

      Steps to Reproduce:

      1. Create manifests before cluster installation.
      MacBook-Pro:cluster-gcp jianzhang$ ./openshift-install create manifests
      ? SSH Public Key /Users/jianzhang/.ssh/openshift-qe.pub
      ? Platform gcp
      INFO Credentials loaded from file "/Users/jianzhang/.gcp/osServiceAccount.json" 
      ? Project ID OpenShift QE (openshift-qe)
      ? Region us-central1
      ? Base Domain qe.gcp.devcluster.openshift.com
      ? Cluster Name jiazha-22
      ...
      
      2. Create featureGate set and a valid PO.
      MacBook-Pro:cluster-gcp jianzhang$ cat manifests/cert-manager.yaml 
      apiVersion: platform.openshift.io/v1alpha1
      kind: PlatformOperator
      metadata:
        name: cert-manager
      spec:
        package:
          name: openshift-cert-manager-operator
      MacBook-Pro:cluster-gcp jianzhang$ cat manifests/feature-gate.yaml 
      apiVersion: config.openshift.io/v1
      kind: FeatureGate
      metadata:
        annotations:
          include.release.openshift.io/self-managed-high-availability: "true"
          include.release.openshift.io/single-node-developer: "true"
          release.openshift.io/create-only: "true"
        name: cluster
      spec:
        featureSet: TechPreviewNoUpgrade
      
      3. Install the cluster.
      MacBook-Pro:cluster-gcp jianzhang$ ./openshift-install create cluster
      INFO Consuming OpenShift Install (Manifests) from target directory 
      INFO Consuming Common Manifests from target directory 
      INFO Consuming Openshift Manifests from target directory 
      INFO Consuming Worker Machines from target directory 
      INFO Consuming Master Machines from target directory 
      INFO Credentials loaded from file "/Users/jianzhang/.gcp/osServiceAccount.json" 
      INFO Creating infrastructure resources...         
      INFO Waiting up to 20m0s (until 11:59AM) for the Kubernetes API at https://api.jiazha-22.qe.gcp.devcluster.openshift.com:6443... 
      INFO API v1.24.0+07c9eb7 up                       
      INFO Waiting up to 30m0s (until 12:13PM) for bootstrapping to complete... 
      INFO Destroying the bootstrap resources...        
      INFO Waiting up to 40m0s (until 12:35PM) for the cluster at https://api.jiazha-22.qe.gcp.devcluster.openshift.com:6443 to initialize... 
      INFO Checking to see if there is a route at openshift-console/console... 
      INFO Install complete!                            
      INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/Users/jianzhang/gcloud/cluster-gcp/auth/kubeconfig' 
      INFO Access the OpenShift web-console here: https://console-openshift-console.apps.jiazha-22.qe.gcp.devcluster.openshift.com 
      INFO Login to the console with user: "kubeadmin", and password: "xxx" 
      INFO Time elapsed: 31m3s  
      
      4, Check the Cluster operator: platform-operators-aggregated

      Actual results:

       The name of the `platformoperators`, `bundles`, `bundledeployments` are empty.

      Expected results:

      Should display the correct names. As follows,
      
      MacBook-Pro:ocp412 jianzhang$ oc get bundle
      NAME                  TYPE    PHASE      AGE
      cert-manager-59wwfw   image   Unpacked   4h29m
      MacBook-Pro:ocp412 jianzhang$ oc get bundledeployments
      NAME           ACTIVE BUNDLE         INSTALL STATE           AGE
      cert-manager   cert-manager-59wwfw   InstallationSucceeded   4h29m
      MacBook-Pro:ocp412 jianzhang$ oc get platformoperators
      NAME           AGE
      cert-manager   4h44m

      Additional info:

       

            pegoncal@redhat.com Per Goncalves da Silva
            rhn-support-jiazha Jian Zhang
            Jian Zhang Jian Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: