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

oc-mirror generates empty status field in cluster resources.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.20, 4.21, 4.22
    • oc-mirror
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          when performed d2m, the ClusterCatalog,CatalogSource and UpdateService generates empty status field.

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

          

      How reproducible:

          Always

      Steps to Reproduce:

          1.Perform m2d+d2m
          2.check the ClusterCatalog,CatalogSource and UpdateService
          3.status: {} is present in the files.

      Actual results:

      apiVersion: olm.operatorframework.io/v1
      kind: ClusterCatalog
      metadata:
        annotations:
          createdAt: Monday, 23-Feb-26 07:09:18 UTC
          createdBy: oc-mirror v2
          oc-mirror_version: 4.22.0-202602062323.p2.g3a72442.assembly.stream.el9-3a72442
        name: cc-redhat-operator-index-v4-18
      spec:
        priority: 0
        source:
          image:
            ref: localhost:5000/redhat/redhat-operator-index:v4.18
          type: Image
      status: {}
      ====================================================
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      metadata:
        annotations:
          createdAt: Monday, 23-Feb-26 07:09:18 UTC
          createdBy: oc-mirror v2
          oc-mirror_version: 4.22.0-202602062323.p2.g3a72442.assembly.stream.el9-3a72442
        name: cs-redhat-operator-index-v4-18
        namespace: openshift-marketplace
      spec:
        image: localhost:5000/redhat/redhat-operator-index:v4.18
        sourceType: grpc
      status: {}
      ========================================================
      kind: UpdateService
      metadata:
        annotations:
          createdAt: Monday, 23-Feb-26 07:09:18 UTC
          createdBy: oc-mirror v2
          oc-mirror_version: 4.22.0-202602062323.p2.g3a72442.assembly.stream.el9-3a72442
        name: update-service-oc-mirror
      spec:
        graphDataImage: localhost:5000/openshift/graph-image:latest
        releases: localhost:5000/openshift/release-images
        replicas: 2
      status: {}
      

      Expected results:

       status: {} should not be present

      Additional info:

      ISC used:
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        platform:
          channels:
          - name: stable-4.18
            minVersion: 4.18.1
            maxVersion: 4.18.1
          graph: true
        operators:
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.18
            packages:
             - name: aws-load-balancer-operator
             - name: 3scale-operator
             - name: node-observability-operator
      
      ==================================================
      oc-mirror version --v2
      2026/02/23 07:18:49  [INFO]   : 👋 Hello, welcome to oc-mirror
      2026/02/23 07:18:49  [INFO]   : ⚙️  setting up the environment for you...
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.22.0-202602062323.p2.g3a72442.assembly.stream.el9-3a72442", GitCommit:"3a72442ff73a4142d2334a3e300cfaf5342d6b1b", GitTreeState:"clean", BuildDate:"2026-02-07T02:03:11Z", GoVersion:"go1.24.11 (Red Hat 1.24.11-1.el9_6) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

       

       

       

              rh-ee-aguidi Alex Guidi
              rh-ee-ngavali Nidan Gavali
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: