Bug 960960 - No error messages show when the console type in xml is different with guest
No error messages show when the console type in xml is different with guest
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt (Show other bugs)
7.0
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Libvirt Maintainers
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-08 07:54 EDT by tingting zheng
Modified: 2013-05-14 07:43 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-14 07:43:00 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description tingting zheng 2013-05-08 07:54:08 EDT
Description
No error messages show when the console type in xml is different with guest

Version:
libvirt-1.0.3-1.el7.x86_64(As there is bug 927176 block migration,so I use old libvirt and qemu-kvm version)
qemu-kvm-1.3.0-6.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-console.xml
It's console part is as below:
    <console type='pty' tty='/dev/pts/3'>
      <source path='/dev/pts/3'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>


3.Change console type in test-console.xml,eg:change 
    <console type='pty' tty='/dev/pts/3'>
      <source path='/dev/pts/3'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
to:
    <console type='stdio' tty='/dev/pts/3'>
      <source path='/dev/pts/3'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>


4.Do migration using test-console.xml,no error messages show and it can migrate successfully
# virsh migrate --live --xml mig-test.xml mig-test qemu+ssh://10.66.7.153/system
root@10.66.7.153's password: 

Actual results:
As describes.
No error messages show and it can migrate successfully

Expected results:
Something like:
error:Target console type stdio does not match source pty

Additional info:
After migration,the console type on target machine is "pty".
Comment 2 Jiri Denemark 2013-05-14 07:43:00 EDT
The change in console type is not guest visible, that is it does not change guest ABI and thus it is allowed to be changed during migration. The only that changes is the host side of the console, which is explicitly the kind of things that we want to allow to be changed.

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