Bug 1800714 - rhel8-tiny templates use 1Gi memory instead of 1.5Gi minimum seen in osinfo-db rhel-8 files
Summary: rhel8-tiny templates use 1Gi memory instead of 1.5Gi minimum seen in osinfo-...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: SSP
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: ---
: 2.3.0
Assignee: Omer Yahud
QA Contact: Ruth Netser
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-07 19:01 UTC by Kedar Bidarkar
Modified: 2020-05-04 19:10 UTC (History)
5 users (show)

Fixed In Version: kubevirt-ssp-operator-container-v2.3.0-19
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-04 19:10:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:2011 0 None None None 2020-05-04 19:10:49 UTC

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


Note You need to log in before you can comment on or make changes to this bug.