Bug 1300159

Summary: virsh cmd will hang when remove blockcopy file
Product: Red Hat Enterprise Linux 6 Reporter: Han Han <hhan>
Component: libvirtAssignee: Erik Skultety <eskultet>
Status: CLOSED ERRATA QA Contact: Han Han <hhan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8CC: dyuan, eblake, eskultet, lmiksik, mzhan, rbalakri, virt-bugs, xuzhang, yalzhang, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.10.2-62.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1139567 Environment:
Last Closed: 2017-03-21 10:38:34 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: 1139567    
Bug Blocks: 1359965    

Comment 4 Han Han 2016-11-22 02:53:12 UTC
Verify it on libvirt-0.10.2-62.el6.x86_64:
1. Prepare a running transient VM
# virsh list --transient 
 Id    Name                           State
----------------------------------------------------
 7     copy-rm                        running

2. Do blockcopy
# virsh blockcopy copy-rm hda /var/lib/libvirt/images/copy-rm-bak1 --wait --verbose
Block Copy: [100 %]
Now in mirroring phase

3. Remove the dest file after blockcopy
# rm /var/lib/libvirt/images/copy-rm-bak1

4. Do blockjob --pivot
# virsh blockjob copy-rm hda --pivot
error: Failed to open file '/var/lib/libvirt/images/copy-rm-bak1': No such file or directory

Libvirtd doesn't hang. Bug fixed.

Comment 6 errata-xmlrpc 2017-03-21 10:38: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.

https://rhn.redhat.com/errata/RHBA-2017-0682.html