Bug 1649826 - UI Shows VM is with unknown phase during DataVolume import
Summary: UI Shows VM is with unknown phase during DataVolume import
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 1.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 1.4
Assignee: Marek Libra
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-14 15:21 UTC by Adam Litke
Modified: 2019-03-05 10:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-05 10:51:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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