Bug 869508
Summary: | the option --flags of virsh nodesuspend command should be removed | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | EricLee <bili> |
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 6.4 | CC: | acathrow, dallan, dyasny, dyuan, eblake, mzhan, rwu, whuang, yupzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-6.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:10:56 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
EricLee
2012-10-24 06:33:01 UTC
After discussion with Jiri and Eric on irc, consensus is that the flags option should be removed and replaced with human understandable options for any applicable flags. Jiri, Eric, any thoughts? In the current code base, there ARE no flags - the only thing you can pass that does not cause failure is '--flags 0', but that's the default. The addition of the --flags argument in virsh was a mistake, and removing it makes sense. Fixed upstream by v1.0.0-rc1-17-gab54581: commit ab54581549667af43b2bef493c696633d46031ff Author: Jiri Denemark <jdenemar> Date: Thu Oct 25 10:14:38 2012 +0200 virsh: Remove --flags from nodesuspend We always expose individual bits from flags as separate options rather than exposing a raw flags options. Since virNodeSuspendForDuration does not currently support any flags, the only way of using this --flags options that would not fail is "--flags 0", which is equivalent to omitting the option. Thus it is highly unlikely anyone would actually be using it and removing it should be safe. Verified this issue with libvirt-0.10.2-6.el6.x86_64. # virsh help nodesuspend NAME nodesuspend - suspend the host node for a given time duration SYNOPSIS nodesuspend <target> <duration> 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 #man virsh .... nodesuspend [target] [duration] Puts the node (host machine) into a system-wide sleep state such as Suspend-to-RAM, Suspend-to-Disk or Hybrid-Suspend ... # virsh nodesuspend --target mem 61 --flags 0 error: command 'nodesuspend' doesn't support option --flags 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 |