Bug 1649826

Summary: UI Shows VM is with unknown phase during DataVolume import
Product: Container Native Virtualization (CNV) Reporter: Adam Litke <alitke>
Component: User ExperienceAssignee: Marek Libra <mlibra>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.3CC: cnv-qe-bugs, gouyang, mlibra, tjelinek
Target Milestone: ---   
Target Release: 1.4   
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: 2019-03-05 10:51: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:

Description Adam Litke 2018-11-14 15:21:44 UTC
Description of problem:

After creating a VM using the wizard and selecting a large image to import (> 100MB) and checking "Start virtual machine on creation".  The VM is shown as running in the UI even though it hasn't started yet.


Version-Release number of selected component (if applicable):
cnv13-tech-preview/kubevirt-web-ui:v1.3-9

How reproducible: Always


Steps to Reproduce:
1. Start the Create VM wizard from the kubevirt UI
2. Choose URL provision source
3. Enter URL "https://download.fedoraproject.org/pub/fedora/linux/releases/29/Cloud/x86_64/images/Fedora-Cloud-Base-29-1.2.x86_64.raw.xz"
4. Check "Start virtual machine on creation"
5. Click through the rest of the wizard to create the VM

Actual results:
THe VM is shown as running but clicking the Console tab displays a message "Please start the VM prior accessing its console."

Expected results:
The VM should show a state of stopped or pending.


Additional info:

Comment 1 Adam Litke 2018-11-14 20:55:02 UTC
I was confused by the State vs Phase in the UI.  The state was running and the phase was -.  We should have a better phase for this situation.

Comment 2 Tomas Jelinek 2018-11-15 10:43:45 UTC
Currently the UI only reports what the backend returns. We are currently in process of enhancing it to look nicer [1] which might be a good opportunity to do some trickery on frontend to calculate the status in a more advanced way.

Lets aim for 1.4 and lets see if we'll mange to do it.

[1]: https://docs.google.com/document/d/1Fh2eb9TD0aq9JulVbLlss2ucdqYzx_uqTaThse_fcgE/edit#heading=h.xpx6q2xfff51

Comment 3 Tomas Jelinek 2018-11-26 11:48:20 UTC
Part of a larger change for enhancing VM status visualization: https://github.com/kubevirt/web-ui/pull/115

Comment 5 Marek Libra 2018-11-30 14:25:38 UTC
Released in 1.4.0-4

Comment 6 Guohua Ouyang 2018-12-14 06:57:19 UTC
Verified on 1.4.0-5, the state is pending after just create the vm from the wizard.