Red Hat Bugzilla – Bug 500912
Downloading Packages messages are truncated on serial console, due to termwidth == 0
Last modified: 2016-05-31 21:37:42 EDT
Description of problem:
When yum downloads packages and prints out progress messages, the lines are truncated so they don't show what is being downloaded.
Package Arch Version Repository Size
sts-rhel5.4 x86_64 1-1.el5 mspqa 621 k
Installing for dependencies:
collie x86_64 0.14-1.el5 mspqa 40 k
gxpp x86_64 1.0-1.el5 mspqa 12 k
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 673 k
Is this ok [y/N]: y
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Installing : collie 1/3
Installing : gxpp 2/3
Installing : sts-rhel5.4 3/3
collie.x86_64 0:0.14-1.el5 gxpp.x86_64 0:1.0-1.el5
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install anything
download messages are incomplete
The complete package name should be printed while packages are being downloaded.
I can't reproduce this ... can I have access to the box this is happening on?
Are you doing anything "weird", like pipe output to expect?
Sorry, I must have missed your earlier add.
This appears to be a problem when I run yum via the serial console. I just tried it over a serial console and via ssh. The serial console still truncated the output, but the ssh session looked correct.
Ahh, right ... yeh, this is a urlgrabber "bug" in that we call fcntl.ioctl(fd, termios.TIOCGWINSZ, buf) ... and it reutrns 0.
yum itself works around this by doing 0 == 80, which should probably be moved down into urlgrabber itself.
I'll propose for 5.5
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
urlgrabber is on the 5.6 list, so we should fix this too.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.