Bug 2155762

Summary: On deleting of a Pipeline run, child objects are not cleaned up
Product: Container Native Virtualization (CNV) Reporter: Dominik Holler <dholler>
Component: InfrastructureAssignee: Karel Šimon <ksimon>
Status: NEW --- QA Contact: Geetika Kapoor <gkapoor>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11.2CC: gkapoor
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: 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 Dominik Holler 2022-12-22 09:35:32 UTC
Description of problem: If an active pipeline run is deleted, the created VM is not deleted.


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


How reproducible:


Steps to Reproduce:
1. Trigger the windows10-installer pipeline with an invalid url for the windows iso
2. Wait until the VM is created in wait-for-vmi-status
3. Delete the pipeline run 


Actual results: The temporary VM still exists.


Expected results: All objects created by the pipeline run are cleaned up, including the temporary VM


Additional info: Maybe an ownerReference to the PipelineRun, so that k8s cleans the VM and DV after failure.