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:
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.
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
Part of a larger change for enhancing VM status visualization: https://github.com/kubevirt/web-ui/pull/115
Fixed in: - https://github.com/kubevirt/web-ui/pull/115 - https://github.com/kubevirt/web-ui-components/pull/108
Released in 1.4.0-4
Verified on 1.4.0-5, the state is pending after just create the vm from the wizard.