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

[release-4.15] `oc mirror --config` command failed with exit status 1

XMLWordPrintable

    • No
    • CLID Sprint 253
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, when mirroring operator catalogs, the `oc-mirror` rebuilt the catalogs and regenerated the catalogs internal cache according to the `imagesetconfig` catalog filtering specifications. This operation required the use of the `opm` binary found within the catalogs. In {product-title} 4.15, operator catalogs include the `opm` {op-system-base-full} 9 binary and this caused the mirroring process to fail when running on {op-system-base} 8 systems. With this release, `oc-mirror` no longer builds catalogs by default. Instead, catalogs are mirrored directly to their destination registries. (link:https://issues.redhat.com/browse/OCPBUGS-33575[*OCPBUGS-33575*]
      Show
      * Previously, when mirroring operator catalogs, the `oc-mirror` rebuilt the catalogs and regenerated the catalogs internal cache according to the `imagesetconfig` catalog filtering specifications. This operation required the use of the `opm` binary found within the catalogs. In {product-title} 4.15, operator catalogs include the `opm` {op-system-base-full} 9 binary and this caused the mirroring process to fail when running on {op-system-base} 8 systems. With this release, `oc-mirror` no longer builds catalogs by default. Instead, catalogs are mirrored directly to their destination registries. (link: https://issues.redhat.com/browse/OCPBUGS-33575 [* OCPBUGS-33575 *]
    • Bug Fix
    • Done
    • Customer Escalated

      Description of problem:

          While mirroring with the following command[1], it is observed that the command fails with error[2] as shown below:
      ~~~
      [1] oc mirror --config=imageSet-config.yaml docker://<registry_url>:<Port>/<repository>
      ~~~
      
      ~~~
      [2] error: error rebuilding catalog images from file-based catalogs: error regenerating the cache for <registry_url>:<Port>/<repository>/community-operator-index:v4.15: exit status 1
      ~~~

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

          

      How reproducible:

          100%

      Steps to Reproduce:

          1. Download `oc mirror` v:4.15.0 binary
          2. Create ImageSet-config.yaml
          3. Use the following command:
      ~~~
      oc mirror --config=imageSet-config.yaml docker://<registry_url>:<Port>/<repository>
      ~~~
          4. Observe the mentioned error

      Actual results:

          Command failed to complete with the mentioned error.

      Expected results:

         ICSP and mapping.txt file should be created. 

      Additional info:

          

              skhoury@redhat.com Sherine Khoury
              rhn-support-harspati Harshada Patil
              Rama Kasturi Narra Rama Kasturi Narra
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: