-
Bug
-
Resolution: Cannot Reproduce
-
Critical
-
None
-
Pipelines 1.7.3
-
None
-
3
-
False
-
None
-
False
-
-
-
-
Pipelines Sprint 229, Pipelines Sprint 230, Pipelines Sprint 231
-
Important
-
Customer Facing
-
Red Hat OpenShift Container Platform
Description of problem:
**
I am trying to run Tekton in OpenShift v4.10 cluster
I have a pipeline that does these steps
step 1 - uses tekton git-clone task to pull down my repo, saves repo into a workspace
step 2 - run my task, which uses an image I created which runs ansible, runs 1st ansible playbook, uses ansible files and playbook from the workspace from step 1
step 3 - runs same ansible task, but runs a 2nd ansible playbook, uses ansible files and playbook from the workspace from step 1
I changed the ansible task to have a script to list the directory where the workspace is mounted.
When I run the above pipeline in a pipelinerun where all the steps run one after the other, all runs ok, the two ansible steps show this
rw-rr- 1 65532 65532 475 Nov 8 07:06 zos-verify.yaml
rw-rr- 1 65532 65532 3419 Nov 8 07:06 ansible-dbbDemo.playbook
rw-rr- 1 65532 65532 484 Nov 8 07:06 ansible-dbbDemo-parms-cicsIvp.yaml
I then changed the pipelinerun so that steps 2 and 3 run at the same time
When I run that, step 1 runs ok, one of the ansible steps runs ok and I get the above output, the other one fails with
ls: /workspace/source/playbooks: Permission denied
It seems that because one of the ansible tasks has got the workspace, the other ansible task that is running at the same time, cannot access the workspace
Reproducibility (Always/Intermittent/Only Once):
Build Details:
Additional info (Such as Logs, Screenshots, etc):