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

Ecosystem: s2i-java fails

XMLWordPrintable

    • False
    • None
    • False

      Description of problem:

      Pipeline using s2i-java ecosystem task fails with "/usr/libexec/s2i/assemble: No such file or directory"

      Workaround

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

      Pipelines 1.16.1, 1.7.0
      OpenShift 4.15-4.18

      Steps to Reproduce

       # Create a PVC

      1. Create below pipeline
      2. run the pipeline
      apiVersion: tekton.dev/v1
      kind: Pipeline
      metadata:
        name: s2i-java-pipeline
      spec:
        params:
        - name: VERSION
          description: The tag of 'java' imagestream for Java version
        workspaces:
        - name: source
        tasks:
        - name: clone-git-repo
          taskRef:
            resolver: cluster
            params:
            - name: kind
              value: task
            - name: name
              value: git-clone
            - name: namespace
              value: openshift-pipelines
          workspaces:
          - name: output
            workspace: source
          params:
          - name: URL
            value: https://github.com/jboss-openshift/openshift-quickstarts.git
          - name: SUBDIRECTORY
            value: s2i-java-$(params.VERSION)
          - name: DELETE_EXISTING
            value: "true"
          - name: REVISION
            value: master
        - name: build
          taskRef:
            resolver: cluster
            params:
            - name: kind
              value: task
            - name: name
              value: s2i-java
            - name: namespace
              value: openshift-pipelines
          runAfter: 
          - clone-git-repo
          workspaces:
          - name: source
            workspace: source
          params:
          - name: IMAGE
            value: image-registry.openshift-image-registry.svc:5000/$(context.pipelineRun.namespace)/s2i-java-$(params.VERSION)
          - name: CONTEXT
            value: s2i-java-$(params.VERSION)/undertow-servlet
          - name: TLSVERIFY
            value: "true"
          - name: VERSION
            value: $(params.VERSION)
          retries: 1
      
      

       

      Actual results:

      s2i-java task fails with following error

      step-s2i-build
      
      2024-12-09T17:31:09.549345295Z ---> Phase: Changing s2i-java-latest/undertow-servlet to point to present working directory...
      2024-12-09T17:31:09.549345295Z ---> Phase: Inspecting context '.'...
      2024-12-09T17:31:09.549345295Z ---> Phase: Building the Dockerfile '/s2i-generate/Dockerfile.gen' with buildah...
      2024-12-09T17:31:09.568851205Z ---> Phase: Inspecting source workspace '/workspace/source' (PWD='/s2i-generate')...
      2024-12-09T17:31:09.568851205Z ---> Phase: Asserting the dockerfile/containerfile '/s2i-generate/Dockerfile.gen' exists...
      2024-12-09T17:31:09.568851205Z ---> Phase: Inspecting context '.'...
      2024-12-09T17:31:09.568851205Z ---> Phase: Building build args...
      2024-12-09T17:31:09.568851205Z ---> Phase: Building 'image-registry.openshift-image-registry.svc:5000/ppitonak/s2i-java-latest' based on '/s2i-generate/Dockerfile.gen'...
      2024-12-09T17:31:10.012096902Z STEP 1/8: FROM image-registry.openshift-image-registry.svc:5000/openshift/java:latest
      2024-12-09T17:31:10.499934684Z Trying to pull image-registry.openshift-image-registry.svc:5000/openshift/java:latest...
      2024-12-09T17:31:10.852730139Z Getting image source signatures
      2024-12-09T17:31:10.888756778Z Copying blob sha256:5eabdb3505a74f176403f25a8db613cb4f8aa3ef8ac65f1ff6b2d4d55337321e
      2024-12-09T17:31:10.888756778Z Copying blob sha256:1d273cf0c199c6c723f6a09f3637ae3b3e124fc663e51e395f297f60b6baa05f
      2024-12-09T17:31:10.888756778Z Copying blob sha256:759b69d3a3ddf803810f5cb6b366c76f9f4991a1ef3a2b16bc7fc67c2cd78b42
      2024-12-09T17:31:49.360982923Z Copying config sha256:1bf7334957ba73616ad015e710b6630fb04ddcd32d885a6384a3c7710e5c23d1
      2024-12-09T17:31:49.360982923Z Writing manifest to image destination
      2024-12-09T17:31:56.209129450Z STEP 2/8: LABEL "io.openshift.s2i.build.image"="image-registry.openshift-image-registry.svc:5000/openshift/java:latest"       "io.openshift.s2i.build.source-location"="/workspace/source/s2i-java-latest/undertow-servlet"
      2024-12-09T17:31:56.703178919Z STEP 3/8: USER root
      2024-12-09T17:31:57.887773915Z STEP 4/8: COPY upload/src /tmp/src
      2024-12-09T17:32:00.173764284Z STEP 5/8: RUN chown -R 1001:0 /tmp/src
      2024-12-09T17:32:04.819637784Z STEP 6/8: USER 1001
      2024-12-09T17:32:04.883918998Z STEP 7/8: RUN /usr/libexec/s2i/assemble
      2024-12-09T17:32:07.117938318Z /bin/sh: /usr/libexec/s2i/assemble: No such file or directory
      2024-12-09T17:32:07.229952448Z subprocess exited with status 127
      2024-12-09T17:32:07.275738372Z subprocess exited with status 127
      2024-12-09T17:32:08.927441700Z Error: building at STEP "RUN /usr/libexec/s2i/assemble": exit status 127
      

      Expected results:

      Image is built

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

       

       *

              vdemeest Vincent Demeester
              ppitonak Pavol Pitoňák
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: