Bug 706883

Summary: libvirt virDomainMemoryPeek (memsave) command fails because of permissions problems on temporary file
Product: Red Hat Enterprise Linux 6 Reporter: Richard W.M. Jones <rjones>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dallan, gren, mzhan, rwu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-0.9.2-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 11:09:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Richard W.M. Jones 2011-05-23 11:00:01 UTC
Description of problem:

# In the following code, replace "database" with the name
# of any running 64 bit guest:
perl -MSys::Virt -MSys::Virt::Domain -e '
  $vmm = Sys::Virt->new();
  $dom = $vmm->get_domain_by_name ("database");
  $data = $dom->memory_peek ("0xffffffff81000000", 65536, 1);
'

Version-Release number of selected component (if applicable):

libvirt-0.8.7-18.el6.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Run the above Perl code.
2.
3.
  
Actual results:

libvirt error code: 1, message: internal error unable to execute QEMU command 'memsave': Could not open '/var/cache/libvirt/qemu/qemu.mem.aDwa3V'


Expected results:

It should be able to run the command.

Additional info:

Fixed upstream with:

http://libvirt.org/git/?p=libvirt.git;a=commit;h=bb12a63909a85c7bf7dac20fb593b6786c78d455
http://libvirt.org/git/?p=libvirt.git;a=commit;h=aa6e7fb40861c6583534179822db1f32800cdfd5
http://libvirt.org/git/?p=libvirt.git;a=commit;h=ee9ceb3295e8e68da4c5838c57cc3c1e3a5dccfb

Comment 4 Richard W.M. Jones 2011-06-10 20:55:52 UTC
Set priority and urgency to medium.  We should fix this, but
it's not urgent or causing crashes.

Comment 5 Daniel Veillard 2011-06-23 03:19:47 UTC
This should be fixed by the libvirt-0.9.2-1.el6 rebase

Comment 6 Gunannan Ren 2011-06-28 08:01:20 UTC
The bug has been verified on libvirt-0.9.2-1.el6, no error occurred.

Comment 8 Rita Wu 2011-07-06 10:31:36 UTC
Set it as VERIFIED per comment6

Comment 9 errata-xmlrpc 2011-12-06 11:09:34 UTC
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-2011-1513.html