Bug 1850513

Summary: VM that is being imported can be started but not stopped
Product: OpenShift Container Platform Reporter: Radim Hrazdil <rhrazdil>
Component: Console Kubevirt PluginAssignee: Phillip Bailey <phbailey>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: low Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, gouyang, mcarleto, nachandr, phbailey, pkliczew, tjelinek, yzamir
Target Milestone: ---   
Target Release: 4.6.0   
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: 2020-10-27 16:09:34 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
video sample none

Description Radim Hrazdil 2020-06-24 12:34:40 UTC
Created attachment 1698590 [details]
video sample

Description of problem:
When a VM is being imported, it is possible to 'mark' the VM for start using the dropdown Start Virtual Machine action button.

But when the user decides to stop the VM, there is an error displayed that the VM is not running.


Version-Release number of selected component (if applicable):
4.6
CNV 2.4

How reproducible:
100%

Steps to Reproduce:
1. Create VM that needs to be imported
2. Start the VM while importing
3. Stop the VM while importing

Actual results:
Error

Expected results:
VM should finish import and remain stopped afther that

Additional info:

Comment 1 Tomas Jelinek 2020-07-10 05:49:46 UTC
this is actively being worked on, should converge in upcoming sprint

Comment 2 Phillip Bailey 2020-07-16 19:50:20 UTC
Per a conversation with Stu, it was a deliberate decision to not allow the user to ask for an invalid action such as stopping a VM that isn't running. The easiest solution would be to remove the stop action from the menu while the VM is importing. Stu recommended removing both the start and stop actions since both are technically invalid. The only concern I have with that is that the user is able to set the VM to start from the wizard, making it clear that it can be done. Stu also had the idea to gray out unavailable actions and add tooltips to explain why they aren't available. This would most likely clutter the menu too much, but I wanted to make sure the suggestion gets due consideration.

@Matt, thoughts?

Comment 3 Matt 2020-07-21 12:13:16 UTC
I wouldn't suggest a tooltip in the dropdown (it's not a pattern in the console that I'm aware of).
I think we can disable (but not remove) the actions that aren't available during the import. I believe a user who is importing a VM would be intuitive enough to understand that if it's importing you can't use it yet.
We do something similar in our designs for cloning a VM. Once the clone starts the VM actions are disabled (with the exception of cancelling the clone).

Comment 6 Guohua Ouyang 2020-09-15 06:43:25 UTC
verified on master

Comment 8 errata-xmlrpc 2020-10-27 16:09:34 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196