Bug 1299749 - improve messages when cancel blockcopy
Summary: improve messages when cancel blockcopy
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.8
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Erik Skultety
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-19 08:18 UTC by Han Han
Modified: 2016-10-06 11:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-06 11:21:02 UTC
Target Upstream Version:


Attachments (Terms of Use)
The log (178.68 KB, text/plain)
2016-01-19 08:18 UTC, Han Han
no flags Details

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.


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