Description of problem: When creating a VM with instance type with memory hugepages defined, the validation check relies on spec.template.spec.domain.resources being populated with resource requests, something that isn't ensured until the VirtualMachineInstance mutation webhook runs later when launching the VM Version-Release number of selected component (if applicable): 4.13 How reproducible: 100% Steps to Reproduce: 1. Create a VM InstanceType with hugepages 2. Create a VM with the InstanceType reference 3. Start the VM Actual results: The VM gives an Error: { "reason":"FieldValueInvalid", "message":"spec.template.spec.domain.resources.requests.memory \\'0\\' must be equal to or larger than page size spec.template.spec.domain.hugepages.size \\'1Gi\\'", "field":"spec.template.spec.domain.resources.requests.memory" } Expected results: VM would start Additional info: An upstream bug/PR attached in links
Fixed in CNV-v4.13.0.rhel9-1631
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.13.0 Images security, bug fix, and enhancement 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-2023:3205