Bug 2103968

Summary: Fedora version in DataImportCrons is not 'latest'
Product: Container Native Virtualization (CNV) Reporter: Krzysztof Majcher <kmajcher>
Component: InstallationAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Debarati Basu-Nag <dbasunag>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10.4CC: cnv-qe-bugs, dbasunag, dholler, fmatouschek, kmajcher, ngavrilo, stirabos
Target Milestone: ---   
Target Release: 4.10.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry-container-v4.10.5-6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2102694 Environment:
Last Closed: 2022-09-27 22:20:41 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: 2102694    
Bug Blocks:    

Description Krzysztof Majcher 2022-07-05 12:38:03 UTC
+++ This bug was initially created as a clone of Bug #2102694 +++

Description of problem:

The Fedora containerdisk version in HCO's dataImportCronTemplates is currently set to '35'. It should be set to 'latest' to always have the latest Fedora version available on the cluster.

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

CNV 4.10 / 4.11 / 4.12

How reproducible:

Install CNV on OCP and run:

oc get dataimportcron -n openshift-virtualization-os-images fedora-image-cron -o yaml | grep url

Actual results:

URL is docker://quay.io/containerdisks/fedora:35

Expected results:

URL should be docker://quay.io/containerdisks/fedora:latest

Additional info:

Fixed upstream by https://github.com/kubevirt/hyperconverged-cluster-operator/pull/2021

--- Additional comment from Dominik Holler on 2022-06-30 13:05:43 UTC ---

The fix might be backported to cnv 4.11.1 and 4.10.z (4.10.4 or 4.10.5)

Comment 1 Simone Tiraboschi 2022-08-01 14:52:19 UTC
postponed to 4.10.5

Comment 3 Debarati Basu-Nag 2022-09-09 00:13:30 UTC
Validated against 4.10.5-6:
=================
[cnv-qe-jenkins@c01-dbn-4012-tqdq6-executor ~]$ oc get dataimportcron -n openshift-virtualization-os-images fedora-image-cron -o yaml
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataImportCron
metadata:
  annotations:
    cdi.kubevirt.io/storage.bind.immediate.requested: "true"
    cdi.kubevirt.io/storage.import.lastCronTime: "2022-09-08T23:20:51Z"
    cdi.kubevirt.io/storage.import.sourceDesiredDigest: sha256:29b80ef738f9b09c19efc245aac3921deab9acd542c886cf5295c94ab847dfb5
    operator-sdk/primary-resource: openshift-cnv/ssp-kubevirt-hyperconverged
    operator-sdk/primary-resource-type: SSP.ssp.kubevirt.io
  creationTimestamp: "2022-09-08T23:20:20Z"
  generation: 8
  labels:
    app.kubernetes.io/component: templating
    app.kubernetes.io/managed-by: ssp-operator
    app.kubernetes.io/name: data-sources
    app.kubernetes.io/part-of: hyperconverged-cluster
    app.kubernetes.io/version: 4.10.5
  name: fedora-image-cron
  namespace: openshift-virtualization-os-images
  resourceVersion: "908685"
  uid: 0e5b9215-e7dc-4855-bd30-b3eb1abf7661
spec:
  garbageCollect: Outdated
  managedDataSource: fedora
  schedule: 44 9/12 * * *
  template:
    metadata: {}
    spec:
      source:
        registry:
          pullMethod: node
          url: docker://quay.io/containerdisks/fedora:latest
      storage:
        resources:
          requests:
            storage: 30Gi
    status: {}

Comment 4 Debarati Basu-Nag 2022-09-27 22:20:41 UTC
Marking as closed as this has been fixed and verified in 4.10.5.