Bug 1924583

Summary: Deprectaed templates are listed in the Templates screen
Product: OpenShift Container Platform Reporter: Ruth Netser <rnetser>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.7CC: aos-bugs, 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:58:08 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-02-03 09:07:16 UTC
Created attachment 1754625 [details]
Screenshot

Description of problem:
Deprecated templates are slited in the Templates screen (Workloads -> Virtuzliaztion-> Templates).

These templates exist after an upgrade.
One such template is "windows-server-medium-v0.12.3".

If a user added a golden image to win 19 in 2.5.z (OCP 4.6) and then upgrades to OCP 4.7, "Microsoft Windows Server 2012 R2+ VM" is shown in the UI and appars as if it has a boot source (as this deprecated template points to win19 as golden image)

Deprectaed templates are marked with:
template.kubevirt.io/deprecated: "true" annotation

and do not have the os-flavor-workload labels, for example:

    flavor.template.kubevirt.io/medium: "true"
    os.template.kubevirt.io/win2k19: "true"
    workload.template.kubevirt.io/server: "true"


Version-Release number of selected component (if applicable):
4.7.0-fc.5 (upgrade from 4.6), CNV 2.5.3

How reproducible:
100%

Steps to Reproduce:
1. Install OCP 4.6, CNV 2.5
2. Upgarde to OCP 4.7.0


Actual results:
Deprecated templates are listed as available templates (in this case "windows-server-medium-v0.12.3")

Expected results:
Deprecated templates should not be displayed in the Templates screen.

Additional info:
See attached screenshot
(in 2.5, common templates were not listed in this screen)

Comment 2 Guohua Ouyang 2021-02-09 03:53:20 UTC
Cannot see this issue on latest master, but it's still on 4.7.0-fc.5, hold and will verify it on next build.

Comment 3 Guohua Ouyang 2021-02-10 04:49:18 UTC
verified on ocp 4.7.0-rc.0

Comment 6 errata-xmlrpc 2021-02-24 15:58:08 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