Bug 1859235
Summary: | Common Templates - after upgrade there are 2 common templates per each os-workload-flavor combination | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Ruth Netser <rnetser> |
Component: | SSP | Assignee: | Vatsal Parekh <vparekh> |
Status: | CLOSED ERRATA | QA Contact: | Ruth Netser <rnetser> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 2.4.0 | CC: | cnv-qe-bugs, fdeutsch, oyahud |
Target Milestone: | --- | ||
Target Release: | 2.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | kubevirt-ssp-operator-container-v2.6.0-32 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-03-10 11:16:31 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: |
Description
Ruth Netser
2020-07-21 14:11:46 UTC
We have a long term solution planned in this epic https://issues.redhat.com/browse/CNV-6624 which would solve this issue. The epic is currently planned for 2.6, hence pushing this bug to 2.6 as well After an upgrade, the operator should query for all templates with the `base` label, remove all os/size/flavor labels, and reconcile the newest templates only. This way, only the latest templates are visible to the UI/CLI users and the rest are hidden for template validator use only. An equivalent oc query to find the templates that need to be modified looks like this: oc get template -l template.kubevirt.io/type="base",template.kubevirt.io/version!=$LATEST_VERSION It returns all base templates (all templates provided by the ssp-operator) that are not of the latest version Reassigning to Vatsal because Karel is on PTO This got merged upstream https://github.com/kubevirt/ssp-operator/pull/71 Verified with CNV 2.5.3 -> CNV 2.6.0 (kubevirt-ssp-operator-container-v2.6.0-37): Though we have 2 templates for rhel8-desktop-small: $ oc get template -n openshift |grep "rhel8-desktop-small" rhel8-desktop-small Template for Red Hat Enterprise Linux 8 VM or newer. A PVC with the RHEL disk... 4 (2 generated) 1 rhel8-desktop-small-v0.11.3 Template for Red Hat Enterprise Linux 8 VM or newer. A PVC with the RHEL disk... 5 (1 blank) 1 Only one is matched: $ oc get template -n openshift -l workload.template.kubevirt.io/desktop=true,flavor.template.kubevirt.io/small=true,os.template.kubevirt.io/rhel8.1=true NAME DESCRIPTION PARAMETERS OBJECTS rhel8-desktop-small Template for Red Hat Enterprise Linux 8 VM or newer. A PVC with the RHEL disk... 4 (2 generated) 1 The previous template does not have os-flavor-workload labels but only: labels: template.kubevirt.io/type: base template.kubevirt.io/version: v0.12.4 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 |