Bug 1667988

Summary: [RFE] VM json description should be displayed when VM creation fails
Product: Container Native Virtualization (CNV) Reporter: Radim Hrazdil <rhrazdil>
Component: User ExperienceAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Radim Hrazdil <rhrazdil>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.4CC: cnv-qe-bugs, fkrepins, fsimonce, gouyang, mgoldboi, ncredi, tjelinek
Target Milestone: ---   
Target Release: 2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.0.0-9.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-24 20:15:50 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
unexpected template yaml none

Description Radim Hrazdil 2019-01-21 16:02:05 UTC
Description of problem:
When a VM is created using VM Wizard, there is a json description displayed at the end tab of VM Wizard.
However, when creation of the VM fails, there is only an error message, not the produced json.

In case there is an issue that can be easily fixed in the json describing the VM (i.e. add/remove/edit some attribute), it would be beneficial to display the json as well. 
User can then take the json, make any necessary changes and create the VM from file using CLI.


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

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Filip Krepinsky 2019-02-21 10:46:05 UTC
https://github.com/kubevirt/web-ui-components/pull/233

Comment 2 Federico Simoncelli 2019-02-22 12:51:25 UTC
(In reply to Radim Hrazdil from comment #0)
> Description of problem:
> When a VM is created using VM Wizard, there is a json description displayed
> at the end tab of VM Wizard.
> However, when creation of the VM fails, there is only an error message, not
> the produced json.

Is it really json or yaml?
Would yaml be more readable and easier to change without syntax mistakes?
Should we consider to open another issue to improve this?

Comment 3 Tomas Jelinek 2019-02-22 13:05:23 UTC
yes, it is really json. Opened a different ticket to show it as yaml: https://jira.coreos.com/browse/CNV-872

Comment 4 Guohua Ouyang 2019-04-22 12:59:26 UTC
Created attachment 1557158 [details]
unexpected template yaml

Assign this back as there is an unexpected yaml about template shows on vm creation result page.

Comment 5 Filip Krepinsky 2019-05-07 11:26:32 UTC
what version is it? it should be fixed in https://github.com/kubevirt/web-ui-components/releases/tag/v0.1.34

Comment 6 Yaacov Zamir 2019-05-13 06:27:07 UTC
Radim Hrazdil hi,

I can't reproduce on master, what version failed ?

Comment 7 Radim Hrazdil 2019-05-13 07:03:13 UTC
I can see vm json when VM creation fails and don't see any template related description in version: v2.0.0-14.3.
Moving to verified.

Comment 9 errata-xmlrpc 2019-07-24 20:15:50 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.

https://access.redhat.com/errata/RHEA-2019:1850