Description of problem: Import a VM from RHV to CNV, that has a lower memory than the minimum defined in the vm-template, results with this error message: "The virtual machine could not be imported. VMCreationFailed: Error while creating virtual machine default/v2v-cirros-vm-for-tests: admission webhook "virt-template-admission.kubevirt.io" denied the request: This VM requires more memory.: Some of values [1073741824] are not in interval [1610612736, N/A]" Please change this error message, so that it won't include N/A, and would be more clear: "The virtual machine could not be imported. VMCreationFailed: Error while creating virtual machine default/v2v-cirros-vm-for-tests: admission webhook "virt-template-admission.kubevirt.io" denied the request: This VM requires more memory.: VM memory: [1073741824], while minimum required memory is [1610612736]" In addition, please fix the case of "[N/A, 1610612736]", which means memory between 0 and 1610612736, into: "value should be within this interval [0, 1610612736]" Version-Release number of selected component (if applicable): OCP-4.5.5/CNV-2.4.1
This bug is originated from Bug 1871433
Verified on cnv-2.6.0 iib-34076 hco-v2.6.0-400 Now the error message is improved: "Import error (RHV) v2v-cirros-vm-for-tests could not be imported. MappingRulesVerificationFailed: Source VM memory 1073741824 is lower than 1610612736 enforced by rhel8-desktop-medium-v0.11.3 template."
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