Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1048747

Summary: Live migration with ipv6 iSCSI lun failed
Product: Red Hat Enterprise Linux 7 Reporter: Yang Yang <yanyang>
Component: qemu-kvmAssignee: Paolo Bonzini <pbonzini>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, bili, dyuan, hhuang, jdenemar, juzhang, knoel, mzhan, pbonzini, qzhang, virt-maint, yanyang, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-06 12:15:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
qemu log
none
libvirt log none

Description Yang Yang 2014-01-06 09:52:17 UTC
Created attachment 846003 [details]
qemu log

Description of problem:
Live migration with ipv6 iSCSI lun failed

Version-Release number of selected component (if applicable):
libvirt-1.1.1-16.el7.x86_64
qemu-kvm-1.5.3-30.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Prepared three machines, one as iscsi target: A, with 2 disks(USB disk is OK).
  set the ipv6 address on test machines.
  On A: #ifconfig eth0 inet6 add 3ffe::103/64
  On B: #ifconfig eth0 inet6 add 3ffe::104/64
  On C: # ifconfig eth0 inet6 add 3ffe::105/64
  
  use ping6 to ping each other with ipv6 address, check the network is all right.
2.On A, setup the iscsi target environment.
#tgt-admin --s
Target 1: iqn.20130801.10.66.5.23:target1
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
.........................
        LUN: 1
            Type: disk
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 1048 MB, Block size: 512
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: rdwr
            Backing store path: /dev/sdb
            Backing store flags: 
    Account information:
    ACL information:
        ALL
3. On B, C discover the lun exported on machine A successfully

4. On machine B: start a domain with xml below:

    <disk type='network' device='lun'>
      <driver name='qemu' type='raw'/>
      <source protocol='iscsi' name='iqn.2013-10.3ffe.103:iscsi/1'>
        <host name='3ffe::103' port='3260'/>
      </source>
      <target dev='vda' bus='virtio'/>
    </disk>

# virsh create test-yy.xml
Domain test-yy created from test-yy.xml

5. do the migration to machine C

# virsh migrate --live --verbose test-yy qemu+ssh://[3ffe::105]/system --unsafe


Actual results:
Domain was destroyed before the migration finished and the following error occurred.
Migration: [ 66 %]error: Domain not found: no domain with matching name 'test-yy'

Expected results:
Migrate successfully

Additional info:
this issue is not related to ipv6.

Comment 1 Yang Yang 2014-01-06 09:54:21 UTC
Created attachment 846004 [details]
libvirt log

Comment 3 Jiri Denemark 2014-01-06 15:39:56 UTC
Paolo, any idea what the "qemu-kvm: Guest moved used index from 256 to 0" error in qemu log means?

Comment 4 Paolo Bonzini 2014-01-08 15:40:22 UTC
I don't know what it means exactly, but it does mean that it's not a libvirt bug.  You can move it to qemu.

Comment 5 Paolo Bonzini 2014-03-05 15:05:40 UTC
I cannot reproduce this.  Can you try:

(1) using IPv6 only for migration and not for the iSCSI URL

(2) using "virsh save" and "virsh restore" instead of migration?

Comment 7 Yang Yang 2014-03-06 09:42:22 UTC
(In reply to Paolo Bonzini from comment #5)
> I cannot reproduce this.  Can you try:
> 
> (1) using IPv6 only for migration and not for the iSCSI URL
      
> (2) using "virsh save" and "virsh restore" instead of migration?


It was not reproduced on 
qemu-kvm-rhev-1.5.3-52.el7.x86_64
libvirt-1.1.1-26.el7.x86_64

Migration was completed without error.

@ (1)
   Migration works well using IPv6 with both ISCSI and non-ISCSI disk.

@ (2)
   Both save and restore work well.

So maybe it is not a bug.