Bug 2238024 - Custom VM templates deprecated after a upgrade from 4.10 to 4.12
Summary: Custom VM templates deprecated after a upgrade from 4.10 to 4.12
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Installation
Version: 4.12.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.12.7
Assignee: Simone Tiraboschi
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-08 14:53 UTC by Juan Orti
Modified: 2023-09-26 12:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-26 12:15:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CNV-32794 0 None None None 2023-09-08 14:54:04 UTC
Red Hat Knowledge Base (Solution) 7030930 0 None None None 2023-09-26 12:15:11 UTC

Description Juan Orti 2023-09-08 14:53:39 UTC
Description of problem:
After doing a EUS-to-EUS upgrade from 4.10 to 4.12, all customized VM templates are marked as deprecated and have to be manually modified to be usable.

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

How reproducible:
Always

Steps to Reproduce:
1. In 4.10 create a custom VM template. See below some details of the template that we had to modify after the upgrade:

```
metadata:
  labels:
    app.kubernetes.io/version: 4.12.4
    template.kubevirt.io/version: v0.19.4
    template.kubevirt.io/type: base
objects:
- apiVersion: kubevirt.io/v1
  kind: VirtualMachine
  metadata:
    labels:
      app: ${NAME}
      vm.kubevirt.io/template: rhel8-server-small
      vm.kubevirt.io/template.revision: "1"
      vm.kubevirt.io/template.version: v0.19.4
    name: ${NAME}
  spec:
    template:
      metadata:
        annotations:
          vm.kubevirt.io/flavor: small
          vm.kubevirt.io/os: rhel8
          vm.kubevirt.io/workload: server
        labels:
          kubevirt.io/domain: ${NAME}
          kubevirt.io/size: small
      spec:
        domain:
          machine:
            type: pc-q35-rhel8.4.0
parameters:
- description: Name for the new VM
  name: NAME
  required: true
```

2. Upgrade to 4.12

Actual results:
Templates are marked as deprecated and manual modifications are needed.

Expected results:
No manual intervention after the upgrade. The custom template should upgrade automatically.

Additional info:
Some of the changes needed have been documented in this solution:
https://access.redhat.com/solutions/7030930

Comment 2 Krzysztof Majcher 2023-09-12 12:43:28 UTC
Deprecation of templates happened because Customer used a wrong procedure to clone them (according to conversation with Infra team).
Fix for this bug will be done as a doc change, which is tracked here:
https://issues.redhat.com/browse/CNV-32614

Dominik, can we close this bug now?


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