Bug 2128243 - PVC is not cleaned up when Pending DataVolume is deleted during failed VM creation
Summary: PVC is not cleaned up when Pending DataVolume is deleted during failed VM cre...
Keywords:
Status: CLOSED DUPLICATE of bug 2102180
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.10.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Adam Litke
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-20 10:59 UTC by Juan Orti
Modified: 2022-09-21 12:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:13:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 6976484 0 None None None 2022-09-20 11:25:27 UTC

Description Juan Orti 2022-09-20 10:59:04 UTC
Description of problem:
When VM creation fails during the cloning procedure, deletion of the VM would delete the DataVolume, but the cdi-tmp-* PVC that was created during the procedure remains.

Version-Release number of selected component (if applicable):
OpenShift 4.10.16
OpenShift Virtualization 4.10.1

How reproducible:
Always

Steps to Reproduce:
1. The source disk is in a PVC in the openshift-virtualization-os-images namespace and uses a Ceph storage class.
2. The creation of the VM in a different namespace fails during the cloning procedure.
3. After the failure, the DataVolume is deleted.

Actual results:
In the source namespace openshift-virtualization-os-images there's a leftover cdi-tmp-* PVC that it's stuck in "Pending" state.

Expected results:
The cdi-tmp-* PVC is removed too.

Additional info:
This looks like the same issue reported in these links, which in theory was fixed in 4.8.1:

https://bugzilla.redhat.com/show_bug.cgi?id=1994504
https://github.com/kubevirt/containerized-data-importer/issues/2323

Comment 2 Yan Du 2022-09-21 12:13:09 UTC

*** This bug has been marked as a duplicate of bug 2102180 ***


Note You need to log in before you can comment on or make changes to this bug.