Uploaded image for project: 'OpenShift Builds'
  1. OpenShift Builds
  2. BUILD-1194

Default Build Strategies Fail on ARM/Power/Z

XMLWordPrintable

    • 1
    • False
    • None
    • False
    • Hide
      - Cause: When user tries to build on architecture other than AMD
      - Consequence: Build fails with exec format error
      - Fix: AMD only image is replaced with multiarch image in Buildah and Source to Image Build strategies
      - Result: Build succeeds now on all four architectures
      Show
      - Cause: When user tries to build on architecture other than AMD - Consequence: Build fails with exec format error - Fix: AMD only image is replaced with multiarch image in Buildah and Source to Image Build strategies - Result: Build succeeds now on all four architectures
    • Bug Fix
    • Done
    • Builds Sprint #18, Builds Sprint #19
    • 2

      Description of problem:

      Running builds on arm64 arch is broken. The default buildah ClusterBuildStrategy pulls x86 images in arm64 environment.

      Prerequisites (if any, like setup, operators/versions):

      • Builds for OpenShift 1.2.0
      • OpenShift 4.17

      Steps to Reproduce

      • Get a arm64 cluster from cluster bot
      • Install operator in cluster
      • Try making a build and buildrun from the example, using the default buildah ClusterBuildStrategy

      Actual results:

      Build fails with error:

      2024/11/20 14:21:55 Error executing command: fork/exec /bin/bash: exec format error
      

      Expected results:

      Build succeeds

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Builds for OpenShift 1.2.0 (release candidate)

      Additional info (Such as Logs, Screenshots, etc):

      Buildah image appears to be referencing an x86_64 image:

      ```
      ➜ docker inspect registry.redhat.io/ubi8/buildah@sha256:1c89cc3cab0ac0fc7387c1fe5e63443468219aab6fd531c8dad6d22fd999819e | grep architecture "architecture": "x86_64",
      ```

        1. buildah-multi.yaml
          7 kB
          Adam Kaplan
        2. source_to_image_multi.yaml
          5 kB
          Adam Kaplan

              avinkuma@redhat.com Avinal Kumar
              rh-ee-asatyam Ayush Satyam
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: