Bug 1907908

Summary: VM Wizard always uses VirtIO for the VM rootdisk regardless what is defined in common-template
Product: OpenShift Container Platform Reporter: Ruth Netser <rnetser>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6.zCC: aos-bugs, eparis, glekner, gouyang, yzamir
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:44:28 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:
Attachments:
Description Flags
screenshot
none
vm yaml shows the rootdisk is virtio when use rhel6 template none

Description Ruth Netser 2020-12-15 13:54:57 UTC
Created attachment 1739339 [details]
screenshot

Description of problem:

VM Wizard seems to always use VirtIO interface for VM rootdisk instead of using interface specified in the common template

Version-Release number of selected component (if applicable):
OCP 4.6.8 CNV 2.5.2

How reproducible:
100%

Steps to Reproduce:
0. Open VM Wizard
1. Select RHEL6 OS, tiny, server
2. proceed to Storage section

Actual results:
rootdisk has default interface VirtIO; see screenshot

Expected results:
The default interface should be selected based on common-template used, which in case of RHEL6 VM should be sata:

          devices:
            disks:
            - disk:
                bus: sata
              name: rootdisk
            - disk:
                bus: sata
              name: cloudinitdisk

Additional info:

Comment 2 Yaacov Zamir 2020-12-27 10:15:05 UTC
merged upstream
https://github.com/openshift/console/pull/7645

Comment 4 Guohua Ouyang 2021-01-04 01:11:56 UTC
There is still one situation is not fixed:
1. select rhel6 template and click customize
2. create vm with defaults in customize mode

The VM rootdisk driver is virtio, not sata.

Comment 6 Guohua Ouyang 2021-01-07 04:29:49 UTC
Created attachment 1745169 [details]
vm yaml shows the rootdisk is virtio when use rhel6 template

Comment 7 Guohua Ouyang 2021-01-07 04:31:08 UTC
(In reply to Guohua Ouyang from comment #4)
> There is still one situation is not fixed:
> 1. select rhel6 template and click customize
> 2. create vm with defaults in customize mode
> 
> The VM rootdisk driver is virtio, not sata.

Still failed.

Comment 11 errata-xmlrpc 2021-02-24 15:44:28 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 Container Platform 4.7.0 security, bug fix, and enhancement 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-2020:5633