Bug 1954486 - Default cluster configuration for obsoleteCPUs and minCPU does not exist
Summary: Default cluster configuration for obsoleteCPUs and minCPU does not exist
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Installation
Version: 4.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 4.8.0
Assignee: Nahshon Unna-Tsameret
QA Contact: ibesso
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-28 08:58 UTC by Ruth Netser
Modified: 2021-07-27 14:32 UTC (History)
5 users (show)

Fixed In Version: hco-bundle-registry-container-v4.8.0-305
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 14:31:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt hyperconverged-cluster-operator pull 1288 0 None open Fix a bug in Obsolete CPU Models 2021-04-28 13:41:32 UTC
Red Hat Product Errata RHSA-2021:2920 0 None None None 2021-07-27 14:32:08 UTC

Description Ruth Netser 2021-04-28 08:58:05 UTC
Description of problem:
Prior to 4.8.0, obsoleteCPUs and minCPU configuration was part of kubevirt-cpu-plugin-configmap.

In 4.8.0, the default configuration is missing (does not exist in hco/kv/ssp CRs and the configmap is not created).

Version-Release number of selected component (if applicable):
CNV 4.8.0

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nahshon Unna-Tsameret 2021-04-28 13:41:35 UTC
The default values are pre-defined in KubeVirt and are not visible. 

https://github.com/kubevirt/hyperconverged-cluster-operator/pull/1288 mitigates this by populating the default list of obsolete CPU models in KV, and only allow adding new ones, but not removing them.

Comment 2 ibesso 2021-05-27 19:31:09 UTC
Using a cluster deployed from scratch with 4.8.0:
IIB: registry-proxy.engineering.redhat.com/rh-osbs/iib:76375
HCO:[v4.8.0-350]

HCO CR does not have the obsoleteCPUs fields nor the minCPUModel scalar.
KubeVirt CR has the obsoleteCPUModels list, but the minCPUModel scalar is missing.


@nunnatsa ?

Comment 3 Nahshon Unna-Tsameret 2021-05-31 07:00:29 UTC
HCO does not need to have anything in the CR, unless the administrator wants to add more CPUs to the obsoleteCPUs list, or to change the default minCPUModel. KV also uses default default for the minCPUModel field, so if its empty both in KV and HCO, that's fine.

Please read the details here: https://github.com/kubevirt/hyperconverged-cluster-operator/blob/main/docs/cluster-configuration.md#cpu-plugin-configurations

Comment 4 ibesso 2021-05-31 08:18:45 UTC
Verified with a cluster installed with CNV 2.6.2 and upgraded to CNV 4.8.0
-----------------------------------------------------------------
IIB: registry-proxy.engineering.redhat.com/rh-osbs/iib:76375
HCO:[v4.8.0-350]

HCO CR does not have any of those fields.
By default KubeVirt CR has obsoleteCPUModels by default (spec.configuration.obsoleteCPUModels):
      "486": true
      Conroe: true
      athlon: true
      core2duo: true
      coreduo: true
      kvm32: true
      kvm64: true
      n270: true
      pentium: true
      pentium2: true
      pentium3: true
      pentiumpro: true
      phenom: true
      qemu32: true
      qemu64: true

Also, by default, KubeVirt CR does not have minCPUModel visibile.

Moving to VERIFIED.

Comment 7 errata-xmlrpc 2021-07-27 14:31:30 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 (Moderate: OpenShift Virtualization 4.8.0 Images), 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:2920


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