Red Hat Bugzilla – Bug 1314244
RFE: virt-p2v log window should process colour escapes and backspaces
Last modified: 2016-11-03 13:59:27 EDT
Description of problem: Some messy code display at the beginning of virt-p2v log window Version-Release number of selected component (if applicable): # rpm -q libguestfs virt-v2v virt-p2v libguestfs-1.32.3-1.el7.x86_64 virt-v2v-1.32.3-1.el7.x86_64 virt-p2v-1.28.1-1.51.4.el7.iso How reproducible: 100% Steps to Reproduce: 1. Launch virt-p2v boot GUI via iso or virt-p2v pxe image. 2. Use virt-p2v to convert a host 3. See the logs in virt-p2v window. Actual results: There are some messy code at the beginning of the log. You can see the attachment pictures. Expected results: There should be no messy code. Additional info:
Created attachment 1132701 [details] screen shot
Yup. The log window is kind of messy and doesn't "process" colour escape sequences or backspaces (in this example). I tried to fix this a while back but it wasn't that simple.
Patches posted: https://www.redhat.com/archives/libguestfs/2016-June/msg00112.html
I can reproduce the bug with build: virt-p2v-1.28.1-1.51.4.el7.iso Try to verify the bug with build: virt-p2v-1.32.5-5.el7 Steps 1. Launch virt-p2v boot GUI via iso 2. Input conversion server info and click next 3. Input conversion info for host and then click start conversion Result now: There are still little messy code at the beginning of the log, pls refer to screeshot'virt-p2v-1.32.5-5.el7' Hi rjones Could you help to check this problem,thanks
Created attachment 1170625 [details] virt-p2v-1.32.5-5.el7
Yup, that's not supposed to happen. I didn't see it in my own testing.
OK this is caused because you have a readline setting set horizontal-scroll-mode on probably in /root/.inputrc or /etc/inputrc. The solution is to turn that setting off. See also: http://superuser.com/a/862341 There's apparently no way to get bash to ignore this file or to turn off the setting at runtime, so there's no real way to fix it from virt-p2v.
(In reply to Richard W.M. Jones from comment #9) > OK this is caused because you have a readline setting > > set horizontal-scroll-mode on > > probably in /root/.inputrc or /etc/inputrc. The solution is to turn > that setting off. See also: http://superuser.com/a/862341 > > There's apparently no way to get bash to ignore this file or to turn > off the setting at runtime, so there's no real way to fix it from virt-p2v. This issue is possibly fixed by: https://github.com/libguestfs/libguestfs/commit/d41cf142e1eb285eca798889d3b6a955afffbe32 However there are still some cases where the final virt-v2v-wrapper command gets echoed back into the messages output.
Try to verify the bug with build libguestfs-1.32.5-6.el7 Steps 1. Launch virt-p2v boot GUI via iso 2. Input conversion server info and click next 3. Input conversion info for host and then click start conversion Result now: There is no messy code at the beginning of the log So move the bug from ON_QA to VERIFIED
Sorry, forgot to add p2v version in build, verify the bug with build: virt-p2v-1.32.5-6.el7
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-2576.html