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 of problem:
ABI check get wrong error message when restore guest with modified xml
How producible
100%
Build:
libvirt-2.0.0-9.el7.x86_64
Steps:
1. start a guest
#virsh dumpxml rhel7
....
<serial type='pty'>
<source path='/dev/pts/2'/>
<target type='isa-serial' port='1'/>
<alias name='serial0'/>
</serial>
<console type='pty'>
<source path='/dev/pts/2'/>
<target type='serial' port='1'/>
<alias name='serial0'/>
</console>
....
#virsh dumpxml rhel7 > rhel7.xml
#virsh save rhel7 r7.save
modified xml
#vi rhel7.xml
...
<serial type='pty'>
<target type='isa-serial' port='1'/>
</serial>
...
change to:
...
<serial type='pty'>
<target type='pci-serial' port='1'/>
</serial>
...
restore guest with xml
# virsh restore r7.save --xml rhel7.xml
error: Failed to restore domain from r7.save
error: unsupported configuration: Target controller type pci does not match source virtio-serial
Actual result
error: unsupported configuration: Target controller type pci does not match source virtio-serial
Expected result
error: unsupported configuration:Target serial type pci-serial does not match source isa-serial
Pushed upstream:
commit b3388de7f26e6e62a3cf67a12481fdfbf16fc5e4
Author: Michal Privoznik <mprivozn>
AuthorDate: Fri Mar 3 10:45:31 2017 +0100
Commit: Michal Privoznik <mprivozn>
CommitDate: Wed Mar 8 10:09:15 2017 +0100
qemuDomainSaveImageUpdateDef: Don't overwrite errors from virDomainDefCheckABIStability
https://bugzilla.redhat.com/show_bug.cgi?id=1379200
When we are restoring a domain from a saved image, or just
updating its XML in the saved image - we have to make sure that
the ABI guests sees will not change. We have a function for that
which reports errors. But for some reason if this function fails,
we call it again with slightly different argument. Therefore it
might happen that we overwrite the original error and leave user
with less helpful one.
Signed-off-by: Michal Privoznik <mprivozn>
v3.1.0-81-gb3388de7f
Verified the issue with label libvirt-3.1.0-2.el7.x86_64 and the result is as below.
# virsh restore /tmp/rhel7.save --xml rhel7.xml
error: Failed to restore domain from /tmp/rhel7.save
error: unsupported configuration: Target serial type pci-serial does not match source isa-serial
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.
https://access.redhat.com/errata/RHEA-2017:1846
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.
https://access.redhat.com/errata/RHEA-2017:1846
Description of problem: ABI check get wrong error message when restore guest with modified xml How producible 100% Build: libvirt-2.0.0-9.el7.x86_64 Steps: 1. start a guest #virsh dumpxml rhel7 .... <serial type='pty'> <source path='/dev/pts/2'/> <target type='isa-serial' port='1'/> <alias name='serial0'/> </serial> <console type='pty'> <source path='/dev/pts/2'/> <target type='serial' port='1'/> <alias name='serial0'/> </console> .... #virsh dumpxml rhel7 > rhel7.xml #virsh save rhel7 r7.save modified xml #vi rhel7.xml ... <serial type='pty'> <target type='isa-serial' port='1'/> </serial> ... change to: ... <serial type='pty'> <target type='pci-serial' port='1'/> </serial> ... restore guest with xml # virsh restore r7.save --xml rhel7.xml error: Failed to restore domain from r7.save error: unsupported configuration: Target controller type pci does not match source virtio-serial Actual result error: unsupported configuration: Target controller type pci does not match source virtio-serial Expected result error: unsupported configuration:Target serial type pci-serial does not match source isa-serial