Bug 2190448 - Resume and pause button should not be enabled on a stopped VM
Summary: Resume and pause button should not be enabled on a stopped VM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.13.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.14.0
Assignee: Hilda Stastna
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-28 13:03 UTC by Guohua Ouyang
Modified: 2023-11-08 14:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:05:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vm buttons in details card (211.88 KB, image/png)
2023-04-28 13:03 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 1361 0 None open Bug 2190448: Disable Resume, Pause buttons on stopped VM in Overview 2023-06-21 15:06:12 UTC
Red Hat Issue Tracker CNV-28439 0 None None None 2023-04-28 13:06:49 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:05:41 UTC

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


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