Bug 1891285 - Common templates and kubevirt-config cm - update machine-type
Summary: Common templates and kubevirt-config cm - update machine-type
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: SSP
Version: 2.5.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ---
: 2.6.0
Assignee: Omer Yahud
QA Contact: Sarah Bennert
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-25 08:10 UTC by Ruth Netser
Modified: 2021-03-10 11:19 UTC (History)
8 users (show)

Fixed In Version: kubevirt-ssp-operator-container-v2.6.0-32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-10 11:18:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:0799 0 None None None 2021-03-10 11:19:54 UTC

Description Ruth Netser 2020-10-25 08:10:33 UTC
Description of problem:
machine-type value should be updated in common templates and kubevirt-config cm

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

How reproducible:
100%

Steps to Reproduce:
CNV 2.5.0 is rebased on RHEL 8.2.0 and virt-av 8.2.1, machine-type value (currently pc-q35-rhel8.2.0) should be updated accordingly.

Comment 1 Omer Yahud 2021-01-07 15:32:37 UTC
common-templates mid-stream PR: https://code.engineering.redhat.com/gerrit/#/c/222990/

Comment 2 Ruth Netser 2021-01-10 07:23:13 UTC
This was built downstream in kubevirt-ssp-operator-container-v2.6.0-29
Bug was opened on 2.5, where it was rhel 8.2.
In CNV 2.6, it should be rhel 8.3

This is now a blocker, VMs cannot be started:
  Warning  SyncFailed        75s (x15 over 2m38s)   virt-handler               server error. command SyncVMI failed: "LibvirtError(Code=67, Domain=10, Message='unsupported configuration: Emulator '/usr/libexec/qemu-kvm' does not support machine type 'pc-q35-rhel8.2.1'')"

==============================================================================

$ oc describe vmi -n supported-os-common-templates-fedora-test-fedora-os-support
Name:         fedora-32-1610262731-6998198
Namespace:    supported-os-common-templates-fedora-test-fedora-os-support
Labels:       kubevirt.io/domain=fedora-32-1610262731-6998198
              kubevirt.io/nodeName=ssp05-tzl2g-worker-0-jzlq2
              kubevirt.io/size=tiny
              kubevirt.io/vm=fedora-32-1610262731-6998198
Annotations:  kubevirt.io/latest-observed-api-version: v1alpha3
              kubevirt.io/storage-observed-api-version: v1alpha3
API Version:  kubevirt.io/v1alpha3
Kind:         VirtualMachineInstance
Metadata:
  Creation Timestamp:  2021-01-10T07:12:13Z
  Finalizers:
    foregroundDeleteVirtualMachine
  Generation:  8
  Managed Fields:
    API Version:  kubevirt.io/v1alpha3
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubevirt.io/latest-observed-api-version:
          f:kubevirt.io/storage-observed-api-version:
        f:labels:
          .:
          f:kubevirt.io/domain:
          f:kubevirt.io/nodeName:
          f:kubevirt.io/size:
          f:kubevirt.io/vm:
        f:ownerReferences:
      f:spec:
        .:
        f:domain:
          .:
          f:clock:
            .:
            f:timer:
              .:
              f:hpet:
                .:
                f:present:
              f:hyperv:
              f:pit:
                .:
                f:tickPolicy:
              f:rtc:
                .:
                f:tickPolicy:
            f:utc:
          f:cpu:
            .:
            f:cores:
            f:sockets:
            f:threads:
          f:devices:
            .:
            f:disks:
            f:interfaces:
            f:networkInterfaceMultiqueue:
            f:rng:
          f:features:
            .:
            f:acpi:
            f:apic:
            f:hyperv:
              .:
              f:relaxed:
              f:spinlocks:
                .:
                f:spinlocks:
              f:synic:
              f:synictimer:
              f:vapic:
              f:vpindex:
          f:firmware:
            .:
            f:uuid:
          f:machine:
            .:
            f:type:
          f:resources:
            .:
            f:requests:
              .:
              f:memory:
        f:networks:
        f:terminationGracePeriodSeconds:
        f:volumes:
      f:status:
        .:
        f:activePods:
          .:
          f:8e178e84-61f6-4f05-9044-f720e51ff36a:
        f:guestOSInfo:
        f:nodeName:
        f:phase:
        f:qosClass:
    Manager:      virt-controller
    Operation:    Update
    Time:         2021-01-10T07:13:23Z
    API Version:  kubevirt.io/v1alpha3
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        f:conditions:
        f:migrationMethod:
    Manager:    virt-handler
    Operation:  Update
    Time:       2021-01-10T07:13:23Z
  Owner References:
    API Version:           kubevirt.io/v1alpha3
    Block Owner Deletion:  true
    Controller:            true
    Kind:                  VirtualMachine
    Name:                  fedora-32-1610262731-6998198
    UID:                   c618017f-7aa5-4739-a5a9-5f62e21861a9
  Resource Version:        1745512
  UID:                     53ad6045-949b-479a-91d1-d40138458ccd
