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.
Description
Wrong error messages show when controller type in xml is different with guest
Version:
libvirt-1.0.5-1.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Prepare guest migration environment.
2.Install a guest and dumpxml for guest on one host.
# virsh dumpxml mig > test-controller.xml
It's controller part is as below:
<controller type='usb' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci0'/>
</controller>
3.Change one controller type in test-controller.xml,eg:change
<controller type='usb' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
to:
<controller type='virtio-serial' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
4.Do migration using test-controller.xml,the error messages showed are wrong.
# virsh migrate --live demo --xml test-controller.xml qemu+ssh://10.66.7.153/system
root.7.153's password:
error: unsupported configuration: Target domain disk controller count 4 does not match source 3
Actual results:
As describes.
error: unsupported configuration: Target domain disk controller count 4 does not match source 3
Expected results:
Something like:
error:Target controller type virtio-serial does not match source usb.
Additional info:
The same error shows when change the index of controller.
# cat /var/log/libvirt/libvirtd.log
2013-05-08 11:17:40.585+0000: 17384: info : libvirt version: 1.0.5, package: 1.el7 (Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>, 2013-05-02-09:04:52, x86-018.build.eng.bos.redhat.com)
2013-05-08 11:17:40.585+0000: 17384: error : virDomainDefCheckABIStability:12664 : unsupported configuration: Target domain disk controller count 4 does not match source 3
If you delete the implicit USB controller with index 0 from domain XML, libvirt will auto-add it anyway, which is why the domain with the virtio-serial controller has one more controller.
But I agree that the error message is wrong - only one of those 3 or 4 controller is a disk controller, so the word 'disk' doesn't belong there.
I've proposed a patch to make the error more generic:
https://www.redhat.com/archives/libvir-list/2013-May/msg00636.html
Verifying the bug with package:
libvirt-1.0.5-2.el7.x86_64
Steps as the bug description, after step 4 will get error info:
# virsh migrate --live mig --xml test_controller.xml qemu+ssh://xx.xx.xx.xx/system
root.xx.xx's password:
error: unsupported configuration: Target domain controller count 5 does not match source 4
error info DO NOT shows "disk" as expected.
Setting VERIFIED.
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.
Description Wrong error messages show when controller type in xml is different with guest Version: libvirt-1.0.5-1.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Prepare guest migration environment. 2.Install a guest and dumpxml for guest on one host. # virsh dumpxml mig > test-controller.xml It's controller part is as below: <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> <alias name='ide0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci0'/> </controller> 3.Change one controller type in test-controller.xml,eg:change <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> to: <controller type='virtio-serial' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> 4.Do migration using test-controller.xml,the error messages showed are wrong. # virsh migrate --live demo --xml test-controller.xml qemu+ssh://10.66.7.153/system root.7.153's password: error: unsupported configuration: Target domain disk controller count 4 does not match source 3 Actual results: As describes. error: unsupported configuration: Target domain disk controller count 4 does not match source 3 Expected results: Something like: error:Target controller type virtio-serial does not match source usb. Additional info: The same error shows when change the index of controller. # cat /var/log/libvirt/libvirtd.log 2013-05-08 11:17:40.585+0000: 17384: info : libvirt version: 1.0.5, package: 1.el7 (Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>, 2013-05-02-09:04:52, x86-018.build.eng.bos.redhat.com) 2013-05-08 11:17:40.585+0000: 17384: error : virDomainDefCheckABIStability:12664 : unsupported configuration: Target domain disk controller count 4 does not match source 3