Bug 873203
Summary: | pm_suspend_for_duration and pm_wakeup parameters flags are not optional | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | weizhang <weizhan> |
Component: | perl-Sys-Virt | Assignee: | Daniel Berrangé <berrange> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 6.4 | CC: | ajia, dallan, dyuan, mzhan, rwu, ydu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | perl-Sys-Virt-0.10.2-4.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
The flags parameters for several methods was missing its default value
Consequence:
Callers of the API had to supply the flags parameter even though it should be optional
Fix:
The default values were added
Result:
The flags method is now optional for pm_suspend_for_duration and pm_wakeup
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 09:52:33 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: | |||
Bug Depends On: | |||
Bug Blocks: | 881827 |
Description
weizhang
2012-11-05 10:48:51 UTC
commit 7ac766c88f87b3e98a03d2f610b8228e802c50b7 Author: Daniel P. Berrange <berrange> Date: Fri Nov 16 13:27:19 2012 +0000 Ensure flags default to 0 for PM suspend/wakeup APIs The $conn->node_suspend_for_duration method also had the same mistake Verify pass on perl-Sys-Virt-0.10.2-4.el6.x86_64 use the script #!/usr/bin/perl use warnings; use strict; use Sys::Virt; my $uri = "qemu:///system"; my $domname = "rhel6u3"; my $con = Sys::Virt->new(address => $uri, readonly => 0); my $dom = $con->get_domain_by_name($domname); $dom->pm_suspend_for_duration(Sys::Virt::NODE_SUSPEND_TARGET_MEM, 0); $dom->pm_wakeup(); $con->node_suspend_for_duration(Sys::Virt::NODE_SUSPEND_TARGET_MEM, 60); no error occurred, so verify pass 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/RHBA-2013-0377.html |