Spec:
  Domain:
    Clock:
      Timer:
        Hpet:
          Present:  false
        Hyperv:
          Present:  true
        Pit:
          Present:      true
          Tick Policy:  delay
        Rtc:
          Present:      true
          Tick Policy:  catchup
      Utc:
    Cpu:
      Cores:    1
      Sockets:  1
      Threads:  1
    Devices:
      Disks:
        Disk:
          Bus:  virtio
        Name:   fedora-32-1610262731-6998198
        Disk:
          Bus:  virtio
        Name:   cloudinitdisk
      Interfaces:
        Mac Address:  02:c3:3c:00:00:66
        Masquerade:
        Name:                        default
      Network Interface Multiqueue:  true
      Rng:
    Features:
      Acpi:
        Enabled:  true
      Apic:
        Enabled:  true
      Hyperv:
        Relaxed:
          Enabled:  true
        Spinlocks:
          Enabled:    true
          Spinlocks:  8191
        Synic:
          Enabled:  true
        Synictimer:
          Enabled:  true
        Vapic:
          Enabled:  true
        Vpindex:
          Enabled:  true
    Firmware:
      Uuid:  625ca9e2-b0a3-547a-954b-5deb40782c16
    Machine:
      Type:  pc-q35-rhel8.2.1
    Resources:
      Requests:
        Cpu:     100m
        Memory:  1Gi
  Networks:
    Name:  default
    Pod:
  Termination Grace Period Seconds:  180
  Volumes:
    Data Volume:
      Name:  fedora-32-1610262731-6998198
    Name:    fedora-32-1610262731-6998198
    Cloud Init No Cloud:
      User Data:  #cloud-config
user: fedora
password: fedora
chpasswd: { expire: False }
    Name:  cloudinitdisk
Status:
  Active Pods:
    8e178e84-61f6-4f05-9044-f720e51ff36a:  ssp05-tzl2g-worker-0-jzlq2
  Conditions:
    Last Probe Time:       <nil>
    Last Transition Time:  <nil>
    Message:               cannot migrate VMI with non-shared PVCs
    Reason:                DisksNotLiveMigratable
    Status:                False
    Type:                  LiveMigratable
    Last Probe Time:       <nil>
    Last Transition Time:  2021-01-10T07:13:25Z
    Message:               server error. command SyncVMI failed: "LibvirtError(Code=67, Domain=10, Message='unsupported configuration: Emulator '/usr/libexec/qemu-kvm' does not support machine type 'pc-q35-rhel8.2.1'')"
    Reason:                Synchronizing with the Domain failed.
    Status:                False
    Type:                  Synchronized
  Guest OS Info:
  Migration Method:  BlockMigration
  Node Name:         ssp05-tzl2g-worker-0-jzlq2
  Phase:             Scheduled
  Qos Class:         Burstable
