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 760149 - general error return on migrate after calling abortjob()
Summary: general error return on migrate after calling abortjob()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-05 14:25 UTC by Shahar Havivi
Modified: 2012-06-20 06:37 UTC (History)
7 users (show)

Fixed In Version: libvirt-0.9.9-1.el6
Doc Type: Bug Fix
Doc Text:
No Documentation needed
Clone Of:
Environment:
Last Closed: 2012-06-20 06:37:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0748 0 normal SHIPPED_LIVE Low: libvirt security, bug fix, and enhancement update 2012-06-19 19:31:38 UTC

Description Shahar Havivi 2011-12-05 14:25:33 UTC
When calling domain.abortjob() while migration is in progress  domain.migrateToURI2() gets an error: VIR_ERR_OPERATION_FAILED, which is too general.
In the error description I am getting:
"operation failed: migration job: cancelled by client"

So in order to know that the job was cancelled I need to parse the error message.

Comment 2 Jiri Denemark 2011-12-05 15:18:28 UTC
We need to invent a new error code (VIR_ERR_OPERATION_ABORTED) and return that instead.

Comment 3 Peter Krempa 2011-12-16 15:41:10 UTC
A new error code for this purpose was introduced by :
commit 8fb2aeb662c11e131b42a42245064dbb881659b7
Author: Peter Krempa <pkrempa>
Date:   Fri Dec 16 14:58:38 2011 +0100

    migration: Add more specific error code/message on migration abort
    
    A generic error code was returned, if the user aborted a migration job.
    This made it hard to distinguish between a user requested abort and an
    error that might have occured. This patch introduces a new error code,
    which is returned in the specific case of a user abort, while leaving
    all other failures with their existing code. This makes it easier to
    distinguish between failure while mirgrating and an user requested
    abort.

The new error code is called VIR_ERR_OPERATION_ABORTED.

Comment 5 weizhang 2012-01-10 12:01:21 UTC
Verify Pass on
kernel-2.6.32-223.el6.x86_64
libvirt-0.9.9-1.el6.x86_64
qemu-kvm-0.12.1.2-2.213.el6.x86_64

# virsh migrate --live  kvm-rhel6u2-x86_64-new  qemu+ssh://10.66.83.198/system

on other console do
# virsh domjobabort kvm-rhel6u2-x86_64-new

migration report error
error: operation aborted: migration job: canceled by client

It shows that the operation is aborted

Comment 6 Peter Krempa 2012-05-02 09:43:12 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No Documentation needed

Comment 8 errata-xmlrpc 2012-06-20 06:37:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0748.html


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