Bug 470950

Summary: Serial console settings create "staircase" display affect
Product: [Community] Virtualization Tools Reporter: Bryan McLellan <btm>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: unspecifiedCC: crobinso
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-11 06:21:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
stty output before running minicom
none
stty output after running minicom
none
stty output with intrepid none

Description Bryan McLellan 2008-11-11 02:13:43 UTC
Description of problem:

When using 'virsh console domain' to connect to a serial console the display staircases and it appears every CRLF is producing two LFs.

Version-Release number of selected component (if applicable):

host: ubuntu hardy + libvirt 0.4.4-3ubuntu3 + kvm 1:62+dfsg-0ubuntu8
guest: ubuntu intrepid

Steps to Reproduce:
1. Configure /etc/event.d/ttyS0 to start getty on ttyS0
2. Configure a serial console in libvirt with:
    <console type='pty'>
      <target port='0'/>
    </console>
3. Start the guest and connect to it's console with 'virsh console domain'
  
Actual results:

Display staircases where it should carriage return

Expected results:

Display is left-justified like normal.

Workaround after startup:
stty -F `virsh ttyconsole DOMAIN` -icrnl

Comment 1 Bryan McLellan 2008-11-11 02:14:13 UTC
Created attachment 323143 [details]
stty output before running minicom

Comment 2 Bryan McLellan 2008-11-11 02:15:39 UTC
Created attachment 323144 [details]
stty output after running minicom

Comment 3 Bryan McLellan 2008-11-11 06:19:29 UTC
Created attachment 323152 [details]
stty output with intrepid

Comment 4 Bryan McLellan 2008-11-11 06:21:39 UTC
Tested on an intrepid host, and the console worked fine. Upgraded hardy host
with the issue to Ubuntu intrepid, and the issue was resolved. Terminfo bug?
Whatever it is, not directly a libvirt/virsh bug. I'm not going to look deeper
at it.

Ubuntu Hardy->Jaunty all run ncurses=5.6+20071124-1ubuntu2