Bug 639595

Summary: virsh reports an improper message when virt-domjobabort is run.
Product: Red Hat Enterprise Linux 6 Reporter: Humble Chirammal <hchiramm>
Component: libvirtAssignee: Osier Yang <jyang>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: ajia, ccui, dallan, dyuan, eblake, mzhan, vbian, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.8.7-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:22:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Humble Chirammal 2010-10-02 12:23:05 UTC
Description of problem:


virsh reports an improper message when virt-domjobabort is run.
If we run #virt-domjobabort to a guest OS during "virsh dump" and
virsh aborts with the following message.

# virsh dump <domain-name> <core-file-path>
error: Failed to core dump domain <domain-name> to <corefilepath>
error: operation failed: Migration was cancelled by client

As you see, virsh said that migration was cancelled although there is no
operation for the guest OS migration. The said error message is reported
as well in the following case.

- save
- managedsave
- migrate

In the case of "virsh migrate", the said message is proper.

Red Hat Enterprise Linux Version Number: 6

Architecture: x86_64
Kernel Version: kernel-2.6.32-71.el6.x86_64
Related Package Version: libvirt-client-0.8.1-27.el6.x86_64 



How reproducible:

Always

Steps to Reproduce:
1. Start up a guest OS.
# virsh start <domain-name>
2. Dump a core file of the guest OS.
# virsh dump <domain-name> <core-file-path> &
3. Abort the core dump just after the above step2.
# virsh domjobabort <domain-name>
<The said error message should be reported.>


--snip--

TERMINAL pts/1: 

[root@dhcp210-84 qemu]# virsh dump rhel6 corefile 

TERMINAL pts/2:

[root@dhcp210-84 ~]# virsh domjobinfo rhel6 Job type: Unbounded Time elapsed: 14645 ms Data processed: 188.000 KB Data remaining: 1.016 GB Data total: 1.016 GB Memory processed: 188.000 KB Memory remaining: 1.016 GB Memory total: 1.016 GB 

[root@dhcp210-84 ~]# virsh domjobabort rhel6 

TERMINAL  pts/1: 

[root@dhcp210-84 qemu]# virsh dump rhel6 corefile error: Failed to core dump domain rhel6 to corefile error: operation failed: Migration was cancelled by client [root@dhcp210-84 qemu]# 
  
Actual Results: virsh reports an improper message when virt-domjobabort is run.

Expected Results: virsh reports a proper message when virt-domjobabort is run.

--Humble

Comment 4 Osier Yang 2010-11-16 06:27:41 UTC
this is caused by migration, save, dump, and "managed save" use the same basic function, the error messages should be splited.

Comment 5 Osier Yang 2010-11-16 06:29:02 UTC
*** Bug 633697 has been marked as a duplicate of this bug. ***

Comment 6 Osier Yang 2010-12-14 07:01:04 UTC
http://www.redhat.com/archives/libvir-list/2010-December/msg00521.html

patch got pushed upstream.

- Osier

Comment 7 Jiri Denemark 2011-01-09 23:57:57 UTC
Built into libvirt-0.8.7-1.el6

Comment 8 Cui Chun 2011-01-11 04:41:13 UTC
Verified.

Test environment:
libvirt-0.8.7-1.el6
qemu-kvm-0.12.1.2-2.128.el6
kernel-2.6.32-94.el6

Steps:
1.Start up a domain
# virsh start rhel6

2.Dump a core file of the domain
# virsh dump rhel6 /tmp/aa.dump

3.About the core dump just after the above step2.
#virsh domjobabort rhel6
error: Failed to core dump domain rhel6 to /tmp/aa.dump
error: operation failed: domain core dump job: canceled by client

4.Repeat step1 to step3 to check 

  -save 
    # virsh save rhel6 /tmp/rhel6.save
    error: Failed to save domain rhel6 to /tmp/rhel6.save
    error: operation failed: domain save job: canceled by client

  -managedsave
    virsh managedsave rhel6 
    error: Failed to save domain rhel6 state
    error: operation failed: domain save job: canceled by client

Comment 10 Vivian Bian 2011-01-26 08:21:34 UTC
Verified.

Test environment:
libvirt-0.8.7-3.el6
qemu-kvm-0.12.1.2-2.129.el6
kernel-2.6.32-94.el6

Steps:
1.Start up a domain
# virsh start rhel6

2.Dump a core file of the domain
# virsh dump rhel6 /tmp/aa.dump

3.About the core dump just after the above step2.
#virsh domjobabort rhel6
error: Failed to core dump domain rhel6 to /tmp/aa.dump
error: operation failed: domain core dump job: canceled by client

4.Repeat step1 to step3 to check 

  -save 
    # virsh save rhel6 /tmp/rhel6.save
    error: Failed to save domain rhel6 to /tmp/rhel6.save
    error: operation failed: domain save job: canceled by client

  -managedsave
    virsh managedsave rhel6 
    error: Failed to save domain rhel6 state
    error: operation failed: domain save job: canceled by client

Comment 14 errata-xmlrpc 2011-05-19 13:22:20 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0596.html