Events:
  Type     Reason            Age                    From                       Message
  ----     ------            ----                   ----                       -------
  Normal   SuccessfulCreate  3m50s                  virtualmachine-controller  Created virtual machine pod virt-launcher-fedora-32-1610262731-6998198-9dppz
  Normal   SuccessfulDelete  3m49s (x2 over 3m49s)  virtualmachine-controller  Deleted temporary pod virt-launcher-fedora-32-1610262731-6998198-9dppz
  Normal   SuccessfulCreate  2m43s                  virtualmachine-controller  Created virtual machine pod virt-launcher-fedora-32-1610262731-6998198-k7tdq
  Warning  SyncFailed        75s (x15 over 2m38s)   virt-handler               server error. command SyncVMI failed: "LibvirtError(Code=67, Domain=10, Message='unsupported configuration: Emulator '/usr/libexec/qemu-kvm' does not support machine type 'pc-q35-rhel8.2.1'')"


==============================================================================
$ oc describe vm -n supported-os-common-templates-fedora-test-fedora-os-support
Name:         fedora-32-1610262731-6998198
Namespace:    supported-os-common-templates-fedora-test-fedora-os-support
Labels:       app=fedora-32-1610262731-6998198
              vm.kubevirt.io/template=fedora-server-tiny
              vm.kubevirt.io/template.namespace=openshift
              vm.kubevirt.io/template.revision=1
              vm.kubevirt.io/template.version=v0.13.0

==============================================================================
$ oc get template -n openshift fedora-server-tiny -oyaml|grep machi -A1
    tags: hidden,kubevirt,virtualmachine,fedora
    template.kubevirt.io/editable: |
--
          machine:
            type: pc-q35-rhel8.2.1

Comment 3 Ruth Netser 2021-01-10 07:24:12 UTC
VMI is scheduled:
supported-os-common-templates-fedora-test-fedora-os-support   fedora-32-1610262731-6998198   4m54s   Scheduled                 ssp05-tzl2g-worker-0-jzlq2

Comment 4 Omer Yahud 2021-01-10 12:24:07 UTC
midstream PR: https://code.engineering.redhat.com/gerrit/#/c/223192/5

midstream CI is broken, according to the CI team, it should be resolved tomorrow

Comment 5 Fabian Deutsch 2021-01-11 09:44:37 UTC
In my understanding a newer RHEL-AV should support machine types of older RHEL-AVs.

Thus, pc-q35-rhel8.2.1 should be able to run with RHEL-AV 8.3.0.


@rnetser "VMI is scheduled" -- Which machine type was now set on the VM after it got scheduled?

@mprivozn double checking is RHEL-AV 8.3 able to run RHEL-AV 8.2 machine types?

Comment 6 Dr. David Alan Gilbert 2021-01-11 15:16:48 UTC
We don't normally have x.y.1 machine types; we normally stick to x.y.0 even on x.y.1 host verisons.
Where do you see 8.2.1 ?

qemu-kvm-4.2.0-29.module+el8.2.1+8442+7a3eadf7.5.x86_64
[root@virtlab720 x86_64]# /usr/libexec/qemu-kvm -M help
Supported machines are:
pc                   RHEL 7.6.0 PC (i440FX + PIIX, 1996) (alias of pc-i440fx-rhel7.6.0)
pc-i440fx-rhel7.6.0  RHEL 7.6.0 PC (i440FX + PIIX, 1996) (default)
pc-i440fx-rhel7.5.0  RHEL 7.5.0 PC (i440FX + PIIX, 1996)
pc-i440fx-rhel7.4.0  RHEL 7.4.0 PC (i440FX + PIIX, 1996)
pc-i440fx-rhel7.3.0  RHEL 7.3.0 PC (i440FX + PIIX, 1996)
pc-i440fx-rhel7.2.0  RHEL 7.2.0 PC (i440FX + PIIX, 1996)
pc-i440fx-rhel7.1.0  RHEL 7.1.0 PC (i440FX + PIIX, 1996)
pc-i440fx-rhel7.0.0  RHEL 7.0.0 PC (i440FX + PIIX, 1996)
q35                  RHEL-8.2.0 PC (Q35 + ICH9, 2009) (alias of pc-q35-rhel8.2.0)
pc-q35-rhel8.2.0     RHEL-8.2.0 PC (Q35 + ICH9, 2009)
pc-q35-rhel8.1.0     RHEL-8.1.0 PC (Q35 + ICH9, 2009)
pc-q35-rhel8.0.0     RHEL-8.0.0 PC (Q35 + ICH9, 2009)
pc-q35-rhel7.6.0     RHEL-7.6.0 PC (Q35 + ICH9, 2009)
pc-q35-rhel7.5.0     RHEL-7.5.0 PC (Q35 + ICH9, 2009)
pc-q35-rhel7.4.0     RHEL-7.4.0 PC (Q35 + ICH9, 2009)
pc-q35-rhel7.3.0     RHEL-7.3.0 PC (Q35 + ICH9, 2009)
none                 empty machine

