https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Bug ID: 1088259 Summary: "docker top all" doesn't show processes when --tty=false Product: Fedora Version: 20 Component: docker-io Assignee: lsm5@redhat.com Reporter: ldoktor@redhat.com QA Contact: extras-qa@fedoraproject.org CC: admiller@redhat.com, golang@lists.fedoraproject.org, lsm5@redhat.com, mattdm@redhat.com, mgoldman@redhat.com, skottler@redhat.com, vbatts@redhat.com
Description of problem: Hi guys, when I run docker with --tty=false, the `docker top $NAME all` doesn't show any processes (just headers). When using only `docker top $NAME` it shows them...
Also the `ps` command inside container works, but `ps all` does not.
Version-Release number of selected component (if applicable): docker-io-0.9.0-3.fc20.x86_64
How reproducible: always
Steps to Reproduce: 1. docker run -i --tty=false fedora bash 2. docker logs $NAME
Actual results: F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
Expected results: F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 1 0 24006 23954 20 0 11732 540 - R pts/14 0:00 bash
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #1 from Lukas Doktor ldoktor@redhat.com --- Can't reproduce with the upstream Docker version 0.10.0, build dc9c28f/0.10.0 top doesn't work at all (due of https://bugzilla.redhat.com/show_bug.cgi?id=1088125 )
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #2 from Lukas Doktor ldoktor@redhat.com --- OK I moved it to the old cgroup location and the results are the same. So booth, fedora docker-io-0.9.0-3.fc20.x86_64 and upstream dc9c28f/0.10.0 are unable to list processes using `all` argument in non-tty mode.
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Lukas Doktor ldoktor@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1096286
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1096286 [Bug 1096286] "docker top all" doesn't show processes when --tty=false
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |CURRENTRELEASE Last Closed| |2014-05-28 14:18:34
--- Comment #3 from Daniel Walsh dwalsh@redhat.com --- Your description is not very good, but it seems to work for me in the latest build.
# docker run -i --tty=false fedora sleep 1000 &
# docker top f6346258a527 -x PID TTY STAT TIME COMMAND 8597 ? Ss 0:00 sleep 1000 # docker top f6346258a527 -Z LABEL PID TTY TIME CMD system_u:system_r:svirt_lxc_net_t:s0:c203,c1020 8597 ? 00:00:00 sleep
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Lukas Doktor ldoktor@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |MODIFIED Resolution|CURRENTRELEASE |--- Keywords| |Reopened
--- Comment #4 from Lukas Doktor ldoktor@redhat.com --- I'm sorry there is a typo in reproducer:
Steps to Reproduce: 1. docker run -i --tty=false fedora bash 2. docker top $NAME all
The all is important and it generates the same results with docker-0.11.1-6.el7.x86_64 (so no processes listed when "docker top $NAME all" is used, it works fine with "docker top $NAME" and "docker top $NAME -x").
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #5 from Lukas Doktor ldoktor@redhat.com --- btw using "docker run -i --tty=false fedora sleep 1000 &" leads to the same problem mentioned here:
https://bugzilla.redhat.com/show_bug.cgi?id=1096273
only it's repeating TTIN signals until I reattach it.
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #6 from Daniel Walsh dwalsh@redhat.com --- I am not familiar with all, I guess this is just the same as ps al, all processes in long format?
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #7 from Daniel Walsh dwalsh@redhat.com --- Perhaps it does not support any bsd options.
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #8 from Lukas Doktor ldoktor@redhat.com --- Hi Daniel, I probably didn't emphasize the `--tty=False` enough. The problem is, that with `--tty=true` these commands works fine (the only requirement is keep headers and have PID in it).
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #9 from Lukas Doktor ldoktor@redhat.com --- RHEL version seems to be fixed now ( https://bugzilla.redhat.com/show_bug.cgi?id=1096286 ), but fedora's docker-io-0.11.1-7.fc20.x86_64 still has this (and the cgroup path) problem.
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ASSIGNED Assignee|lsm5@redhat.com |mheon@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED Assignee|mheon@redhat.com |lsm5@redhat.com
--- Comment #10 from Daniel Walsh dwalsh@redhat.com --- Ok lokesh lets push a new version to f20 when on the next update.
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Lokesh Mandvekar lsm5@switzerlandmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lsm5@switzerlandmail.ch Assignee|lsm5@redhat.com |lsm5@switzerlandmail.ch
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Lukas Doktor ldoktor@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ASSIGNED
--- Comment #11 from Lukas Doktor ldoktor@redhat.com --- Hi Daniel, today I retested this on the latest docker-io-1.0.0-6.fc20.x86_64 and docker-1.0.0-10.el7.x86_64, booth are failing again:
# TERM1 docker run -i --tty=false fedora bash sleep 1000
# TERM2 docker top a29 all F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
docker top a29 UID PID PPID C STIME TTY TIME CMD root 20226 1329 0 09:45 ? 00:00:00 bash root 20409 20226 0 09:49 ? 00:00:00 sleep 1000
as you can see with `docker top ... all` no processes are shown, only headers. When `tty=true` it works fine.
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #12 from Lukas Doktor ldoktor@redhat.com --- ^^ the last message is maybe a bit confusing. On the output you can see, that `docker top $id all` doesn't show any processes while `docker top $id` does.
The other sentence about `tty=true` is not visible from the output, but I verified it works in different run...
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #13 from Daniel Walsh dwalsh@redhat.com --- Any change in docker-1.2?
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #14 from Lukas Doktor ldoktor@redhat.com --- `docker top $id all` still doesn't work on containers without tty on docker-1.2.0-19.el7.x86_64
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Lokesh Mandvekar lsm5@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|lsm5@fedoraproject.org |lsm5@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #15 from Daniel Walsh dwalsh@redhat.com --- Lukas any miracle if this has been fixed in docker-1.5
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #16 from Lukas Doktor ldoktor@redhat.com --- Hi Dan, I moved back to qemu, Chris, could you please verify that `docker top $name all` produces only the header and no processes? (without the all it lists all processes correctly)
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #18 from Chris Evich cevich@redhat.com --- Dan,
This issue still reproduces in both docker-1.4.1-37.el7.x86_64 and docker-1.5.0-16.el7.x86_64 with and without --tty (as described above).
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|lsm5@redhat.com |smahajan@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|unspecified |low
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #19 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|smahajan@redhat.com |somalley@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|20 |22
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #20 from Sally somalley@redhat.com --- Docker top shares options with ps, not docker ps. (See man ps) To list all processes, type `docker top $id -A` per man ps
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
--- Comment #21 from Sally somalley@redhat.com --- Also, `docker top $id -A` is identical to `docker top $id -e`
https://bugzilla.redhat.com/show_bug.cgi?id=1088259
Chris Evich cevich@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |NOTABUG Last Closed|2014-05-28 14:18:34 |2015-06-02 11:54:46
--- Comment #22 from Chris Evich cevich@redhat.com --- Thanks for the info, we can close this then.
golang@lists.fedoraproject.org