Bug 1054035

Summary: Unicode box drawing characters are mangled in console.log
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: lab controllerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.15CC: aigao, asaha, dcallagh, llim, qwan, rmancy, xjia
Target Milestone: 0.15.3   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-03 04:52:05 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:
Bug Depends On:    
Bug Blocks: 952661    

Description Dan Callaghan 2014-01-16 06:31:51 UTC
Description of problem:
beaker-watchdog attempts to replace control characters and other binary junk with whitespace when it stores the console log for a recipe, in order to make it readable. But it mangles Unicode box drawing characters, and probably all Unicode characters above a certain point (outside Latin1 perhaps?).

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

How reproducible:
easily

Steps to Reproduce:
1. Look at console.log for any RHEL6 installation.

Actual results:
Stuff like this:
     
�  �  �  �  �  �  �  �  �  �  �  �  �  �  � � Error downloading kickstart file �  �  �  �  �  �  �  �  �  �  �  �  �  �  �       
�      
�       
�   Unable to download the kickstart file.  Please modify the    �       

Expected results:
Connecting over conserver I see that the actual output from Anaconda looks like this:

        ┌─────────────┤ Error downloading kickstart file ├─────────────┐        
        │                                                              │        
        │ Unable to download the kickstart file.  Please modify the    │        
...

The box drawing characters should be preserved unmangled in Beaker's console.log as well.

Additional info:
I'm guessing that the UTF-8 encoding of these characters contains a byte which is being replaced by Beaker.

Comment 2 Dan Callaghan 2014-01-17 02:46:05 UTC
I needed to fix this for bug 952661, so that I can match against the box drawing characters.

http://gerrit.beaker-project.org/2695

Comment 5 Nick Coghlan 2014-02-03 04:52:05 UTC
This change is included in the Beaker 0.15.3 maintenance release:

http://beaker-project.org/docs/whats-new/release-0.15.html#beaker-0-15-3