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

Git-Clone tasks fails with Permission Denied for `.git` with NFS volume

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Pipelines 1.18.0
    • Tekton Ecosystem
    • 2
    • True
    • Hide

      Waiting for CEE team to provide NFS server details.

      Show
      Waiting for CEE team to provide NFS server details.
    • False
    • Pipelines Sprint Tekshift 36, Pipelines Sprint Tekshift 37

      Description of problem:

      • Using NFS volume claim template, and the git-clone task, the git-clone task is failing with error "could not open '.git/<path>/<tmp-file>' for reading: Permission denied" file made from the git clone command. This was tested on OpenShift versions 4.18, 4.15, and 4.16, on each version the same error was produced where the git-clone task did not have permissions to the tmp file created after cloning the repository down.

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

      Steps to Reproduce

      • Create pipeline with git-clone task 
      • Set NFS volume
      • Run pipeline with git repo and other params

      Actual results:

      • Failed with error:
      Error running git [fetch --recurse-submodules=yes --depth=1 origin --update-head-ok --force MQ_SorinDev]: exit status 128\nfatal: could not open '.git/<path>/<tmp-file>' for reading: Permission denied

      Expected results:

      • Cloned repo and TaskRun completed successfully

      Reproducibility (Always/Intermittent/Only Once): None

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

       *

              rh-ee-abghosh Abhishek Ghosh
              rhn-support-sburhade Satyam Burhade
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: