Bug 1130359

Summary: The guest will be paused for a while even fail to dump the guest's memory
Product: Red Hat Enterprise Linux 7 Reporter: zhenfeng wang <zhwang>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: acathrow, dyuan, mzhan, pkrempa, ydu, zsong
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1130364 (view as bug list) Environment:
Last Closed: 2014-08-15 08:30:00 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: 1130364    

Description zhenfeng wang 2014-08-15 03:01:26 UTC
Description of problem:
The guest will be paused for a while even fail to dump the guest's memory

Version-Release number of selected component (if applicable):
libvirt-1.2.7-1.el7.x86_64
qemu-kvm-rhev-2.1.0-1.el7.x86_64
kernel-3.10.0-142.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Prepare a normal running guest
# virsh list
 Id    Name                           State
----------------------------------------------------
 5     rhel7                          running

2.dump the guest's memory to an unexsiting place, keep on doing this
operation for several time

# virsh dump rhel7 /no_exsit/rhel7.dump
error: Failed to core dump domain rhel7 to /no_exsit/rhel7.dump
error: Failed to create file '/no_exsit/rhel7.dump': No such file or directory

# virsh dump rhel7 /no_exsit/rhel7.dump
error: Failed to core dump domain rhel7 to /no_exsit/rhel7.dump
error: Failed to create file '/no_exsit/rhel7.dump': No such file or directory

# virsh dump rhel7 /no_exsit/rhel7.dump
error: Failed to core dump domain rhel7 to /no_exsit/rhel7.dump
error: Failed to create file '/no_exsit/rhel7.dump': No such file or directory
-
-
-

Meanwhile open another terminal run the following command
# for i in {1..1000}; do virsh domstate rhel7; done > abc.txt

3.Check the guest's status in the abc.txt, we could see the guest was in paused
status sometimes
#cat abc.txt
--
running

running

running

paused

paused

paused

running

running

running


Actual results:
The guest will be paused for a while even fail to dump the guest's memory

Expected results:
The guest should keep in running status even we fail to dump the guest's memory

Comment 2 Peter Krempa 2014-08-15 08:30:00 UTC
You have to use the --live (VIR_DUMP_LIVE) flag to not pause the guest while dumping it.