Bug 2088849 - "dataimportcrontemplate.kubevirt.io/enable" field does not do any validation
Summary: "dataimportcrontemplate.kubevirt.io/enable" field does not do any validation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Installation
Version: 4.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.11.0
Assignee: Nahshon Unna-Tsameret
QA Contact: Debarati Basu-Nag
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-21 01:05 UTC by Debarati Basu-Nag
Modified: 2023-11-13 08:11 UTC (History)
3 users (show)

Fixed In Version: CNV v4.11.0-446
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-14 19:34:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt hyperconverged-cluster-operator pull 1987 0 None Merged Fix BZ 2091309 and 2088849: don't force the user to copy DIC to disable it 2022-06-07 12:46:50 UTC
Github kubevirt hyperconverged-cluster-operator pull 1990 0 None Merged [release-1.7] Fix BZ 2091309 and 2088849: don't force the user to copy DIC to disable it 2022-06-07 12:49:18 UTC
Red Hat Issue Tracker CNV-18506 0 None None None 2023-11-13 08:11:02 UTC
Red Hat Product Errata RHSA-2022:6526 0 None None None 2022-09-14 19:34:39 UTC

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


Note You need to log in before you can comment on or make changes to this bug.