Description of problem: Dataimportcron keeps re-creating when enable the feature gate Version-Release number of selected component (if applicable): CNV-4.10.0-551 hyperconverged-cluster-operator-container-v4.10.0-105 virt-cdi-operator-container-v4.10.0-70 How reproducible: Always Steps to Reproduce: 1. Enable the feature gate in hco enableCommonBootImageImport: true 2. Check the dataimportcron 3. Actual results: The dic rhel-imagecron and rhel9-image-cron keep re-creating $ oc get dic NAME AGE centos8-image-cron 157m fedora-image-cron 157m rhel8-image-cron 4s rhel9-image-cron 3s $ oc get dataimportcrons.cdi.kubevirt.io rhel9-image-cron -w NAME AGE rhel9-image-cron 2s rhel9-image-cron 6s rhel9-image-cron 6s rhel9-image-cron 0s rhel9-image-cron 1s rhel9-image-cron 2s rhel9-image-cron 4s rhel9-image-cron 5s rhel9-image-cron 0s rhel9-image-cron 1s rhel9-image-cron 1s rhel9-image-cron 5s rhel9-image-cron 5s rhel9-image-cron 0s rhel9-image-cron 1s rhel9-image-cron 1s rhel9-image-cron 4s rhel9-image-cron 4s rhel9-image-cron 0s rhel9-image-cron 1s rhel9-image-cron 1s rhel9-image-cron 2s rhel9-image-cron 6s rhel9-image-cron 7s rhel9-image-cron 0s rhel9-image-cron 1s rhel9-image-cron 2s rhel9-image-cron 2s rhel9-image-cron 4s rhel9-image-cron 4s rhel9-image-cron 0s rhel9-image-cron 1s rhel9-image-cron 1s rhel9-image-cron 3s rhel9-image-cron 3s rhel9-image-cron 0s rhel9-image-cron 1s rhel9-image-cron 1s rhel9-image-cron 4s rhel9-image-cron 4s Expected results: Should not be keeping re-creating Additional info:
Arnon, could you figure out what is happening and work with SSP members to fix?
Yan, Andrej (SSP) took it and will try to reproduce. He'll ask you for more info if needed.
While looking into this bug, I have found that both CDI and SSP set these labels on the DataImportCron: SSP: "app.kubernetes.io/component": "templating", "app.kubernetes.io/managed-by": "ssp-operator", CDI: "app.kubernetes.io/component": "storage", "app.kubernetes.io/managed-by": "cdi-controller", Arnon, I assumed these labels are set by the operator that creates and reconciles the resource. Is it not the case? These changing labels caused the recreation loop, which is a bug, and I will post a fix soon.
Andrej, it seems you are right. I'll remove DataImportCron CDI labeling. Also remove DataSources CDI labeling?
Test on CNV-v4.10.0-593, kubevirt-ssp-operator-container-v4.10.0-39, issue have been fixed. $ oc get dic -n openshift-virtualization-os-images NAME AGE centos-stream8-image-cron 107m centos-stream9-image-cron 107m fedora-image-cron 107m rhel8-image-cron 107m rhel9-image-cron 107m
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 (Moderate: OpenShift Virtualization 4.10.0 Images security and bug fix update), 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/RHSA-2022:0947