Created attachment 1725717 [details] Description of the HCO YAML after wrong configuration was applied Description of problem: It is possible to provide in incorrect configuration of pod placement to the HCO CR. The configuration will be applied successfully although it will be denied by the Kubevirt API. Attached is the wrong configuration. The root cause may be that only the "worloads" stanza is being validated with a dry run while the "infra" stanza doesn't. Version-Release number of selected component (if applicable): CNV 2.5 How reproducible: 100% Steps to Reproduce: 1. Apply the attached configuration of the pod placement. 2. Observe the status of the HCO operator using "oc get hco -oyaml". Actual results: HCO CR dry run passed successfully. Kubevirt API denied the update. Expected results: Dry run should fail incorrect configuration provided to the HCO CR by the user. Additional info: In the attached example the wrong part of the configuration is the "Equal" operand which doesn't exists.
Created attachment 1725718 [details] Wrong pod placement configuration
Created attachment 1725719 [details] HCO CR status
It's an EasyFix but definitely not a blocker: the user error will be pretty visible to the user that can simply edit again the CR to fix it. Let's target this to 2.5.1.
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 2.6.0 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-2021:0799