Comment 7 Omer Yahud 2021-01-11 15:21:21 UTC
(In reply to Dr. David Alan Gilbert from comment #6)
> We don't normally have x.y.1 machine types; we normally stick to x.y.0 even
> on x.y.1 host verisons.
> Where do you see 8.2.1 ?
> 
> qemu-kvm-4.2.0-29.module+el8.2.1+8442+7a3eadf7.5.x86_64
> [root@virtlab720 x86_64]# /usr/libexec/qemu-kvm -M help
> Supported machines are:
> pc                   RHEL 7.6.0 PC (i440FX + PIIX, 1996) (alias of
> pc-i440fx-rhel7.6.0)
> pc-i440fx-rhel7.6.0  RHEL 7.6.0 PC (i440FX + PIIX, 1996) (default)
> pc-i440fx-rhel7.5.0  RHEL 7.5.0 PC (i440FX + PIIX, 1996)
> pc-i440fx-rhel7.4.0  RHEL 7.4.0 PC (i440FX + PIIX, 1996)
> pc-i440fx-rhel7.3.0  RHEL 7.3.0 PC (i440FX + PIIX, 1996)
> pc-i440fx-rhel7.2.0  RHEL 7.2.0 PC (i440FX + PIIX, 1996)
> pc-i440fx-rhel7.1.0  RHEL 7.1.0 PC (i440FX + PIIX, 1996)
> pc-i440fx-rhel7.0.0  RHEL 7.0.0 PC (i440FX + PIIX, 1996)
> q35                  RHEL-8.2.0 PC (Q35 + ICH9, 2009) (alias of
> pc-q35-rhel8.2.0)
> pc-q35-rhel8.2.0     RHEL-8.2.0 PC (Q35 + ICH9, 2009)
> pc-q35-rhel8.1.0     RHEL-8.1.0 PC (Q35 + ICH9, 2009)
> pc-q35-rhel8.0.0     RHEL-8.0.0 PC (Q35 + ICH9, 2009)
> pc-q35-rhel7.6.0     RHEL-7.6.0 PC (Q35 + ICH9, 2009)
> pc-q35-rhel7.5.0     RHEL-7.5.0 PC (Q35 + ICH9, 2009)
> pc-q35-rhel7.4.0     RHEL-7.4.0 PC (Q35 + ICH9, 2009)
> pc-q35-rhel7.3.0     RHEL-7.3.0 PC (Q35 + ICH9, 2009)
> none                 empty machine

8.2.1 was a mistake on my end, I will to update it to 8.3.0

Comment 8 Ruth Netser 2021-01-12 08:15:53 UTC
(In reply to Fabian Deutsch from comment #5)
> In my understanding a newer RHEL-AV should support machine types of older
> RHEL-AVs.
> 
> Thus, pc-q35-rhel8.2.1 should be able to run with RHEL-AV 8.3.0.
> 
> 
> @rnetser "VMI is scheduled" -- Which machine type was now set on
> the VM after it got scheduled?
> 
> @mprivozn double checking is RHEL-AV 8.3 able to run RHEL-AV 8.2
> machine types?

Machine type was set to pc-q35-rhel8.2.1 (taken from the template)

Comment 9 Fabian Deutsch 2021-01-12 11:47:25 UTC
Okay, as we learned this was a temporary issue. It should be fixed now.

@rnetser what about a testcase to ensure that we are only setting machine types that end with .0?

Comment 10 Israel Pinto 2021-01-14 18:46:08 UTC
Verify with:
 kubevirt-ssp-operator-container-v2.6.0-34


The machine type in the common templates and kubevirt-config cm is not equals
# oc get template -n openshift -oyaml | grep -A 1 machine
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,centos
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,fedora
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,linux,rhel
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,windows
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,windows
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,windows
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,windows
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,windows
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,windows
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,windows
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
--
      tags: hidden,kubevirt,virtualmachine,windows
      template.kubevirt.io/editable: |
--
            machine:
              type: pc-q35-rhel8.3.0
[root@cnvqe-01 vms]# oc describe cm kubevirt-config -n openshift-cnv
Name:         kubevirt-config
Namespace:    openshift-cnv
Labels:       app=kubevirt-hyperconverged
Annotations:  <none>

Data
====
machine-type:
----
pc-q35-rhel8.2.0
selinuxLauncherType:
----
virt_launcher.process
smbios:
----
Family: Red Hat
Product: Container-native virtualization
Manufacturer: Red Hat
Sku: 2.6.0
Version: 2.6.0
default-network-interface:
----
masquerade
feature-gates:
----
DataVolumes,SRIOV,LiveMigration,CPUManager,CPUNodeDiscovery,Sidecar,Snapshot
Events:  <none>

Comment 11 Omer Yahud 2021-01-14 20:16:56 UTC
@ocohe @stirab Looking here http://pkgs.devel.redhat.com/cgit/containers/hco-bundle-registry/tree/hco-csv-generator.sh?h=cnv-2.6-rhel-8#n63 I see machineType is 8.3.0.
Simone/Oren can you help understand why it is not applied to the KV configmap?

Comment 12 Oren Cohen 2021-01-14 21:02:40 UTC
@ipinto , what index image (iib) / hco-bundle-registry image you were using to verify?
That kubevirt config map entry is being set by hco-operator, according to the MACHINETYPE env var set in the CSV.
The update to the env var in the CSV was done in 01-10-21 14:36:
http://pkgs.devel.redhat.com/cgit/containers/hco-bundle-registry/commit/kubevirt-hyperconverged/2.6.0/kubevirt-hyperconverged-operator.clusterserviceversion.yaml?h=cnv-2.6-rhel-8&id=ed4304fe3d5eb720b7e53cacabcc718dede377e5
The first hco-bundle-registry that contains this change is: hco-bundle-registry-container-v2.6.0-477
Which is included in the index image of: registry-proxy.engineering.redhat.com/rh-osbs/iib:37572

If you'll deploy a cluster starting with that IIB, you'll get the expected value:

$ oc get cm kubevirt-config -n openshift-cnv -o jsonpath='{.data.machine-type}'
pc-q35-rhel8.3.0

Comment 13 Michal Privoznik 2021-01-15 11:31:17 UTC
(In reply to Fabian Deutsch from comment #5)
> In my understanding a newer RHEL-AV should support machine types of older
> RHEL-AVs.
> 

Yes, we should never remove a machine type between minor releases.

> 
> @mprivozn double checking is RHEL-AV 8.3 able to run RHEL-AV 8.2
> machine types?

Yes, it has to be.

Comment 14 Israel Pinto 2021-01-16 15:54:16 UTC
Verify with: 
 hyperconverged-cluster-operator-container-v2.6.0-64 
 kubevirt-ssp-operator-container-v2.6.0-35 
Machine type is pc-q35-rhel8.3.0 in both kubevirt common templates and kubevirt-config cm.

Comment 15 Ruth Netser 2021-01-17 09:47:17 UTC
(In reply to Fabian Deutsch from comment #9)
> Okay, as we learned this was a temporary issue. It should be fixed now.
> 
> @rnetser what about a testcase to ensure that we are only setting
> machine types that end with .0?

Added a test case for this

Comment 18 errata-xmlrpc 2021-03-10 11:18:56 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 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


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