Bug 2156928 - garbage collection in data import cron fail when garbage collector disable
Summary: garbage collection in data import cron fail when garbage collector disable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.12.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.12.1
Assignee: Arnon Gilboa
QA Contact: Yan Du
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-29 16:09 UTC by dalia
Modified: 2023-02-28 20:06 UTC (History)
1 user (show)

Fixed In Version: v4.12.1-3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-28 20:06:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt containerized-data-importer pull 2539 0 None Merged Update succeeded DIC PVC labels also when no DV GC 2023-01-12 12:05:26 UTC
Github kubevirt containerized-data-importer pull 2540 0 None Merged [release-v1.55] Update succeeded DIC PVC labels also when no DV GC 2023-01-23 09:10:26 UTC
Red Hat Issue Tracker CNV-23734 0 None None None 2022-12-29 16:12:01 UTC
Red Hat Product Errata RHEA-2023:1023 0 None None None 2023-02-28 20:06:39 UTC

Description dalia 2022-12-29 16:09:14 UTC
Description of problem:
When garbage collector disabled (TTL set to -1), the data import cron garbage collection won't work.

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

How reproducible:
100%

Steps to Reproduce:
1. disable garbage collector via hco:
  oc patch cdi cdi-kubevirt-hyperconverged --patch '{"spec": {"config": {"dataVolumeTTLSeconds": -1}}}' --type merge`

2. Create a new data import cron with DataImportCron.Spec.ImportsToKeep set to 1

3. wait for the DV to reach success

4. update the image stream digest

5. wait for a new DV to be created 


Actual results: 
2 DV in success status


Expected results: 
once the new DV reach success the old one should be deleted

Comment 1 Yan Du 2023-02-01 02:15:12 UTC
Verify on CNV v4.12.1-3

DataImportCron.Spec.ImportsToKeep works when garbage collector disabled (TTL set to -1)

Comment 7 errata-xmlrpc 2023-02-28 20:06:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Virtualization 4.12.1 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:1023


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