Bug 2063792

Summary: No DataImportCron for CentOS 7
Product: Container Native Virtualization (CNV) Reporter: Natalie Gavrielov <ngavrilo>
Component: InstallationAssignee: Oren Cohen <ocohen>
Status: CLOSED ERRATA QA Contact: Debarati Basu-Nag <dbasunag>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.10.0CC: cnv-qe-bugs, dbasunag, dholler, nunnatsa, ocohen, stirabos
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: CNV v4.11.0-76 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2053390 Environment:
Last Closed: 2022-09-14 19:29:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2053390    
Bug Blocks:    

Description Natalie Gavrielov 2022-03-14 11:57:18 UTC
+++ This bug was initially created as a clone of Bug #2053390 +++

Description of problem:
While CentOS Stream 8 and 9 golden image is out of the box available to users, CentOS 7 image has to be added manually.

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

How reproducible:
100%

Actual results:
CentOS 7 image has to be added manually

Expected results:
CentOS 7 image is available out of the box


Additional info:
The CentOS 7 image is available in quay.io/containerdisks/centos:7-2009

Comment 1 Debarati Basu-Nag 2022-04-07 14:52:46 UTC
Verified against CNV-v4.11.0-192
===========================
[cnv-qe-jenkins@c01-dbn-411-s7zf7-executor ~]$ kubectl get ssp ssp-kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.spec.commonTemplates.dataImportCronTemplates}' | jq -e '.[] |select(.metadata.name=="centos-7-image-cron")'
I0407 14:51:27.430278  100437 request.go:665] Waited for 1.119335241s due to client-side throttling, not priority and fairness, request: GET:https://api.c01-dbn-411.cnv-qe.rhcloud.com:6443/apis/nodemaintenance.kubevirt.io/v1beta1?timeout=32s
{
  "metadata": {
    "annotations": {
      "cdi.kubevirt.io/storage.bind.immediate.requested": "true"
    },
    "name": "centos-7-image-cron"
  },
  "spec": {
    "garbageCollect": "Outdated",
    "managedDataSource": "centos7",
    "schedule": "3 11/12 * * *",
    "template": {
      "metadata": {},
      "spec": {
        "source": {
          "registry": {
            "url": "docker://quay.io/containerdisks/centos:7-2009"
          }
        },
        "storage": {
          "resources": {
            "requests": {
              "storage": "30Gi"
            }
          }
        }
      },
      "status": {}
    }
  }
}
==================================
[cnv-qe-jenkins@c01-dbn-411-s7zf7-executor ~]$ kubectl get DataImportCron -A
NAMESPACE                            NAME                        AGE
openshift-virtualization-os-images   centos-7-image-cron         42h
openshift-virtualization-os-images   centos-stream8-image-cron   42h
openshift-virtualization-os-images   centos-stream9-image-cron   42h
openshift-virtualization-os-images   fedora-image-cron           42h
openshift-virtualization-os-images   rhel8-image-cron            42h
openshift-virtualization-os-images   rhel9-image-cron            42h
[cnv-qe-jenkins@c01-dbn-411-s7zf7-executor ~]$

Comment 4 errata-xmlrpc 2022-09-14 19:29:09 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 (Important: OpenShift Virtualization 4.11.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:6526