Bug 1299749

Summary: improve messages when cancel blockcopy
Product: Red Hat Enterprise Linux 6 Reporter: Han Han <hhan>
Component: libvirtAssignee: Erik Skultety <eskultet>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.8CC: dyuan, jdenemar, jsuchane, rbalakri, xuzhang, yanyang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-06 11:21:02 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:
Attachments:
Description Flags
The log none

Description Han Han 2016-01-19 08:18:54 UTC
Created attachment 1116084 [details]
The log

Description of problem:
When canceling blockcopy, the error message is not correct. 

Version-Release number of selected component (if applicable):
libvirt-0.10.2-55.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.483.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Preparing a healthy a running transient guest, do blockcopy then cancel it via Ctrl+C or blockjob --abort 
# virsh list --state-running 
 Id    Name                           State
----------------------------------------------------
 28    haha                           running

Do blockcopy then Ctrl+C
# virsh blockcopy haha vda /var/lib/libvirt/images/ha --wait --verbose
Block Copy: [ 63 %]error: failed to query job for disk vda

Do blockcopy then blockjob --abort 
# virsh blockcopy haha vda /var/lib/libvirt/images/he --wait --verbose &;sleep 1; virsh blockjob haha vda --abort
[1] 1746
Block Copy: [ 62 %]
error: failed to query job for disk vda
[1]  + 1746 exit 1     virsh blockcopy haha vda /var/lib/libvirt/images/he --wait --verbose

Actual results:
As step1

Expected results:
error message should be: Copy aborted

Additional info:
On libvirt-1.2.17-13.el7.x86_64 it's ok.