Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1505336

Summary: [RFE] - Disable VM suspend and hibernate when VM XML sets 'suspend enabled=no'
Product: [oVirt] ovirt-guest-agent Reporter: Nisim Simsolo <nsimsolo>
Component: RFEsAssignee: bugs <bugs>
Status: CLOSED DEFERRED QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: low    
Version: 1.0.13CC: bugs, michal.skrivanek
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: michal.skrivanek: ovirt-future?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
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: 2017-11-16 18:29:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1437512    

Description Nisim Simsolo 2017-10-23 11:04:53 UTC
Description of problem:
This RFE request is related to bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1437512 
https://bugzilla.redhat.com/show_bug.cgi?id=1496475#c6.
Currently when running systemctl suspend or systemctl hibernate from VM CLI shell, the VM enters into suspend/hibernate mode. 
It would be nice if guest agent will be able to disable supported guests S3/S4 when VM XML sets
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>

Version-Release number of selected component (if applicable):
(RHEL 7.4) ovirt-guest-agent-common-1.0.13-5.el7ev
ovirt-engine-4.2.0-0.0.master.20171013142622.git15e767c.el7.centos
vdsm-4.20.3-182.git00c30e7.el7.centos.x86_64
libvirt-client-3.2.0-14.el7_4.3.x86_64
qemu-kvm-rhev-2.9.0-16.el7_4.8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Browse ovirt webadmin and run VM with RHEL 7.4 OS.
2. Open VM console and run 'systemctl suspend' or 'systemctl hibernate' command.
3.

Actual results:
VM enters into suspend/hibernate mode.

Expected results:
VM should ignore suspend/hibernate commands from the VM itself.