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

The archive tar file size should respect the archiveSize setting when mirror with V2 format

XMLWordPrintable

    • Important
    • None
    • CLID Sprint 253
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress
    • Customer Facing

      Description of problem:

      The archive tar file size should respect the archiveSize setting when mirror with V2 format

       

      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-202403070215.p0.gc4f8295.assembly.stream.el9-c4f8295", GitCommit:"c4f829512107f7d0f52a057cd429de2030b9b3b3", GitTreeState:"clean", BuildDate:"2024-03-07T03:46:24Z", GoVersion:"go1.21.7 (Red Hat 1.21.7-1.el9) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      1) With following imagesetconfigure : 
      cat config.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      archiveSize: 8
      storageConfig:
        local:
          path: /app1/ocmirror/offline
      mirror:
        platform:
          channels:
          - name: stable-4.12                                             
            type: ocp
            minVersion: '4.12.46'
            maxVersion: '4.12.46'
            shortestPath: true
          graph: true
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15
          packages:
          - name: advanced-cluster-management                                  
            channels:
            - name: release-2.9             
          - name: compliance-operator
            channels:
            - name: stable
          - name: multicluster-engine
            channels:
            - name: stable-2.4
            - name: stable-2.5
        additionalImages:
        - name: registry.redhat.io/ubi8/ubi:latest                        
        - name: registry.redhat.io/rhel8/support-tools:latest
        - name: registry.access.redhat.com/ubi8/nginx-120:latest
        - name: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.8.0
        - name: registry.k8s.io/sig-storage/csi-resizer:v1.8.0
        - name: quay.io/openshifttest/hello-openshift@sha256:4200f438cf2e9446f6bcff9d67ceea1f69ed07a2f83363b7fb52529f7ddd8a83
        - name: quay.io/openshifttest/hello-openshift@sha256:61b8f5e1a3b5dbd9e2c35fd448dc5106337d7a299873dd3a6f0cd8d4891ecc27
      
      2) Run `oc-mirror --config config.yaml file://out --v2`

      Actual results: 

      2) The archive size is still 49G , not following the setting in imagesetconfigure.
      ll  out/ -h
      total 49G
      -rw-r--r--.  1 root root  49G Mar 20 09:03 mirror_000001.tar
      drwxr-xr-x. 11 root root 4.0K Mar 20 08:54 working-dir

      Expected results:

      multiple tar files with size greater or equal to 8G should be generated 

            skhoury@redhat.com Sherine Khoury
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: