Bug 2175890

Summary: [cnv-4.13] Ensure Windows 2022 Templates are marked as TechPreview like it is done now for Windows 11
Product: Container Native Virtualization (CNV) Reporter: Kedar Bidarkar <kbidarka>
Component: SSPAssignee: ffossemo
Status: CLOSED ERRATA QA Contact: zhe peng <zpeng>
Severity: high Docs Contact:
Priority: high    
Version: 4.13.0CC: acardace, ffossemo
Target Milestone: ---   
Target Release: 4.13.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry-container-v4.13.0.rhel9-1884 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-18 02:58:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kedar Bidarkar 2023-03-06 17:23:07 UTC
This bug was initially created as a copy of Bug #2132031

I am copying this bug because: 



Description of problem:

Windows 2022 template might be shown as fully supported

Actual results:
Windows 2022 template might be shown as fully supported

Expected results:
Windows 2022 is shown as Tech Preview, like Windows 11 Templates ( since 4.11.1) 

Version-Release number of selected component (if applicable):
ocp-4.13

Additional info:
vtpm is not ready yet (persistent storage)
it's still TP in 4.13 for same reason. we're trying to get this in place for 4.14 finally (swtpm deps are fixed)

Comment 1 zhe peng 2023-03-28 07:35:19 UTC
verify with build:
CNV-v4.13.0.rhel9-1884

$ for n in $(oc get template -o name -n openshift | grep windows2k22); do echo ""; echo $n; oc get $n -n openshift -o yaml | grep -A 25 "metadata"; done

emplate.template.openshift.io/windows2k22-highperformance-large
metadata:
  annotations:
    defaults.template.kubevirt.io/disk: rootdisk
    defaults.template.kubevirt.io/network: default
    description: Template for Microsoft Windows Server 2022 VM. A PVC with the Windows
      disk image must be available.
    iconClass: icon-windows
    name.os.template.kubevirt.io/win2k22: Microsoft Windows Server 2022
    openshift.io/display-name: Microsoft Windows Server 2022 VM
    openshift.io/documentation-url: https://github.com/kubevirt/common-templates
    openshift.io/provider-display-name: Red Hat - Tech Preview
    openshift.io/support-url: https://github.com/kubevirt/common-templates/issues
    operator-sdk/primary-resource: openshift-cnv/ssp-kubevirt-hyperconverged
    operator-sdk/primary-resource-type: SSP.ssp.kubevirt.io
    tags: hidden,kubevirt,virtualmachine,windows
    template.kubevirt.io/editable: |
      /objects[0].spec.template.spec.domain.cpu.cores
      /objects[0].spec.template.spec.domain.resources.requests.memory
      /objects[0].spec.template.spec.domain.devices.disks
      /objects[0].spec.template.spec.volumes
      /objects[0].spec.template.spec.networks
    template.kubevirt.io/provider: Red Hat - Tech Preview
    template.kubevirt.io/provider-support-level: Experimental
    template.kubevirt.io/provider-url: https://www.redhat.com
    template.kubevirt.io/version: v1alpha1
    template.openshift.io/bindable: "false"

template.template.openshift.io/windows2k22-highperformance-medium
metadata:
  annotations:
    defaults.template.kubevirt.io/disk: rootdisk
    defaults.template.kubevirt.io/network: default
    description: Template for Microsoft Windows Server 2022 VM. A PVC with the Windows
      disk image must be available.
    iconClass: icon-windows
    name.os.template.kubevirt.io/win2k22: Microsoft Windows Server 2022
    openshift.io/display-name: Microsoft Windows Server 2022 VM
    openshift.io/documentation-url: https://github.com/kubevirt/common-templates
    openshift.io/provider-display-name: Red Hat - Tech Preview
    openshift.io/support-url: https://github.com/kubevirt/common-templates/issues
    operator-sdk/primary-resource: openshift-cnv/ssp-kubevirt-hyperconverged
    operator-sdk/primary-resource-type: SSP.ssp.kubevirt.io
    tags: hidden,kubevirt,virtualmachine,windows
    template.kubevirt.io/editable: |
      /objects[0].spec.template.spec.domain.cpu.cores
      /objects[0].spec.template.spec.domain.resources.requests.memory
      /objects[0].spec.template.spec.domain.devices.disks
      /objects[0].spec.template.spec.volumes
      /objects[0].spec.template.spec.networks
    template.kubevirt.io/provider: Red Hat - Tech Preview
    template.kubevirt.io/provider-support-level: Experimental
    template.kubevirt.io/provider-url: https://www.redhat.com
    template.kubevirt.io/version: v1alpha1
    template.openshift.io/bindable: "false"


template.template.openshift.io/windows2k22-server-large
metadata:
  annotations:
    defaults.template.kubevirt.io/disk: rootdisk
    defaults.template.kubevirt.io/network: default
    description: Template for Microsoft Windows Server 2022 VM. A PVC with the Windows
      disk image must be available.
    iconClass: icon-windows
    name.os.template.kubevirt.io/win2k22: Microsoft Windows Server 2022
    openshift.io/display-name: Microsoft Windows Server 2022 VM
    openshift.io/documentation-url: https://github.com/kubevirt/common-templates
    openshift.io/provider-display-name: Red Hat - Tech Preview
    openshift.io/support-url: https://github.com/kubevirt/common-templates/issues
    operator-sdk/primary-resource: openshift-cnv/ssp-kubevirt-hyperconverged
    operator-sdk/primary-resource-type: SSP.ssp.kubevirt.io
    tags: hidden,kubevirt,virtualmachine,windows
    template.kubevirt.io/editable: |
      /objects[0].spec.template.spec.domain.cpu.cores
      /objects[0].spec.template.spec.domain.resources.requests.memory
      /objects[0].spec.template.spec.domain.devices.disks
      /objects[0].spec.template.spec.volumes
      /objects[0].spec.template.spec.networks
    template.kubevirt.io/provider: Red Hat - Tech Preview
    template.kubevirt.io/provider-support-level: Experimental
    template.kubevirt.io/provider-url: https://www.redhat.com
    template.kubevirt.io/version: v1alpha1
    template.openshift.io/bindable: "false"

template.template.openshift.io/windows2k22-server-medium
metadata:
  annotations:
    defaults.template.kubevirt.io/disk: rootdisk
    defaults.template.kubevirt.io/network: default
    description: Template for Microsoft Windows Server 2022 VM. A PVC with the Windows
      disk image must be available.
    iconClass: icon-windows
    name.os.template.kubevirt.io/win2k22: Microsoft Windows Server 2022
    openshift.io/display-name: Microsoft Windows Server 2022 VM
    openshift.io/documentation-url: https://github.com/kubevirt/common-templates
    openshift.io/provider-display-name: Red Hat - Tech Preview
    openshift.io/support-url: https://github.com/kubevirt/common-templates/issues
    operator-sdk/primary-resource: openshift-cnv/ssp-kubevirt-hyperconverged
    operator-sdk/primary-resource-type: SSP.ssp.kubevirt.io
    tags: hidden,kubevirt,virtualmachine,windows
    template.kubevirt.io/editable: |
      /objects[0].spec.template.spec.domain.cpu.cores
      /objects[0].spec.template.spec.domain.resources.requests.memory
      /objects[0].spec.template.spec.domain.devices.disks
      /objects[0].spec.template.spec.volumes
      /objects[0].spec.template.spec.networks
    template.kubevirt.io/provider: Red Hat - Tech Preview
    template.kubevirt.io/provider-support-level: Experimental
    template.kubevirt.io/provider-url: https://www.redhat.com
    template.kubevirt.io/version: v1alpha1
    template.openshift.io/bindable: "false"

move to verified.

Comment 3 errata-xmlrpc 2023-05-18 02: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 Virtualization 4.13.0 Images 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-2023:3205