Description of problem: rhel8-tiny templates seems to have only 1Gi instead of 1.5Gi as seen minimum from osinfo-db rhel-8 xml file Version-Release number of selected component (if applicable): CNV-2.2 template.kubevirt.io/version: v0.8.2 name: rhel8-server-tiny-v0.7.0 How reproducible: Create a VM from the base rhel8-tiny templates Steps to Reproduce: 1. 2. 3. Actual results: Virtual Machine created from any rhel8-tiny templates seems to have only 1Gi of memory. Expected results: Virtual Machine needs to have minimum 1.5Gi instead of 1Gi memory as seen from the osinfo-db rhel8 files. Additional info:
Below is the output from both rhel8 templates and osinfo db files. I believe even the Validation values need to be updated for rhel8-tiny templates. [kbidarka@kbidarka-host redhat.com]$ cat rhel-8.1.xml | grep -A 12 "<resources arch=\"all\">" <resources arch="all"> <minimum> <n-cpus>1</n-cpus> <cpu>1000000000</cpu> <ram>1610612736</ram> <storage>10737418240</storage> </minimum> <recommended> <cpu>1000000000</cpu> <ram>1610612736</ram> <storage>21474836480</storage> </recommended> [kbidarka@kbidarka-host redhat.com]$ cat rhel-8.0.xml | grep -A 12 "<resources arch=\"all\">" <resources arch="all"> <minimum> <n-cpus>1</n-cpus> <cpu>1000000000</cpu> <ram>1610612736</ram> <storage>10737418240</storage> </minimum> <recommended> <cpu>1000000000</cpu> <ram>1610612736</ram> <storage>21474836480</storage> </recommended> [kbidarka@kbidarka-host redhat.com]$ cat rhel-8-unknown.xml | grep -A 12 "<resources arch=\"all\">" <resources arch="all"> <minimum> <n-cpus>1</n-cpus> <cpu>1000000000</cpu> <ram>1610612736</ram> <storage>10737418240</storage> </minimum> <recommended> <cpu>1000000000</cpu> <ram>1610612736</ram> <storage>21474836480</storage> </recommended> [kbidarka@kbidarka-host redhat.com]$ oc get templates -n openshift rhel8-server-tiny-v0.7.0 -o yaml | grep -A 9 validations validations: | [ { "name": "minimal-required-memory", "path": "jsonpath::.spec.domain.resources.requests.memory", "rule": "integer", "message": "This VM requires more memory.", "min": 1073741824 } ] [kbidarka@kbidarka-host redhat.com]$ oc get templates -n openshift rhel8-server-tiny-v0.7.0 -o yaml | grep -A 1 "requests:" requests: memory: 1Gi [kbidarka@kbidarka-host redhat.com]$ oc get templates -n openshift rhel8-desktop-tiny-v0.7.0 -o yaml | grep -A 9 validations validations: | [ { "name": "minimal-required-memory", "path": "jsonpath::.spec.domain.resources.requests.memory", "rule": "integer", "message": "This VM requires more memory.", "min": 1073741824 } ] [kbidarka@kbidarka-host redhat.com]$ oc get templates -n openshift rhel8-desktop-tiny-v0.7.0 -o yaml | grep -A 1 "requests:" requests: memory: 1Gi [kbidarka@kbidarka-host redhat.com]$ oc get templates -n openshift rhel8-highperformance-tiny-v0.7.0 -o yaml | grep -A 9 validations validations: | [ { "name": "minimal-required-memory", "path": "jsonpath::.spec.domain.resources.requests.memory", "rule": "integer", "message": "This VM requires more memory.", "min": 1073741824 } ] [kbidarka@kbidarka-host redhat.com]$ oc get templates -n openshift rhel8-highperformance-tiny-v0.7.0 -o yaml | grep -A 1 "requests:" requests: memory: 1Gi
Verified: 1. All RHEL8 tiny flavor templates now have memory: 1.5Gi memory: $ oc get templates -n openshift rhel8-server-tiny-v0.7.0 -o yaml | grep -A 1 "requests:" requests: memory: 1.5Gi $ oc get templates -n openshift rhel8-highperformance-tiny-v0.7.0 -o yaml | grep -A 1 "requests:" requests: memory: 1.5Gi $ oc get templates -n openshift rhel8-desktop-tiny-v0.7.0 -o yaml | grep -A 1 "requests:" requests: memory: 1.5Gi which match the validations minimum (1610612736) 2. Created a RHEL8 server tiny VM from the UI - VM is created and started successfully.
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, 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/RHEA-2020:2011