------scenario: without architecture field should download the arch where oc-mirror run - expected output: only one architecture expected in the binaries (amd64)--------- apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration mirror: platform: channels: - name: stable-4.15 #mirrorToDisk ./bin/oc-mirror -c ./alex-tests/alex-isc/clid-79.yaml file:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/alex-tests/clid-79-single --v2 #diskToMirror ./bin/oc-mirror -c ./alex-tests/alex-isc/clid-79.yaml --from file:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/alex-tests/clid-79-single docker://localhost:6000 --v2 #copy from local registry to disk to check the architectures of the binaries inside of the images mirrored (ocp-release) skopeo copy --all docker://localhost:6000/openshift-release-dev/ocp-release:4.15.5-x86_64 dir:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/ocp-release-single #untar the ocp-release using the digest which contains the cluster-version-operator binary tar -xvf ./ocp-release-single/34256d23ac0bb27458c598b3e26d3e825f8e6c576651284417354fd6d90d7472 -C ./ocp-release-single/untared/ #check the binary architecture of the cluster-version-operator file ./ocp-release-single/untared/usr/bin/cluster-version-operator ./ocp-release-single/untared/usr/bin/cluster-version-operator: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=5e79c5c1764352e608b148e6cbb23388f409e993, for GNU/Linux 3.2.0, with debug_info, not stripped #copy from local registry to disk to check the architectures of the binaries inside of the images mirrored (openshift-release-dev/ocp-v4.0-art-dev) skopeo copy --all docker://localhost:6000/openshift-release-dev/ocp-v4.0-art-dev@sha256:c5052e0e7fc81a160a911d3f2b73035790dda207873a6103f3b753406edd6824 dir:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/amd64-openshift-release-dev/ocp-v4.0-art-dev #untar the openshift-release-dev/ocp-v4.0-art-dev using the digest which contains the assisted-service binary tar -xvf ./amd64-openshift-release-dev/ocp-v4.0-art-dev/759cee889b885e694f52f485963a22292e4387fb1578d4a09d7b490954934ade -C ./amd64-openshift-release-dev/ocp-v4.0-art-dev/untared/ #check the binary architecture of the assisted-service binary file ./amd64-openshift-release-dev/ocp-v4.0-art-dev/untared/assisted-service ./amd64-openshift-release-dev/ocp-v4.0-art-dev/untared/assisted-service: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, Go BuildID=QeCjTJxwON2JCoyK3Z9g/QcECLTsD17Z9BpnMWW1a/8kKCnqh-2H0pyfEYoP_x/Qh7DgHt5TPPbWO7pMxvv, BuildID[sha1]=7cd7be9b42a0c4a03c3e1623ab76cbdf12a445f3, with debug_info, not stripped ------scenario: arm64 expected output: only one architecture expected in the binaries (arm64)--------- apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration mirror: platform: architectures: - "arm64" channels: - name: stable-4.15 #mirrorToDisk ./bin/oc-mirror -c ./alex-tests/alex-isc/clid-79.yaml file:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/alex-tests/clid-79-arm64 --v2 #diskToMirror ./bin/oc-mirror -c ./alex-tests/alex-isc/clid-79.yaml --from file:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/alex-tests/clid-79-arm64 docker://localhost:6000 --v2 #copy from local registry to disk to check the architectures of the binaries inside of the images mirrored (ocp-release) skopeo copy --all docker://localhost:6000/openshift-release-dev/ocp-release:4.15.5-aarch64 dir:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/ocp-release-arm #untar the ocp-release using the digest which contains the cluster-version-operator binary tar -xvf 9d4ab9f059133daad6d3a1231b0d6823c0b24768d48aac912f475decaa65deab -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/ocp-release-arm/untared #check the binary architecture of the cluster-version-operator file ./ocp-release-arm/untared/usr/bin/cluster-version-operator ./untared/usr/bin/cluster-version-operator: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=7bbe20c1c9061c4d457bc2c2408a2ff89c00b214, for GNU/Linux 3.7.0, with debug_info, not stripped #copy from local registry to disk to check the architectures of the binaries inside of the images mirrored (openshift-release-dev/ocp-v4.0-art-dev) skopeo copy --all docker://localhost:6000/openshift-release-dev/ocp-v4.0-art-dev@sha256:a39ae848a1b90c5ee139077468722a90c9c2fa528ecd370490cb937474cafa3b dir:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/arm-openshift-release-dev/ocp-v4.0-art-dev #check the binary architecture of the assisted-service binary file ./untared/assisted-service ./untared/assisted-service: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, Go BuildID=ADlWonhCuvrgur_UckCH/uGYsW-bt2Cl8NR_LA1sb/UgXyG_KI3fCmg8epKXAK/2_pCcGqXBSYke3iABw_8, BuildID[sha1]=ca9e4d5710a0f354d2ae6f33a5e7221e82f904bc, with debug_info, not stripped ------scenario: multi expected output: 4 different architectures expected in the binaries--------- apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration mirror: platform: architectures: - "multi" channels: - name: stable-4.15 #mirrorToDisk ./bin/oc-mirror -c ./alex-tests/alex-isc/clid-79.yaml file:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/alex-tests/clid-79-multi --v2 #diskToMirror ./bin/oc-mirror -c ./alex-tests/alex-isc/clid-79.yaml --from file:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/alex-tests/clid-79-multi docker://localhost:6000 --v2 #copy from local registry to disk to check the architectures of the binaries inside of the images mirrored (ocp-release) skopeo copy --all docker://localhost:6000/openshift-release-dev/ocp-release:4.15.5-multi dir:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/ocp-release-multi #untar the ocp-release using the digest which contains the cluster-version-operator binary tar -xvf ./ocp-release-multi/34256d23ac0bb27458c598b3e26d3e825f8e6c576651284417354fd6d90d7472 -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/ocp-release-multi/untared1 tar -xvf ./ocp-release-multi/3a1feee20f3e285469515ac68b00e7810c212ba4a927eb66430857615bc07013 -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/ocp-release-multi/untared2 tar -xvf ./ocp-release-multi/9d4ab9f059133daad6d3a1231b0d6823c0b24768d48aac912f475decaa65deab -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/ocp-release-multi/untared3 tar -xvf ./ocp-release-multi/f636ae346ba17b44d4749eaf2c19dbbfd90723d4ef791389d0b08c77c7f4af12 -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/ocp-release-multi/untared4 #check the binary architecture of the cluster-version-operator file ./ocp-release-multi/untared1/usr/bin/cluster-version-operator ./ocp-release-multi/untared1/usr/bin/cluster-version-operator: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=5e79c5c1764352e608b148e6cbb23388f409e993, for GNU/Linux 3.2.0, with debug_info, not stripped file ./ocp-release-multi/untared2/usr/bin/cluster-version-operator ./ocp-release-multi/untared2/usr/bin/cluster-version-operator: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.1, BuildID[sha1]=b74950a9a54fffe014404cd0a3c523117cbf99eb, for GNU/Linux 3.2.0, with debug_info, not stripped file ./ocp-release-multi/untared3/usr/bin/cluster-version-operator ./ocp-release-multi/untared3/usr/bin/cluster-version-operator: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=7bbe20c1c9061c4d457bc2c2408a2ff89c00b214, for GNU/Linux 3.7.0, with debug_info, not stripped file ./ocp-release-multi/untared4/usr/bin/cluster-version-operator ./ocp-release-multi/untared4/usr/bin/cluster-version-operator: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI, version 1 (SYSV), dynamically linked, interpreter /lib64/ld64.so.2, BuildID[sha1]=2908edd58f3728e20844612746589f2736726883, for GNU/Linux 3.10.0, with debug_info, not stripped #copy from local registry to disk to check the architectures of the binaries inside of the images mirrored (openshift-release-dev/ocp-v4.0-art-dev) skopeo copy --all docker://localhost:6000/openshift-release-dev/ocp-v4.0-art-dev@sha256:088ae1ea14fba19cf9b3b673a3f904a7804e24fb811740d11fc0baf76133abfe dir:///home/aguidi/go/src/github.com/aguidirh/oc-mirror/multi-openshift-release-dev/ocp-v4.0-art-dev #untar the openshift-release-dev/ocp-v4.0-art-dev using the digest which contains the assisted-service binary tar -xvf ./multi-openshift-release-dev/ocp-v4.0-art-dev/389cac62e61dda31a5dad99df81e3a1b5e52f093197be05104ded0759ac371e8 -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/multi-openshift-release-dev/ocp-v4.0-art-dev/untared1 tar -xvf ./multi-openshift-release-dev/ocp-v4.0-art-dev/759cee889b885e694f52f485963a22292e4387fb1578d4a09d7b490954934ade -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/multi-openshift-release-dev/ocp-v4.0-art-dev/untared2 tar -xvf ./multi-openshift-release-dev/ocp-v4.0-art-dev/7be99e31b7a83324cfca47b2c2d5cf2143a1ab3fa491f1d1fa9879aedee6a677 -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/multi-openshift-release-dev/ocp-v4.0-art-dev/untared3 tar -xvf ./multi-openshift-release-dev/ocp-v4.0-art-dev/cc787e368c1fb54444522adbb8d71408016c4d3270bee71ff9f892c5904b229a -C /home/aguidi/go/src/github.com/aguidirh/oc-mirror/multi-openshift-release-dev/ocp-v4.0-art-dev/untared4 #check the binary architecture of the assisted-service binary file ./multi-openshift-release-dev/ocp-v4.0-art-dev/untared1/assisted-service ./multi-openshift-release-dev/ocp-v4.0-art-dev/untared1/assisted-service: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.1, for GNU/Linux 3.2.0, Go BuildID=Lf-g2YaT8UzsUeAeSyFm/1NsiCl1HTOydSBk14GUj/Y2GFiy86hBIypD8Hlykc/8iGYu_v9ljXrFVQRWoKM, BuildID[sha1]=3cb6411c18069bea72f759360f8b05b16f83e01d, with debug_info, not stripped file ./multi-openshift-release-dev/ocp-v4.0-art-dev/untared2/assisted-service ./multi-openshift-release-dev/ocp-v4.0-art-dev/untared2/assisted-service: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, Go BuildID=QeCjTJxwON2JCoyK3Z9g/QcECLTsD17Z9BpnMWW1a/8kKCnqh-2H0pyfEYoP_x/Qh7DgHt5TPPbWO7pMxvv, BuildID[sha1]=7cd7be9b42a0c4a03c3e1623ab76cbdf12a445f3, with debug_info, not stripped file ./multi-openshift-release-dev/ocp-v4.0-art-dev/untared3/assisted-service ./multi-openshift-release-dev/ocp-v4.0-art-dev/untared3/assisted-service: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, Go BuildID=ADlWonhCuvrgur_UckCH/uGYsW-bt2Cl8NR_LA1sb/UgXyG_KI3fCmg8epKXAK/2_pCcGqXBSYke3iABw_8, BuildID[sha1]=ca9e4d5710a0f354d2ae6f33a5e7221e82f904bc, with debug_info, not stripped file ./multi-openshift-release-dev/ocp-v4.0-art-dev/untared4/assisted-service ./multi-openshift-release-dev/ocp-v4.0-art-dev/untared4/assisted-service: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI, version 1 (SYSV), dynamically linked, interpreter /lib64/ld64.so.2, for GNU/Linux 3.10.0, Go BuildID=j4AwKC1wJ5ah8qbu8Qsb/9mK2lai9TCUQNMyhiJKW/WiBDS1RxoLtcxZZ_LNWA/ucL8TdOBKDjm-Ucb8e8q, BuildID[sha1]=1f88d9095110a8ae5a9ae2d10bb215bced4d668a, with debug_info, not stripped