Bug 1667988 - [RFE] VM json description should be displayed when VM creation fails
Summary: [RFE] VM json description should be displayed when VM creation fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 1.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.0
Assignee: Yaacov Zamir
QA Contact: Radim Hrazdil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-21 16:02 UTC by Radim Hrazdil
Modified: 2019-07-24 20:15 UTC (History)
7 users (show)

Fixed In Version: 2.0.0-9.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-24 20:15:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
unexpected template yaml (16.41 KB, image/png)
2019-04-22 12:59 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:1850 0 None None None 2019-07-24 20:15:59 UTC

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


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