Bug 1273686
Summary: | libvirt do not check the if the serial type is changed during migrate/save | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Luyao Huang <lhuang> |
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.2 | CC: | dyuan, fjin, mzhan, pkrempa, rbalakri, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:28:25 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: |
Description
Luyao Huang
2015-10-21 02:39:30 UTC
Send a patch to upstream: https://www.redhat.com/archives/libvir-list/2015-October/msg00667.html commit a98145e7c9f023b0253e91dd41d3484b95e51bc4 Author: Luyao Huang <lhuang> Date: Wed Oct 21 15:14:03 2015 +0800 conf: Add serial target type to ABI stability check https://bugzilla.redhat.com/show_bug.cgi?id=1273686 There is no ABI check for serial target type attribute, just add it. v1.2.20-140-ga98145e Verify this bug with libvirt-1.3.1-1.el7, steps as following 1.prepare a running guest use isa-serial # virsh dumpxml rhel74 <serial type='pty'> <source path='/dev/pts/1'/> <target type='isa-serial' port='1'/> <alias name='serial0'/> </serial> <console type='pty'> <source path='/dev/pts/1'/> <target type='serial' port='1'/> <alias name='serial0'/> </console> 2.Dumpxml the guest's xml to local file #virsh dumpxml rhel74 >rhel74.xml 3.Save the guest to a save file #virsh save rhel74 7r.save 4.edit the save file: <serial type='pty'> <target type='isa-serial' port='1'/> </serial> change to: <serial type='pty'> <target type='pci-serial' port='1'/> </serial> will get the expect error # virsh save-image-edit 7r.save error: unsupported configuration:Target serial type pci-serial does not match source isa-serial Failed. Try again? [y,n,f,?]: 5.edit the guest's xml <serial type='pty'> <target type='isa-serial' port='1'/> </serial> change to: <serial type='pty'> <target type='pci-serial' port='1'/> </serial> 6.Restore guest with the modified xml, will get the expect error # virsh restore 7r.save --xml rhel74.xml error: Failed to restore domain from 7r.save error: unsupported configuration:Target serial type pci-serial does not match source isa-serial 7.Prepare a migration env, then migrate the guest with specify the upper modified xml, will get the following error # virsh migrate --live rhel74 qemu+ssh://$dest_ip/system --verbose --xml rhel74.xml --unsafe root@$dest_ip's password: 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://rhn.redhat.com/errata/RHSA-2016-2577.html |