Bug 1911387 - Hit error - "Cannot read property 'value' of undefined" while creating VM from template
Summary: Hit error - "Cannot read property 'value' of undefined" while creating VM fro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.7
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Gilad Lekner
QA Contact: Guohua Ouyang
URL:
Whiteboard: libvirt_CNV_INT
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-29 03:42 UTC by chhu
Modified: 2021-02-24 15:49 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:49:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
hit-error.png (59.47 KB, image/png)
2020-12-29 03:45 UTC, chhu
no flags Details
reproduce video (3.64 MB, application/octet-stream)
2020-12-31 08:13 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7690 0 None open Bug 1911387: Hit error - "Cannot read property value of undefined" while creating VM 2021-01-03 12:42:43 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:49:25 UTC

Description chhu 2020-12-29 03:42:15 UTC
Description of problem:
Try to create rhel6 VM from template, hit "Cannot read property 'value' of undefined" in the web page

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

How reproducible:
100%

Steps to Reproduce:
1. Login to web console, Project: openshift-cnv, click "Virtualization" -> Virtual Machines -> Create: Virtual Machine with Wizard,
Select a template: "Red Hat Enterprise Linux 6.0 + VM" -> Next,
   Boot source type: Import via URL (creates PVC)
   Import URL: http://s3-qe-cn-storage.usersys.redhat.com/libvirt-CI- 
   resources/RHEL-6.10-x86_64-latest.qcow2
   Persitent Volume Claim size: 10 GiB
Advanced: 
   Storage class: manual
   Access mode: Single User(RWO)
Click Next,
   Project: openshift-cnv
   Virtual Machine Name: rhel6
   Flavor: Small 1 CPU| 2 GiB Memory
   Storage: 2 Disks     Workload profile: server
   Boot source: Boot from disk
   http://s3-qe-cn-storage.usersys.redhat.com/libvirt-CI-resources/RHEL-6.10-x86_64-latest.qcow2
    Select: Start this virtual machine after creation

2. Click "Create virtual machine", hit error:
   "Error creating VM Cannot read property 'value' of undefined"

3.  Check all the items are with value.
4.  Click "Customize virtual machine" -> Networking: "Next" -> Storage: "Next" -> Advanced: "Next" -> Review: "Create Virtual Machine": Get message:
"Successfully created virtual machine."

Actual results:
In step2: Hit error: "Error creating VM Cannot read property 'value' of undefined", but nothing need input.


Expected results:
In step2: Create virtual machine successfully.

Additional info:

Comment 1 chhu 2020-12-29 03:45:31 UTC
Created attachment 1742847 [details]
hit-error.png

Comment 2 Yaacov Zamir 2020-12-30 14:45:46 UTC
Moving to modified, because this part of the code was changed recently and I can't reproduce on current master branch.

Comment 3 Guohua Ouyang 2020-12-31 08:13:45 UTC
Created attachment 1743382 [details]
reproduce video

I saw this issue two days ago and didn't have time to report it and I could reproduce it again on the latest 4.7 UI.

Comment 4 Yaacov Zamir 2020-12-31 08:49:19 UTC
moving to new per comment#2

Comment 5 Yaacov Zamir 2020-12-31 09:09:49 UTC
Note from movie:
a - It looks like it happen if the default storage class does not have suggested values ?
b - or no default storage class ?

Comment 6 Guohua Ouyang 2020-12-31 10:12:08 UTC
(In reply to Yaacov Zamir from comment #5)
> Note from movie:
> a - It looks like it happen if the default storage class does not have
> suggested values ?
> b - or no default storage class ?

I forgot to mention, there are two examples:
1. the 1st is using default SC and hit the issue.
2. the 2nd is using `ocs-storagecluster-ceph-rbd` and no such issue.

Comment 8 Guohua Ouyang 2021-01-04 00:29:02 UTC
Verified on lastest 4.7 branch

Comment 11 errata-xmlrpc 2021-02-24 15:49:11 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 Container Platform 4.7.0 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-2020:5633


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