RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 639595 - virsh reports an improper message when virt-domjobabort is run.
Summary: virsh reports an improper message when virt-domjobabort is run.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.1
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Osier Yang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 633697 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-02 12:23 UTC by Humble Chirammal
Modified: 2018-11-14 19:45 UTC (History)
8 users (show)

Fixed In Version: libvirt-0.8.7-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:22:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0596 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-05-18 17:56:36 UTC

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


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