Bug 1800714

Summary: rhel8-tiny templates use 1Gi memory instead of 1.5Gi minimum seen in osinfo-db rhel-8 files
Product: Container Native Virtualization (CNV) Reporter: Kedar Bidarkar <kbidarka>
Component: SSPAssignee: Omer Yahud <oyahud>
Status: CLOSED ERRATA QA Contact: Ruth Netser <rnetser>
Severity: medium Docs Contact:
Priority: urgent    
Version: 2.2.0CC: cnv-qe-bugs, fdeutsch, ipinto, ksimon, pelauter
Target Milestone: ---   
Target Release: 2.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kubevirt-ssp-operator-container-v2.3.0-19 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-04 19:10:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kedar Bidarkar 2020-02-07 19:01:29 UTC
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:

Comment 1 Kedar Bidarkar 2020-02-07 19:03:51 UTC
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

Comment 2 Ruth Netser 2020-03-18 11:16:32 UTC
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.

Comment 6 errata-xmlrpc 2020-05-04 19:10:37 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, 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