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

Build with Local Source Fails Changing File Ownership

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • builds-1.6
    • builds-1.5
    • shp-cli
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Bug Fix

      Description of problem:

      When uploading local source code using the "streaming" method (default), the build fails changing file ownership permissions for the uploaded source code.

      Workaround: TBD

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

      shp CLI v0.16.0
      Builds for OpenShift 1.6
      OpenShift Pipelines 1.20
      OpenShift 4.19

      Steps to Reproduce

      1. Create a build that uses the Git source ("test-build"). Use any build strategy.
      2. Clone the same source code locally to your machine. Make a local change.
      3. Upload the local source code using the shp command line:
      shp build upload test-build .
      

       

      Actual results:

      Build fails changing the UID/GID of the local source code to match that of the running container:

      tar: frontend/webpack.prod.js: Cannot change ownership to uid 103223, gid 103223: Operation not permitted
      tar: shipwright/quizap/backend-build.yaml: Cannot change ownership to uid 103223, gid 103223: Operation not permitted
      tar: shipwright/quizap/frontend-build.yaml: Cannot change ownership to uid 103223, gid 103223: Operation not permitted
      

      Expected results:

      Build succeeds uploading local source code.

      Reproducibility (Always/Intermittent/Only Once): Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

              rh-ee-sabiswas Sayan Biswas
              adkaplan@redhat.com Adam Kaplan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: