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

taskurn cancel is getting failed #876

Closed
VeereshAradhya opened this issue Apr 7, 2020 · 2 comments · Fixed by #878
Closed

taskurn cancel is getting failed #876

VeereshAradhya opened this issue Apr 7, 2020 · 2 comments · Fixed by #878
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@VeereshAradhya
Copy link
Contributor

Version and Operating System

tkn Version:
latest dev

Operating System:
Linux

Expected Behavior

Taskrun should get cancelled

Actual Behavior

Taskrun is not getting cancelled and showing the below error message
Error: failed to cancel taskrun "build-and-deploy-run-mz5xs-build-image-pqc9b": admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "pipelineResourceBinding"

Steps to Reproduce the Problem

  1. Create a task
  2. Start the taskrun and wait till taskrun status changes from Running(Pending) to Running
  3. Try to cancel the taskrun with command tkn taskrun cancel

Additional Info

Below are the command logs

$ tkn tr ls
NAME                           STARTED          DURATION   STATUS
python-script-task-run-wh8v8   16 seconds ago   ---        Running
$ tkn tr cancel python-script-task-run-wh8v8
Error: failed to cancel taskrun "python-script-task-run-wh8v8": admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "containerState"
$ tkn tr ls
NAME                           STARTED        DURATION   STATUS
python-script-task-run-wh8v8   1 minute ago   ---        Running
@vdemeester
Copy link
Member

/kind bug

@tekton-robot tekton-robot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 7, 2020
@vdemeester
Copy link
Member

/assign @pradeepitm12

tekton-robot pushed a commit that referenced this issue Apr 8, 2020
fix #876

to cancel a taskrun earlier cli was updating the taskrun
update with dynamic clinet sometimes failed while marshelling

the current fix use patch instead of update

fix linting issue in pipeline start command

Signed-off-by: Pradeep Kumar <[email protected]>
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

Successfully merging a pull request may close this issue.

4 participants