Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-2375

Catalog: jib-maven task doesn't work on ARM64 cluster

XMLWordPrintable

    • 2
    • False
    • None
    • False
    • Jib-maven task now works with default image on all the four environments. no need to use different image for P & Z
    • Pipelines Sprint 222, Pipelines Sprint 223, Pipelines Sprint 224, Pipelines Sprint 225, Pipelines Sprint 226, Pipelines Sprint 227, Pipelines Sprint 228, Pipelines Sprint 229, Pipelines Sprint 230, Pipelines Sprint 236, Pipelines Sprint 237, Pipelines Sprint 238, Pipelines Sprint 239, Pipelines Sprint 240

      Expected behavior

      jib-maven task works out-of-the-box on all architectures

      Actual behavior

      jib-maven task references amd64-only image by default so it's not usable on arm64 clusters.

      Workaround

      Use "maven:3.6.3-adoptopenjdk-11" (or newer maven:3.8.3-adoptopenjdk-16) similarly to what we documented as a known issue for P&Z

      Notes

      Ideally, we would use the same image that is used in s2i-java and maven tasks - registry.svc:5000/openshift/java:latest but that one did not work for me.

      [INFO] Building resources layer...
      [INFO] Building classes layer...
      [INFO] Building jvm arg files layer...
      [INFO] Using credentials from Docker config (/tekton/creds/.docker/config.json) for image-registry.openshift-image-registry.svc:5000/catalog1/jib-maven
      [INFO] The base image requires auth. Trying again for eclipse-temurin:8-jre...
      [INFO] Using base image with digest: sha256:69f573a0ff0a0a8328f952d91c139d11710b8df0320f521f3016db3551955f5e
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will be retried
      [WARNING] GET https://image-registry.openshift-image-registry.svc:5000/v2/ failed and will NOT be retried
      [ERROR] I/O error for image [image-registry.openshift-image-registry.svc:5000/catalog1/jib-maven]:
      [ERROR]     javax.net.ssl.SSLHandshakeException
      [ERROR]     PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      

            piyushgarg001 Piyush Garg
            ppitonak Pavol Pitoňák
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: