rht-labs / tech-exercise

TL500 Tech Exercises - ArgoCD, Helm & other cool stuff 😎
https://rht-labs.com/tech-exercise
Apache License 2.0
59 stars 76 forks source link

🐛 [bug] - Failing deploy-test step of Tekton pipeline #278

Closed rmarting closed 10 months ago

rmarting commented 10 months ago

📝 Description

Following the Tekton Exercise when the pipeline is executed, the deploy-test step fails with the following output:

STEP-GET-CURRENT-INFO

2023/12/05 08:22:58 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/": unable to create destination directory: mkdir /.docker: permission denied
2023/12/05 08:22:58 warning: unsuccessful cred copy: ".gitconfig" from "/tekton/creds" to "/": unable to open destination: open /.gitconfig: permission denied
2023/12/05 08:22:58 warning: unsuccessful cred copy: ".git-credentials" from "/tekton/creds" to "/": unable to open destination: open /.git-credentials: permission denied
latest1.2.1
STEP-PATCH-ARGO-CONF

2023/12/05 08:22:59 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/": unable to create destination directory: mkdir /.docker: permission denied
2023/12/05 08:22:59 warning: unsuccessful cred copy: ".gitconfig" from "/tekton/creds" to "/": unable to open destination: open /.gitconfig: permission denied
2023/12/05 08:22:59 warning: unsuccessful cred copy: ".git-credentials" from "/tekton/creds" to "/": unable to open destination: open /.git-credentials: permission denied
STEP-COMMIT-CHANGES

fatal: detected dubious ownership in repository at '/workspace/output/tech-exercise/main'
To add an exception for this directory, call:

    git config --global --add safe.directory /workspace/output/tech-exercise/main
fatal: detected dubious ownership in repository at '/workspace/output/tech-exercise/main'
To add an exception for this directory, call:

    git config --global --add safe.directory /workspace/output/tech-exercise/main
fatal: detected dubious ownership in repository at '/workspace/output/tech-exercise/main'
To add an exception for this directory, call:

    git config --global --add safe.directory /workspace/output/tech-exercise/main
fatal: detected dubious ownership in repository at '/workspace/output/tech-exercise/main'
To add an exception for this directory, call:

    git config --global --add safe.directory /workspace/output/tech-exercise/main
fatal: detected dubious ownership in repository at '/workspace/output/tech-exercise/main'
To add an exception for this directory, call:

    git config --global --add safe.directory /workspace/output/tech-exercise/main

This exercise is executed in the following environment with Openshift Pipelines Operator-rh.v1.13.0:

➜  tech-exercise git:(main) oc version
Client Version: 4.12.14
Kustomize Version: v4.5.7
Kubernetes Version: v1.25.14+bcb9a60

🚶 Steps to reproduce

Just follow the technical instructions from the exercise.

🧙‍♀️ Suggested solution

... if applicable

rmarting commented 10 months ago

@ckavili should we close it? As you merged my PR 😅

ckavili commented 10 months ago

Yup closing it 🙈