Bug 2175274

Summary: Error after trying to edit VM CPU | Memory field in VM Details
Product: Container Native Virtualization (CNV) Reporter: Hilda Stastna <hstastna>
Component: User ExperienceAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.13.0CC: gouyang
Target Milestone: ---   
Target Release: 4.13.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-18 02:57:59 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:
Attachments:
Description Flags
Error after trying to edit VM CPU | Memory field in VM Details none

Description Hilda Stastna 2023-03-03 18:31:48 UTC
Created attachment 1947741 [details]
Error after trying to edit VM CPU | Memory field in VM Details

Description of problem:
Blank page is displayed, after trying to edit CPU/Memory of a VM,
created from a template without "spec.template.spec.domain.cpu" defined in its VM object.

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

How reproducible:
100%

Steps to Reproduce:
1. Create a template without "spec.template.spec.domain.cpu" defined in its VM object
2. Create a VM from such a template
3. Click on "CPU | Memory" field to change it, in the VM Details tab/page

Actual results:
Blank page is displayed, error in browser console:
"Uncaught TypeError: vmDraft.spec.template.spec.domain.cpu is undefined"

Expected results:
Page is displayed correctly, modal to Edit CPU/Memory is opened, no error.

Comment 1 Guohua Ouyang 2023-03-27 06:58:50 UTC
verified on 4.13.0

Comment 3 errata-xmlrpc 2023-05-18 02:57:59 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