Bug 827380
Summary: | Minimum value for nodesuspend time duration need be given in virsh manual or help | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | tingting zheng <tzheng> |
Component: | libvirt | Assignee: | Gunannan Ren <gren> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 6.3 | CC: | acathrow, dallan, dyasny, dyuan, mzhan, rwu, yupzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.0-0rc0.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:16:02 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: |
Description
tingting zheng
2012-06-01 10:06:22 UTC
yes, the duration needs to be more than 60 seconds. src/util/virnodesuspend.c #define MIN_TIME_REQ_FOR_SUSPEND 60 /* in seconds */ ... if (alarmTime <= MIN_TIME_REQ_FOR_SUSPEND) { virNodeSuspendError(VIR_ERR_INVALID_ARG, "%s", _("Suspend duration is too short")); return -1; } patch sent to upstream https://www.redhat.com/archives/libvir-list/2012-July/msg00887.html commit 7aea9b8cf7808d0fe77b5c9323be8f879bc2f1e6 Author: Guannan Ren <gren> Date: Wed Jul 25 13:52:49 2012 +0800 util: set minimum value of nodesuspend duration to 60 seconds Change the permissible minimum value of nodesuspend duration time to 60 seconds. If option is less than the value, reports error. Update virsh help and manpage the infomation. Verified this issue with libvirt-0.10.0-0rc0.el6.x86_64. # virsh help nodesuspend NAME nodesuspend - suspend the host node for a given time duration SYNOPSIS nodesuspend <target> <duration> [--flags <number>] DESCRIPTION Suspend the host node for a given time duration and attempt to resume thereafter. OPTIONS [--target] <string> mem(Suspend-to-RAM), disk(Suspend-to-Disk), hybrid(Hybrid-Suspend) [--duration] <number> Suspend duration in seconds, at least 60 <=====Added. --flags <number> Suspend flags, 0 for default #man virsh ..... nodesuspend [target] [duration] [flags] Puts the node (host machine) into a system-wide sleep state such as Suspend-to-RAM, Suspend-to-Disk or Hybrid-Suspend and sets up a Real-Time-Clock interrupt to fire (to wake up the node) after a time delay specified by the ’duration’ parameter. The duration time should be at least 60 seconds. .... So change the bug status to VERIFIED. 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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0276.html |