Bug 1924583 - Deprectaed templates are listed in the Templates screen
Summary: Deprectaed templates are listed in the Templates screen
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.7
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.7.0
Assignee: Gilad Lekner
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-03 09:07 UTC by Ruth Netser
Modified: 2021-02-24 15:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:58:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (126.90 KB, image/png)
2021-02-03 09:07 UTC, Ruth Netser
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8038 0 None closed Bug 1924583: Deprectaed templates are listed in the Templates screen 2021-02-20 09:04:02 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:58:57 UTC

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


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