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

git-clone ClusterTask (0.9) can't access PVC

    XMLWordPrintable

Details

    • 2
    • False
    • None
    • False
    • Pipelines Sprint 241, Pipelines Sprint 242

    Description

      Description of problem:

      I'm running the git-clone ClusterTask (0.9) and having some issues

      + '[' -d /workspace/output/ ']'
      + rm -rf '/workspace/output//*'
      + rm -rf '/workspace/output//.[!.]*'
      + rm -rf '/workspace/output//..?*'
      + test -z ''
      + test -z ''
      + test -z ''
      + git config --global --add safe.directory /workspace/output
      error: could not lock config file /home/git/.gitconfig: No such file or directory

      Adding the SecurityContext to the PipelineRun didn't solve the issue
      podTemplate:
        securityContext:
          fsGroup: 65532
       

      Workaround

      Use git-clone task 0.8

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

      • Openshift Pipelines 1.10.2
      • Openshift 4.12
      • Use git-clone cluster task
      • Create PVC (Local Storage Operator if that matters)

      Steps to Reproduce

      •  Create a pipeline using the git-clone ClusterTask

       

      Actual results:

      + '[' -d /workspace/output/ ']'
      + rm -rf '/workspace/output//*'
      + rm -rf '/workspace/output//.[!.]*'
      + rm -rf '/workspace/output//..?*'
      + test -z ''
      + test -z ''
      + test -z ''
      + git config --global --add safe.directory /workspace/output
      error: could not lock config file /home/git/.gitconfig: No such file or directory

      Expected results:

      The pipeline runs with no issues

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

       

      Definition of Done:

      Fix issue or guidance on how to run this task version

      Build Details:

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

       

       *

      Attachments

        1. pipeline.yaml
          0.3 kB
        2. pr1.yaml
          0.3 kB
        3. pvc.yaml
          0.2 kB

        Activity

          People

            rh-ee-kbaig Khurram Baig
            nafridma@redhat.com Nati Friedman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: