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

When mirroring fails IDMS, ITMS resources are not generated

XMLWordPrintable

    • Important
    • No
    • CLID Sprint 254
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, oc-mirror v2 (Technology Preview) did not generate cluster resources (IDMs and ITMs files) when mirroring failed due to network issues or invalid operator catalogs. With this update, oc-mirror continues mirroring other images when operator or additional images fail, and only stops when release images fail. Cluster resources are generated based on successfully mirrored images, and all errors are collected in a log file for review.
      (link:https://issues.redhat.com/browse/OCPBUGS-34020[*OCPBUGS-34020*])
      Show
      Previously, oc-mirror v2 (Technology Preview) did not generate cluster resources (IDMs and ITMs files) when mirroring failed due to network issues or invalid operator catalogs. With this update, oc-mirror continues mirroring other images when operator or additional images fail, and only stops when release images fail. Cluster resources are generated based on successfully mirrored images, and all errors are collected in a log file for review. (link: https://issues.redhat.com/browse/OCPBUGS-34020 [* OCPBUGS-34020 *])
    • Bug Fix
    • Done

      Description of problem:

      Mirroring fails sometimes due to various number of reasons and since mirror fails, current code does not generate idms & itms files. Even if user tries to mirror the operators  twice or thrice the operators does not get mirrored and no resources are created to utilize the operators that have already been mirrored. This bug is to create idms and itms even if mirroring fails
          

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

           4.16
          

      How reproducible:

           Always
          

      Steps to Reproduce:

          1. Install latest oc-mirror
          2. Use the ImageSetConfig.yaml below
      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      archiveSize: 4
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/certified-operator-index:v4.15
          full: false # only mirror the latest versions
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15
          full: false # only mirror the latest versions
          3. Mirror using the command `oc-mirror -c config.yaml docker://localhost:5000/m2m --dest-skip-verify=false --workspace=file://test`
          

      Actual results:

           Mirroring fails and does not generate any idms or itms files
          

      Expected results:

           IDMS and ITMS files should be generated for the mirrored operators, even if mirroring fails
          

      Additional info:

      
          

            skhoury@redhat.com Sherine Khoury
            knarra@redhat.com Rama Kasturi Narra
            Rama Kasturi Narra Rama Kasturi Narra
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: