Bug 1776190

Summary: Selecting VM template in VM creation wizard closes the wizard window
Product: OpenShift Container Platform Reporter: vsibirsk
Component: Console Kubevirt PluginAssignee: Filip Krepinsky <fkrepins>
Status: CLOSED ERRATA QA Contact: Radim Hrazdil <rhrazdil>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.2.0CC: aos-bugs, fkrepins, rhrazdil
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Selecting a template without annotations was crashing the VM wizard Fix: NPE fixed, wizard no longer crashes
Story Points: ---
Clone Of:
: 1776812 (view as bug list) Environment:
Last Closed: 2020-05-04 11:16: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:
Bug Depends On:    
Bug Blocks: 1776812    
Description Flags
example-template none

Description vsibirsk 2019-11-25 09:40:43 UTC
Description of problem:
Selecting default VM template with modified yaml (added network adapter) instantly closes the wizard window.

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

How reproducible:

Steps to Reproduce:
1.Create default VM template
2.Edit template yaml to add network adapter & save:
    - masquerade: {}
      name: default
3.Create VM via wizard and select template from step 1.

Actual results:
Wizard windows instantly closed without any message/error.

Expected results:

Additional info:

Comment 1 Tomas Jelinek 2019-11-26 09:45:33 UTC
Created attachment 1639747 [details]

Comment 2 Tomas Jelinek 2019-11-26 09:46:43 UTC
I've managed to reproduce it with the attached template. But did not manage to reproduce it by manipulating the interfaces. Can you please attach your full template yaml to make sure it is the same issue?

Comment 3 vsibirsk 2019-11-26 11:29:49 UTC
Created attachment 1639772 [details]

Comment 4 vsibirsk 2019-11-26 11:35:44 UTC

Modified part (lines 48-50):
                - masquerade: {}
                  name: default

Comment 6 Radim Hrazdil 2019-11-29 09:45:23 UTC
Unable to verify using the reprofuction steps given in the description.

I created VM Template using the default YAML and added
  - masquerade: {}
    name: default

Then, when I select this template in VM Wizard, the wizard doesn't close, however, Source, OS and Workload Profile are not selected so it's not possible to proceed.
Filip, could you take a look?

Comment 7 Radim Hrazdil 2019-11-29 13:21:12 UTC
Moving to Verified after discussing issue described in the previous comment over private channel.

Comment 9 errata-xmlrpc 2020-05-04 11:16: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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.