Bug 1704221

Summary: [SSUI] Suspend action allowed for powered off VM
Product: Red Hat CloudForms Management Engine Reporter: Antonin Pagac <apagac>
Component: UI - ServiceAssignee: Martin Hradil <mhradil>
Status: CLOSED DEFERRED QA Contact: Devidas Gaikwad <dgaikwad>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.0CC: bmidwood, dgaikwad, dmetzger, hkataria, lavenel, mhradil, mshriver, obarenbo, smallamp, tfitzger
Target Milestone: GAKeywords: Regression
Target Release: 5.11.z   
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-06-24 17:25:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Antonin Pagac 2019-04-29 11:30:13 UTC
Description of problem:
Suspend action is allowed for powered off VMs in SSUI. This should be disabled, as we can't suspend powered off VMs.

In OPS UI, when trying to suspend powered off VM, it throws: "Suspend action does not apply to selected items".

The Suspend option is disabled for powered off VMs in 5.10.4.0.

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

How reproducible:
Always

Steps to Reproduce:
1. Have a service that provisions a VM. Shut it down so the VM enters Powered OFF state.
2. In SSUI, check different ways to manipulate with VM power:
  - from My Services page
  - from service details page
  - from VM details page - here is the Suspend action disabled, which is correct

Actual results:
Suspend action enabled for powered off VMs

Expected results:
Suspend action should be disabled for powered off VMs, as seen in VM details page in SSUI

Additional info: