Bug 2190448

Summary: Resume and pause button should not be enabled on a stopped VM
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.13.0CC: gouyang, hstastna, rsdeor, yfrimanm
Target Milestone: ---   
Target Release: 4.14.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: 2023-11-08 14:05:31 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
vm buttons in details card none

Description Guohua Ouyang 2023-04-28 13:03:46 UTC
Created attachment 1960830 [details]
vm buttons in details card

Description of problem:
Visit the VM overview tab -> Details card -> expand the kebab button, the resume and pause button is enabled when the VM is stopped, and click the resume button starts the VM, which is not expected.

The resume button should only be enabled when the VM is paused and the pause button is only enabled when the VM is running, they should be disabled if the VM is in other status.

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


How reproducible:


Steps to Reproduce:
1. Visit the VM overview tab -> Details card -> expand the kebab button
2.
3.

Actual results:
the resume and pause button is enabled when the VM is stopped
And the resume button start the VM

Expected results:
The resume button should only be enabled when the VM is paused and the pause button is only enabled when the VM is running, they should be disabled if the VM is in other status

Additional info:

Comment 1 Guohua Ouyang 2023-04-28 13:10:04 UTC
Hi Yifat, Ronen,
I didn't recall why this kebab action button is added to the VM overview details card, since it has the "Actions" button on the right top, this button looks like a redundant one for users, could you please explain it a bit or can we remove it?

Thanks,

Comment 2 Yifat Menchik 2023-04-30 04:48:48 UTC
Hi @gouyang we decided to to surface the most common actions such as stop/ resume/ pause and copy ssh command under the kebab action button in the details card. These actions are useful for users and that's why they are surfaced also there (in addition to the full list of actions that is shown under the Actions drop down).

Comment 3 Ronen 2023-04-30 13:15:20 UTC
As Yifat said, these should be the most common actions. If we have bugs on what should be displayed / enabled there based on the VM status we should fix it.

Comment 4 Guohua Ouyang 2023-07-14 02:48:59 UTC
verified on kubevirt-console-plugin-rhel9:v4.14.0-2121

Comment 6 errata-xmlrpc 2023-11-08 14:05:31 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 (Important: OpenShift Virtualization 4.14.0 Images security and bug fix update), 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/RHSA-2023:6817