Bug 1505336 - [RFE] - Disable VM suspend and hibernate when VM XML sets 'suspend enabled=no'
Summary: [RFE] - Disable VM suspend and hibernate when VM XML sets 'suspend enabled=no'
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: ovirt-guest-agent
Classification: oVirt
Component: RFEs
Version: 1.0.13
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: bugs@ovirt.org
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks: 1437512
TreeView+ depends on / blocked
 
Reported: 2017-10-23 11:04 UTC by Nisim Simsolo
Modified: 2017-11-16 18:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-11-16 18:29:37 UTC
oVirt Team: Virt
Embargoed:
michal.skrivanek: ovirt-future?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

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.


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