Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline tasks failing after upgrading Openshift Pipelines operator from 1.8 to 1.9 #2116

Open
daisleyj opened this issue Apr 15, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@daisleyj
Copy link

Expected Behavior

Pipeline tasks run successfully

Actual Behavior

Pipeline tasks fail almost instantly with the message:

failed to create task run pod "xxxxxx-pipelinerun-vtrhv-fetch-source": pods "xxxxxx-pipelinerun-vtrhv-fetch-source-pod" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (containers "prepare", "place-scripts", "step-clone" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "prepare", "place-scripts", "step-clone" must set securityContext.capabilities.drop=["ALL"]), seccompProfile (pod or containers "prepare", "place-scripts", "step-clone" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost"). Maybe missing or invalid Task openshift-pipelines/git-clone

This seems to be happening in all pipeline runs and tasks which were working without issue

Steps to Reproduce the Problem

  1. On an openshift 4.12 cluster, install the Openshift-pipelines v1.8 operator
  2. Create a pipeline with a task as per the attached task.yaml file
    task.yaml.zip
  3. Run the pipeline with the defined parameters, it should run successfully
  4. Upgrade the Openshift-pipelines operator to version 1.9

Additional Info

  • Kubernetes version:

    Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.1", GitCommit:"17b7accf8fd25125ce015cf4bea7d3cd3f336317", GitTreeState:"clean", BuildDate:"2023-08-23T08:05:56Z", GoVersion:"go1.19.10 X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.16+bd92d70", GitCommit:"f5b7c3e8faedd51935d77828a5fc72c7540236f4", GitTreeState:"clean", BuildDate:"2024-04-04T12:54:26Z", GoVersion:"go1.19.13 X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
  • Tekton Pipeline version: v0.41.3

    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

@daisleyj daisleyj added the kind/bug Categorizes issue or PR as related to a bug. label Apr 15, 2024
@piyush-garg
Copy link
Contributor

hey @daisleyj

First thing is these both the versions are out of support. Also are you setting allowPriviledgeEscalation in task steps? Also did the upgrade happen completely?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants