Bug 1912849

Summary: VM from wizard - default flavor does not match the actual flavor set by common templates
Product: OpenShift Container Platform Reporter: Ruth Netser <rnetser>
Component: Console Kubevirt PluginAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.7CC: aos-bugs, gouyang, rawagner, tjelinek, yzamir
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:49:43 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

Description Ruth Netser 2021-01-05 13:01:21 UTC
Created attachment 1744567 [details]
Screenshot

Description of problem:
Create VM from wizard screen.
The displated flavor does not match the default flavor st by common templates.
For each OS (e.g: rhel7) and default label combination, only a single template is returned.

Version-Release number of selected component (if applicable):
OCP 4.7.0-fc.0, CNV 2.6.0

How reproducible:
100%

Steps to Reproduce:
1. Use SSP new templates (v2.6.0-20)
2. Virtualization -> create new VM from wizard


Actual results:
The displayed flavor for RHEL6, RHEL7, CentsOS6,7,8 and Windows Server 12 and 16 does not match the cortresponding templates' default-os-variant label.
For exmpale - fedora:
In the UI, flavor is "Tiny"
In the template, "small" is the default flavor:

  labels:
    flavor.template.kubevirt.io/small: "true"
    os.template.kubevirt.io/fedora31: "true"
    os.template.kubevirt.io/fedora32: "true"
    os.template.kubevirt.io/silverblue31: "true"
    os.template.kubevirt.io/silverblue32: "true"
    template.kubevirt.io/default-os-variant: "true"
    template.kubevirt.io/type: base
    template.kubevirt.io/version: v0.13.0-rc.0
    workload.template.kubevirt.io/server: "true"
 


Additional info:
See atatched screenshot

Comment 1 Yaacov Zamir 2021-01-05 15:18:34 UTC
@Tomas @Rastislav hi,

Can we do it for 4.7 ?

Comment 2 Rastislav Wagner 2021-01-05 15:58:53 UTC
Yes, 4.7. PR is up.

Comment 4 Guohua Ouyang 2021-01-13 10:39:05 UTC
verified on latest OCP 4.7

Comment 7 errata-xmlrpc 2021-02-24 15:49:43 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