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

oc-mirror with v2 can't mirror multi architectures

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 4.15
    • oc-mirror
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      oc-mirror with v2 format can't mirror multi architectures

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

      oc-mirror version 
      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.16.0-202312181310.p0.g82781f2.assembly.stream-82781f2", GitCommit:"82781f2b717ade54f21397606518d1bfe6745a28", GitTreeState:"clean", BuildDate:"2023-12-18T13:41:54Z", GoVersion:"go1.21.3 X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"} 

      How reproducible:

       always

      Steps to Reproduce:

      1. Create imageset that we are using: 
       cat config-multi.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      mirror:
        platform:
          architectures:
            - "multi"
          channels:
          - name: stable-4.13
            minVersion: 4.13.5
            maxVersion: 4.13.6 
      2. run the mirror with v2 format 

      Actual results:

      2. Can't mirror the ocp multi-architecture data:
      oc-mirror --config config-multi.yaml  file://out --v2
      --v2 flag identified, flow redirected to the oc-mirror v2 version. PLEASE DO NOT USE that. V2 is still under development and it is not ready to be used. 
      2023/12/22 07:27:24  [INFO]   : mode mirrorToDisk 
      2023/12/22 07:27:24  [INFO]   : local storage registry will log to /app1/12ocmirror/out/working-dir/logs/registry.log
      2023/12/22 07:27:24  [INFO]   : starting local storage on localhost:55000
      2023/12/22 07:27:24  [INFO]   : processing minimum version 4.13.5 and maximum version 4.13.6
      2023/12/22 07:29:36  [ERROR]  : error list APIRequestError: channel "stable-4.13": RemoteFailed: Get "https://api.openshift.com/api/upgrades_info/v1/graph?arch=multi&channel=stable-4.13&id=ede3389a-3199-46f5-b9e6-dbc8baab8fca": dial tcp 10.0.112.69:443: connect: connection timed out 
      2023/12/22 07:29:36  [INFO]   : copying  cincinnati response to out/working-dir/release-filters
      2023/12/22 07:29:36  [INFO]   : total release images to copy 0 
      2023/12/22 07:29:36  [ERROR]  : [OperatorImageCollector] open out/working-dir/logs/logs/operator.log: no such file or directory 
      2023/12/22 07:29:36  [INFO]   : related images length 0 
      2023/12/22 07:29:36  [INFO]   : images to copy (before duplicates) 0 
      2023/12/22 07:29:36  [INFO]   : total operator images to copy 0 
      2023/12/22 07:29:36  [INFO]   : total additional images to copy 0 
      2023/12/22 07:29:36  [INFO]   : images to mirror 0 
      2023/12/22 07:29:36  [INFO]   : batch count 1 
      2023/12/22 07:29:36  [INFO]   : batch index 0 
      2023/12/22 07:29:36  [INFO]   : batch size 0 
      2023/12/22 07:29:36  [INFO]   : remainder size 0 
      2023/12/22 07:29:36  [INFO]   : starting batch 0 
      2023/12/22 07:29:36  [INFO]   : completed batch 0
      2023/12/22 07:29:39  [INFO]   : archive file generated: out/mirror_000001.tar 
      2023/12/22 07:29:39  [INFO]   : start time      : 2023-12-22 07:27:24.376786076 +0000 UTC m=+0.064095789
      2023/12/22 07:29:39  [INFO]   : collection time : 2023-12-22 07:29:36.102252844 +0000 UTC m=+131.789562707
      2023/12/22 07:29:39  [INFO]   : mirror time     : 2023-12-22 07:29:39.922050794 +0000 UTC m=+135.609360507
      
       ll out/ -h
      total 3.1M
      -rw-r--r--. 1 root root 3.1M Dec 22 07:29 mirror_000001.tar
      drwxr-xr-x. 9 root root 4.0K Dec 22 07:29 working-dir
      

      Expected results:

      mirror correct multi-arch ocp images

      Additional info:

       same for arm64 archetecture.

              luzuccar@redhat.com Luigi Mario Zuccarelli
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: