Bug 2041519
Summary: | Custom DataImportCron with the same name as CNV-provided DataImportCron can be added via HCO overwriting configuration | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Ruth Netser <rnetser> |
Component: | Installation | Assignee: | Nahshon Unna-Tsameret <nunnatsa> |
Status: | CLOSED ERRATA | QA Contact: | ibesso <ibesso> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.10.0 | CC: | cnv-qe-bugs, kmajcher, nunnatsa, stirabos |
Target Milestone: | --- | Flags: | ibesso:
needinfo?
|
Target Release: | 4.10.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | hco-bundle-registry-container-v4.10.0-624 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-16 16:06:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ruth Netser
2022-01-17 15:20:03 UTC
@nunnatsa , I attempted to verify the bug in two different ways with a PSI cluster running 4.10.0-674 (stage). Scenario A ---------- * Prerequisites: featuregate "enableCommonBootImageImport" is set to true in HCO CR. 1. oc edit -n openshift-cnv hco 2. paste the dataImportCrontTemplate from the bug description under HCO CR spec: dataImportCronTemplates: - metadata: annotations: cdi.kubevirt.io/storage.bind.immediate.requested: 'true' name: centos8-image-cron spec: managedDataSource: custom-data-source schedule: '* * * * *' template: spec: source: registry: url: docker://quay.io/kubevirt/fedora-cloud-container-disk-demo:latest storage: resources: requests: storage: 10Gi 3. Verified that HCO CR was updated accordingly. 4. oc get dic centos8-image-cron -n openshift-virtualization-os-images -oyaml >>>the managedDataSource was custom-data-source Scenario B ---------- * Prerequisites: featuregate "enableCommonBootImageImport" is set to false in HCO CR. 1. Repeat steps 1-3 from scenarion A. 2. Set the featuregate "enableCommonBootImageImport" to true in HCO CR. 3. Repeat step 4 from scenario A >>>same results [cnv-qe-jenkins@c01-issac-410-kldng-executor ~]$ oc get clusterversions.config.openshift.io NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.10.0-rc.2 True False 13h Cluster version is 4.10.0-rc.2 [cnv-qe-jenkins@c01-issac-410-kldng-executor ~]$ oc get csv -A NAMESPACE NAME DISPLAY VERSION REPLACES PHASE openshift-cnv kubevirt-hyperconverged-operator.v4.10.0 OpenShift Virtualization 4.10.0 kubevirt-hyperconverged-operator.v4.9.2 Succeeded openshift-local-storage local-storage-operator.4.9.0-202201270226 Local Storage 4.9.0-202201270226 Succeeded openshift-operator-lifecycle-manager packageserver Package Server 0.19.0 Succeeded openshift-storage mcg-operator.v4.10.0 NooBaa Operator 4.10.0 Succeeded openshift-storage ocs-operator.v4.10.0 OpenShift Container Storage 4.10.0 Succeeded openshift-storage odf-operator.v4.10.0 OpenShift Data Foundation 4.10.0 Succeeded [cnv-qe-jenkins@c01-issac-410-kldng-executor ~]$ Moving the bug status back to ASSIGNED. Please disregard my previous comment (https://bugzilla.redhat.com/show_bug.cgi?id=2041519#c1). The verification was incorrect. I verified the two scenarios I mentioned on the same cluster (4.10 stage == 4.10.0-674), this time with a name that collides with the reserved/predefined DICs and each time I got the webhook validation error: error: hyperconvergeds.hco.kubevirt.io "kubevirt-hyperconverged" could not be patched: admission webhook "validate-hco.kubevirt.io" denied the request: rhel9-image-cron DataImportCronTable is already defined You can run `oc replace -f /tmp/oc-edit-850654539.yaml` to try this update again. Moving to VERIFIED. 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 |