Created attachment 1698590 [details]
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):
Steps to Reproduce:
1. Create VM that needs to be imported
2. Start the VM while importing
3. Stop the VM while importing
VM should finish import and remain stopped afther that
this is actively being worked on, should converge in upcoming sprint
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.
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).
verified on master
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.