Bug 2181515

Summary: spec.firmware.bootloader is not copied while cloning a UEFI VM
Product: Container Native Virtualization (CNV) Reporter: nijin ashok <nashok>
Component: User ExperienceAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.12.0CC: gouyang
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2182534 (view as bug list) Environment:
Last Closed: 2023-08-16 14:09:56 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:
Bug Depends On:    
Bug Blocks: 2182534    

Description nijin ashok 2023-03-24 11:06:11 UTC
Description of problem:

VM is having UEFI bootloader:

~~~
oc get vm rhel8-i68a2hmbnvp4r2we -o yaml|yq '.spec.template.spec.domain.firmware'
{
  "bootloader": {
    "efi": {
      "secureBoot": false
    }
  }
}
~~~

Tried cloning the VM and the cloned VM doesn't have the UEFI and will use BIOS.

~~~
# oc get vm rhel8-i68a2hmbnvp4r2we-clone -o yaml|yq '.spec.template.spec.domain.firmware'
null
~~~


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

OpenShift Virtualization   4.12.0

How reproducible:

100%

Steps to Reproduce:

1. Create a VM with UEFI, ie spec.bootloader = efi.
2. Try cloning this VM and check the definition of the cloned VM. 
3. spec.firmware.bootloader is not copied and it will use BIOS.

Actual results:

spec.firmware.bootloader is not copied while cloning a UEFI VM

Expected results:

It should keep the bootloader configuration.

Additional info:

Comment 1 Guohua Ouyang 2023-03-27 01:21:09 UTC
This is the UX issue and could reproduce it.

Comment 2 Guohua Ouyang 2023-03-28 23:24:51 UTC
verified on upstream latest

Comment 13 errata-xmlrpc 2023-08-16 14:09:56 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 (Important: OpenShift Virtualization 4.13.3 Images 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-2023:4664