Bug 706883 - libvirt virDomainMemoryPeek (memsave) command fails because of permissions problems on temporary file
Summary: libvirt virDomainMemoryPeek (memsave) command fails because of permissions pr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-23 11:00 UTC by Richard W.M. Jones
Modified: 2011-12-06 11:09 UTC (History)
4 users (show)

Fixed In Version: libvirt-0.9.2-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 11:09:34 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1513 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-12-06 01:23:30 UTC

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


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