Bug 1093108
Summary: | Docker CLI ps command mangles data and represents with inconsistent column widths | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Chris Evich <cevich> |
Component: | docker | Assignee: | Matthew Heon <mheon> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | bsarathy, dwalsh, jrieden |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | docker-1.0 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-09-18 20:45:21 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: | 1109938 |
Description
Chris Evich
2014-04-30 15:51:23 UTC
Docker upstream seems to have fixed the alignment issues (column width and related issues), but newlines and other nonprintable and control characters are still not escaped. I'm working on a patch now. Pull request open with upstream: https://github.com/dotcloud/docker/pull/6573 It's unlikely this will make it into RHEL7's docker-1.0 build, but the subsequent release should include a fix. Excellent, even just the column widths fix will help a lot. Bonous points for escaping nonprintables :) Patch is now in RHEL7 docker-1.0 builds. This should definitely be a fix for the nonprintable/control characters issue. I haven't been able to reproduce the column widths issue, so I'm assuming it was fixed upstream for 1.0. This should be tested further, though. Great. Yeah the column-width issue is a PITA to verify, I wound up literally counting columns by hand. Though we have a test now that's very sensitive to header vs data column widths. It should altert us of any problems, given whitespace-filled docker commands. Thanks for the update. All issues confirmed fixed in docker-1.0.0-10.el7.x86_64 Client version: 1.0.0 Client API version: 1.12 Go version (client): go1.2.2 Git commit (client): 20fdb42/1.0.0 Server version: 1.0.0 Server API version: 1.12 Go version (server): go1.2.2 Git commit (server): 20fdb42/1.0.0 I ran the above steps to re-create, piped the output into ``hexdump -C | less`` and subtracted the end/startoffsets. The COMMAND column header showed max of ~123 characters (including padding to next column). All commands had all special characters properly escaped, and entire line was also quoted (nice touch). Verified in all cases, the COMMAND column data was always padded out to the same ~123 characters (including pading to next column). I also verified there were no unexpected (hidden) characters in the output, just regular ascii characters and newlines (linefeeds). Yay! 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. http://rhn.redhat.com/errata/RHBA-2014-1266.html |