Bug 1299749 - improve messages when cancel blockcopy
improve messages when cancel blockcopy
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt (Show other bugs)
6.8
x86_64 Linux
low Severity low
: rc
: ---
Assigned To: Erik Skultety
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-19 03:18 EST by Han Han
Modified: 2016-10-06 07:21 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-10-06 07:21:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Han Han 2016-01-19 03:18:54 EST
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.