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

oc-mirror includes on the IDMS file a status line

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • CLID Sprint 279, CLID Sprint 280
    • 2
    • Done
    • Bug Fix
    • Hide
      * Before this update, the oc-mirror tool was generating `ImageDigestMirrorSet` (IDMS) files that included an unnecessary, empty `status:` line at the end of the configuration. This caused automated deployment failures and API validation errors, as the empty field was often flagged as an invalid schema or an incomplete resource during the synchronization process. With this release, the file generation logic has been corrected to completely strip the empty status line from all generated IDMS files. This improvement streamlines automated workflows by ensuring that mirrored files are immediately compatible with Kubernetes-native tools, enabling more reliable GitOps integrations and reducing manual intervention during large-scale deployments. (link:https://issues.redhat.com/browse/OCPBUGS-63480[OCPBUGS-63480])
      Show
      * Before this update, the oc-mirror tool was generating `ImageDigestMirrorSet` (IDMS) files that included an unnecessary, empty `status:` line at the end of the configuration. This caused automated deployment failures and API validation errors, as the empty field was often flagged as an invalid schema or an incomplete resource during the synchronization process. With this release, the file generation logic has been corrected to completely strip the empty status line from all generated IDMS files. This improvement streamlines automated workflows by ensuring that mirrored files are immediately compatible with Kubernetes-native tools, enabling more reliable GitOps integrations and reducing manual intervention during large-scale deployments. (link: https://issues.redhat.com/browse/OCPBUGS-63480 [ OCPBUGS-63480 ])
    • None
    • None
    • None
    • None

      Description of problem:

      Mirroring day-2 operator images from the redhat-operator-index:v4.20 with the oc-mirror 4.20.0 binary on (--v2 mode), you get as an output some files including the "idms-oc-mirror.yaml" IDMS file. This file at end has a "status: {}" line. In oc-mirror 4.18 versions the output file was the ICSP file that didn't included this status line.

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

      oc-mirror Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.20.0-202509230043.p2.g767d31f.assembly.stream.el9-767d31f", GitCommit:"767d31f19e91d387f62c700ef45002a712da87c5", GitTreeState:"clean", BuildDate:"2025-09-23T05:17:25Z", GoVersion:"go1.24.4 (Red Hat 1.24.4-1.module+el8.10.0+23323+67916f33) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      Mirroring day-2 operator images from the redhat-operator-index:v4.20 with the oc-mirror 4.20.0 binary on (--v2 mode)

      Steps to Reproduce:

      1. Mirror one day2-operator from the redhat-operator-index:v4.20 (ex: lvms-operator) with the oc-mirror 4.20.0 binary on (--v2 mode)
      2. Check the output file "working-dir/cluster-resources/idms-oc-mirror.yaml" and look for the file's last row.
          

      Actual results:

      apiVersion: config.openshift.io/v1
      kind: ImageDigestMirrorSet
      metadata:
        name: idms-operator-0
      spec:
        imageDigestMirrors:
        - mirrors:
          - registry.offline.redhat.lan:5000/compliance/openshift-compliance-rhel8-operator
          source: registry.redhat.io/compliance/openshift-compliance-rhel8-operator
      status: {}

      Expected results:

      apiVersion: config.openshift.io/v1
      kind: ImageDigestMirrorSet
      metadata:
        name: idms-operator-0
      spec:
        imageDigestMirrors:
        - mirrors:
          - registry.offline.redhat.lan:5000/compliance/openshift-compliance-rhel8-operator
          source: registry.redhat.io/compliance/openshift-compliance-rhel8-operator

      Additional info:

      This single line impacts on the automated deployment of this IDMS using Gitops

              dorzel Dylan Orzel
              rh-ee-feferran Federico Ferrando
              None
              None
              May Xu May Xu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: