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

Hitting issues while running e2e tests on oc-mirror plugin on Power


    • Important
    • No
    • Multi-Arch Sprint 243, Multi-Arch Sprint 244, Multi-Arch Sprint 245, Multi-Arch Sprint 247, Multi-Arch Sprint 248, Multi-Arch Sprint 249, Multi-Arch Sprint 250, Multi-Arch Sprint 251, Multi-Arch Sprint 252
    • 9
    • Rejected
    • ppc64le
    • False
    • Hide


    • Release Note Not Required

      Description of problem:

      E2E test failing   
      1. Clone oc-mirror repository
      git clone https://github.com/openshift/oc-mirror.git && cd oc-mirror
      2. Find the oc-mirror image in the release: https://mirror.openshift.com/pub/openshift-v4/multi/clients/ocp/4.14.0-rc.2/ppc64le/release.txt
      oc-mirror quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:fff150b00081ed565169de24cfc82481c5017de73986552d15d129530b62e531
      3. Pull container
      podman pull quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:fff150b00081ed565169de24cfc82481c5017de73986552d15d129530b62e531
      4. Extract binary
      mkdir bin
      container_id=$(podman create quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:fff150b00081ed565169de24cfc82481c5017de73986552d15d129530b62e531)
      podman cp ${container_id}:usr/bin/oc-mirror bin/oc-mirror
      5. comfirm file
      [root@rdr-ani-014-bastion-0 oc-mirror]# file bin/oc-mirror bin/oc-mirror: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, interpreter /lib64/ld64.so.2, for GNU/Linux 3.10.0, Go BuildID=HuBgap--bII0r0Nw0GxI/SOZCyTWk4pH5ciuQtUO8/ib6uaSW-eAJl24Zzk-G2/O4yxlKreHK_BaH9F4RU6, BuildID[sha1]=c018e70301e18c23f2c119ba451a32aff980d618, with debug_info, not stripped, too many notes (256)
      6. Build go-toolset and run e2e test
      [root@rdr-ani-014-bastion-0 oc-mirror]# podman build -f Dockerfile -t local/go-toolset:latest
      Successfully tagged localhost/local/go-toolset:latest
      [root@rdr-ani-014-bastion-0 oc-mirror]# podman run -it -v $(pwd):/build:z --entrypoint /bin/bash local/go-toolset:latest ./test/e2e/e2e-simple.sh bin/oc-mirror | tee oc-mirror-e2e.log  /build/test/e2e/operator-test.28124 /build
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
      100 49.0M  100 49.0M    0     0  60.2M      0 --:--:-- --:--:-- --:--:--  106M
      go: downloading github.com/google/go-containerregistry v0.16.1
      go: downloading github.com/docker/cli v24.0.0+incompatible
      go: downloading github.com/opencontainers/image-spec v1.1.0-rc3
      go: downloading github.com/spf13/cobra v1.7.0
      go: downloading github.com/mitchellh/go-homedir v1.1.0
      go: downloading golang.org/x/sync v0.2.0
      go: downloading github.com/opencontainers/go-digest v1.0.0
      go: downloading github.com/docker/distribution v2.8.2+incompatible
      go: downloading github.com/google/go-cmp v0.5.9
      go: downloading github.com/containerd/stargz-snapshotter/estargz v0.14.3
      go: downloading github.com/spf13/pflag v1.0.5
      go: downloading github.com/klauspost/compress v1.16.5
      go: downloading github.com/vbatts/tar-split v0.11.3
      go: downloading github.com/pkg/errors v0.9.1
      go: downloading github.com/docker/docker v24.0.0+incompatible
      go: downloading golang.org/x/sys v0.8.0
      go: downloading github.com/docker/docker-credential-helpers v0.7.0
      go: downloading github.com/sirupsen/logrus v1.9.1
      INFO: Running 22 test cases
      INFO: Running full_catalog
      sha256:17de509b5c9e370d501951850ba07f6cbefa529f598f3011766767d1181726b3 localhost.localdomain:5001/skhoury/oc-mirror-dev:4138bec2
      info: Mirroring completed in 40ms (119.4kB/s)
      worker 0 stopping
      worker 1 stopping
      worker 5 stopping
      worker 3 stopping
      worker 2 stopping
      worker 3 stopping
      worker 2 stopping
      worker 4 stopping
      work queue exiting
      No images specified for pruning
      Unpack release signatures
      worker 1 stopping
      work queue exiting
      worker 0 stopping
      Wrote release signatures to oc-mirror-workspace/results-1695964813
      rebuilding catalog images
      Rendering catalog image "localhost.localdomain:5001/skhoury/oc-mirror-dev:test-catalog-latest" with file-based catalog
      error: error rebuilding catalog images from file-based catalogs: error regenerating the cache for localhost.localdomain:5001/skhoury/oc-mirror-dev:test-catalog-latest: fork/exec oc-mirror-workspace/images.1753960055/catalogs/localhost.localdomain:5000/skhoury/oc-mirror-dev/test-catalog-latest/bin/opm: exec format error

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


      How reproducible:


      Steps to Reproduce

       Same as details provided in description

      Actual results:

      E2E test is getting terminated in between the execution

      Expected results:

      E2E testing should pass with no errors

      Additional info:

      E2E logs are provided here:
      oc-mirror-e2e.log - https://github.ibm.com/redstack-power/project-mgmt/issues/3284#issuecomment-63722862
      re-oc-mirror-e2e.log - https://github.ibm.com/redstack-power/project-mgmt/issues/3284#issuecomment-63806863  

            pbastide_rh Paul Bastide
            anayek Aniruddha Nayek
            Julie Mathew Julie Mathew
            0 Vote for this issue
            10 Start watching this issue