-
Bug
-
Resolution: Done
-
Critical
-
None
-
Pipelines 1.8.0
-
None
-
3
-
False
-
-
False
-
Pipelines Sprint 225, Pipelines Sprint 226, Pipelines Sprint 227, Pipelines Sprint 228, Pipelines Sprint 229
Expected behavior
It's possible to run git-clone task with any storage
Actual behavior
Task fails when it's running on OpenStack cluster with a PVC backed by Manila/Ceph. Works fine with default storage class on OpenStack or AWS.
/ko-app/git-init -url=https://github.com/jboss-openshift/openshift-quickstarts.git -revision= -refspec= -path=/workspace/output/maven-run-ksvq5 -sslVerify=true -submodules=true -depth=1 -sparseCheckoutDirectories= {"level":"warn","ts":1661331311.1979902,"caller":"git/git.go:271","msg":"SSH credentials have been provided but the URL(\"https://github.com/jboss-openshift/openshift-quickstarts.git\") is not a valid SSH URL. This warning can be safely ignored if the URL is for a public repo or you are using basic auth"} {"level":"error","ts":1661331312.346624,"caller":"git/git.go:55","msg":"Error running git [fetch --recurse-submodules=yes --depth=1 origin --update-head-ok --force ]: exit status 128\nfatal: unable to open .git/objects/pack/tmp_pack_SewNPu: Permission denied\nfatal: fetch-pack: invalid index-pack output\n","stacktrace":"github.com/tektoncd/pipeline/pkg/git.run\n\t/go/src/github.com/tektoncd/pipeline/pkg/git/git.go:55\ngithub.com/tektoncd/pipeline/pkg/git.Fetch\n\t/go/src/github.com/tektoncd/pipeline/pkg/git/git.go:158\nmain.main\n\t/go/src/github.com/tektoncd/pipeline/cmd/git-init/main.go:53\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:255"} {"level":"fatal","ts":1661331312.3467414,"caller":"git-init/main.go:54","msg":"Error fetching git repository: failed to fetch []: exit status 128","stacktrace":"main.main\n\t/go/src/github.com/tektoncd/pipeline/cmd/git-init/main.go:54\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:255"}
Steps to reproduce
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: shared-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: csi-manila-ceph
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: maven-pipeline
spec:
workspaces:
- name: source
- name: maven-settings
tasks:
- name: clone-git-repo
taskRef:
name: git-clone
kind: ClusterTask
workspaces:
- name: output
workspace: source
params:
- name: url
value: https://github.com/jboss-openshift/openshift-quickstarts.git
- name: deleteExisting
value: "true"
- name: subdirectory
value: $(context.pipelineRun.name)
- name: build
taskRef:
name: maven
kind: ClusterTask
params:
- name: CONTEXT_DIR
value: $(context.pipelineRun.name)/undertow-servlet
runAfter:
- clone-git-repo
workspaces:
- name: source
workspace: source
- name: maven-settings
workspace: maven-settings
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: maven-run-
spec:
pipelineRef:
name: maven-pipeline
timeout: 15m
workspaces:
- name: source
persistentVolumeClaim:
claimName: shared-pvc
- name: maven-settings
configMap:
name: maven-settings