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 999352 - virsh migrate with dname parameter fails
Summary: virsh migrate with dname parameter fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-21 08:31 UTC by Pavel Hrdina
Modified: 2014-06-18 00:53 UTC (History)
5 users (show)

Fixed In Version: libvirt-1.1.1-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:08:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Hrdina 2013-08-21 08:31:14 UTC
Description of problem:
A migration of the guest fails with an error message using dname parameter to change the name of the guest.

Version-Release number of selected component (if applicable):
upstream c753749c27fb48d481e64953d59668731e5e2dbd

How reproducible:
always

Steps to Reproduce:
1. prepare any guest for migration

2. run the command 'virsh migrate --live --domain migr-test --desturi qemu+ssh://ip.address/system --dname migr-test2'

Actual results:
error: internal error: Incoming cookie data had unexpected name migr-test vs migr-test2

Expected results:
The migration should finish successfully without an error.

Comment 2 Jiri Denemark 2013-09-04 07:49:31 UTC
This is now fixed upstream by v1.1.2-43-g8d67c55:

commit 8d67c550e931f1dbc163e7e20784218edc1165df
Author: Jiri Denemark <jdenemar>
Date:   Tue Sep 3 15:17:03 2013 +0200

    qemu: Make domain renaming work during migration
    
    https://bugzilla.redhat.com/show_bug.cgi?id=999352
    
    Since commit v1.0.5-56-g449e6b1 (Pull parsing of migration xml up into
    QEMU driver APIs) any attempt to rename a domain during migration fails
    with the following error message:
    
        internal error Incoming cookie data had unexpected name DOM vs DOM2
    
    This is because migration cookies always use the original domain name
    and the mentioned commit failed to propagate the name back to
    qemuMigrationPrepareAny.

Comment 4 zhe peng 2013-09-09 03:35:02 UTC
Can reproduct this with:
libvirt-1.1.1-2.el7.x86_64

verify with build:
libvirt-1.1.1-4.el7

step:
1:prepare migration env.
2:in source, start a guest
#virsh list --all
Id    Name                           State
----------------------------------------------------
 3     rhel7                          running

3: do migration
# virsh migrate --live --domain rhel7 --desturi qemu+ssh://$DST_ip/system --dname rhel-mig

4: no error occured, check guest on DST
# virsh list --all
 Id    Name                           State
----------------------------------------------------
 2     rhel-mig                       running

move to verified.

Comment 5 Ludek Smid 2014-06-13 12:08:45 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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