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 852973 - Migration should not be allowed if the device properties are mismatched between src and dst hosts
Summary: Migration should not be allowed if the device properties are mismatched betwe...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Orit Wasserman
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-30 07:09 UTC by Qunfang Zhang
Modified: 2014-03-04 00:24 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-02 07:37:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qunfang Zhang 2012-08-30 07:09:18 UTC
Description of problem:
Migration should not be allowed if the device properties are mismatched between src and dst hosts.
For example:
On src host: 
/usr/libexec/qemu-kvm ...  -drive file=/mnt/test.qcow2,if=none,id=drive-virtio-disk1,format=qcow2,cache=none,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1

But on dst host: 
... -drive file=/mnt/test.qcow2,if=none,id=drive-virtio-disk2,format=qcow2,cache=none,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk2,id=virtio-disk2 

After migration finished successfully, hot unplug the secondary disk "test.qcow2", failed.
(qemu) device_del drive-virtio-disk2
Device 'drive-virtio-disk2' not found

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.307.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Boot a guest on src host with a system disk and a secondary disk "test.qcow2"
/usr/libexec/qemu-kvm ...  -drive file=/mnt/test.qcow2,if=none,id=drive-virtio-disk1,format=qcow2,cache=none,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1

2.Boot the guest on dst host with listening mode but with mismatched device property of the disk "test.qcow2"

... -drive file=/mnt/test.qcow2,if=none,id=drive-virtio-disk2,format=qcow2,cache=none,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk2,id=virtio-disk2 

3. Migrate guest to dst host.
(qemu)migrate -d tcp:$dst_host_ip:5800

4. After migration finished, hot unplug the test.qcow2 disk.
(qemu) info block
drive-virtio-disk0: removable=0 io-status=ok file=/mnt/rhel5.9-32-lcov-2.qcow2 ro=0 drv=qcow2 encrypted=0
drive-virtio-disk2: removable=0 io-status=ok file=/mnt/test.qcow2 ro=0 drv=qcow2 encrypted=0
ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted]
floppy0: removable=1 locked=0 tray-open=0 [not inserted]
sd0: removable=1 locked=0 tray-open=0 [not inserted]

(qemu) device_del drive-virtio-disk2
Device 'drive-virtio-disk2' not found

  
Actual results:
Can not hot unplug the "test.qcow2" disk because the device id is mismatched with src host and can not be found.

Expected results:
Should prompt error before migration if the device property is mismatched. 

Additional info:

Comment 3 Orit Wasserman 2012-09-02 07:37:06 UTC
We don't support migration when the command line on src and dest are not the same.
Currently in QEMU we can't enforce it, it is management rule to enforce it.


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