Bug 2155088

Summary: tekton pipelineruns are getting stuck if stopped in middle of taskruns
Product: Container Native Virtualization (CNV) Reporter: Geetika Kapoor <gkapoor>
Component: InfrastructureAssignee: Karel Šimon <ksimon>
Status: CLOSED MIGRATED QA Contact: Geetika Kapoor <gkapoor>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.12.0   
Target Milestone: ---   
Target Release: future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-14 16:06:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Geetika Kapoor 2022-12-19 23:18:56 UTC
Description of problem:
tekton pipelineruns are getting stuck if stopped in middle of taskruns (example: wait-for-vmi-status). This will show that piperuns are getting cancelled but even after 15 mins they are not cancelled.All the resouces are in stuck mode.

 oc get pipelineruns -A -w
NAMESPACE       NAME             SUCCEEDED   REASON                  STARTTIME   COMPLETIONTIME
openshift-cnv   test-io-ing-yu   Unknown     StoppedRunningFinally   32m  

When pipelines are deleted in middle of taskruns we see leftovers like vm,vmi.

Version-Release number of selected component (if applicable):
4.12

How reproducible:
always when we tried to interrupt a taskrun

Steps to Reproduce:
1.when vmi task starts , perform a stop operation and pipelines get stuck.
2.
3.

Actual results:


Expected results:


Additional info:

For all kind of operation that we perform 'type' is always succeeded. is it right information?

{'lastTransitionTime': '2022-12-19T22:40:43Z',
 'message': 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Incomplete: 6, '
            'Skipped: 0',
 'reason': 'Running',
 'status': 'Unknown',
 'type': 'Succeeded'}