Bug 2088849

Summary: "dataimportcrontemplate.kubevirt.io/enable" field does not do any validation
Product: Container Native Virtualization (CNV) Reporter: Debarati Basu-Nag <dbasunag>
Component: InstallationAssignee: Nahshon Unna-Tsameret <nunnatsa>
Status: CLOSED ERRATA QA Contact: Debarati Basu-Nag <dbasunag>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11.0CC: cnv-qe-bugs, kmajcher, stirabos
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: CNV v4.11.0-446 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-14 19:34: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:

Comment 1 Debarati Basu-Nag 2022-06-10 21:03:22 UTC
Verified against CNV-v4.11.0-459
No ability to enter any value except "true/false" for annotation: dataimportcrontemplate.kubevirt.io/enable

(cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl edit hco kubevirt-hyperconverged -n openshift-cnv
error: hyperconvergeds.hco.kubevirt.io "kubevirt-hyperconverged" could not be patched: admission webhook "validate-hco.kubevirt.io" denied the request: dataImportCronTemplate spec is empty for an enabled DataImportCronTemplate
You can run `kubectl replace -f /tmp/kubectl-edit-3863868585.yaml` to try this update again.
(cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl edit hco kubevirt-hyperconverged -n openshift-cnv
error: hyperconvergeds.hco.kubevirt.io "kubevirt-hyperconverged" could not be patched: admission webhook "validate-hco.kubevirt.io" denied the request: the dataimportcrontemplate.kubevirt.io/enable annotation of a dataImportCronTemplate must be either "true" or "false"
You can run `kubectl replace -f /tmp/kubectl-edit-67402019.yaml` to try this update again.
(cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]

Comment 4 errata-xmlrpc 2022-09-14 19:34:32 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