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

When mirroring fails IDMS, ITMS resources are not generated

XMLWordPrintable

    • +
    • Important
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      With oc-mirror v2 Tech Preview, when mirroring fails due to various reasons (network, invalid operator catalog content, etc), oc-mirror does not generate cluster resources (idms & itms files).
      With this bug fix, oc-mirror v2 Tech Preview
      * Pursues mirroring other images when errors occur on operator images and additional images, and aborts mirroring when errors occur on release images
      * Generates cluster resources for the cluster based on subset of correctly mirrored images
      * Collects all mirroring errors in a log file
      * logs all mirroring errors in a separate log file
      Show
      With oc-mirror v2 Tech Preview, when mirroring fails due to various reasons (network, invalid operator catalog content, etc), oc-mirror does not generate cluster resources (idms & itms files). With this bug fix, oc-mirror v2 Tech Preview * Pursues mirroring other images when errors occur on operator images and additional images, and aborts mirroring when errors occur on release images * Generates cluster resources for the cluster based on subset of correctly mirrored images * Collects all mirroring errors in a log file * logs all mirroring errors in a separate log file
    • Bug Fix
    • In Progress

      This is a clone of issue OCPBUGS-34020. The following is the description of the original issue:

      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
            openshift-crt-jira-prow OpenShift Prow Bot
            Rama Kasturi Narra Rama Kasturi Narra
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: