cli: implement ps command#444
Conversation
|
depends on containers/virtcontainers#269 |
|
metrics-failed |
4 similar comments
|
metrics-failed |
|
metrics-failed |
|
metrics-failed |
|
metrics-failed |
|
Popular Images qa-failed 👎 |
1 similar comment
|
Popular Images qa-failed 👎 |
7217289 to
b8ec3ee
Compare
|
Popular Images qa-failed 👎 |
|
kubernetes qa-failed 👎 |
2 similar comments
|
kubernetes qa-failed 👎 |
|
kubernetes qa-failed 👎 |
|
Still blocked on containers/virtcontainers#269. |
|
kubernetes qa-failed 👎 |
b8ec3ee to
4389db1
Compare
|
kubernetes qa-failed 👎 |
2 similar comments
|
kubernetes qa-failed 👎 |
|
kubernetes qa-failed 👎 |
|
@devimc please rebase this PR in order to get the CI properly running. |
960371d to
f1d3620
Compare
sboeuf
left a comment
There was a problem hiding this comment.
Looks good, but I would prefer the CLI params to be parsed before to call into ps()
ps.go
Outdated
| SkipArgReorder: true, | ||
| } | ||
|
|
||
| func ps(context *cli.Context) error { |
There was a problem hiding this comment.
I would prefer a function prototype like this:
func ps(containerID, format string) error {since we could reuse this function. Also it is clearer to parse the arguments into the Action callback.
|
kubernetes qa-passed 👍 |
f1d3620 to
1586053
Compare
|
@sboeuf changes applied |
abdef2e to
abe3e85
Compare
|
@jodh-intel cc-proxy was updated, can you please try again? |
|
kubernetes qa-passed 👍 |
|
Still no joy I'm afraid: That (not terribly helpful) error seems to be coming from: There isn't anything else useful in journald fwics. |
|
kubernetes qa-passed 👍 |
|
I've just re-tested with latest runtime + latest agent but same problem :( (It would be great to get this landed soon as I know how tricky it's been to add the required functionality to various parts of the system). |
|
Hi @jodh-intel , still waiting for clearcontainers/agent#90 |
|
@jodh-intel it works for me probably we are doing something different |
|
I'm still seeing the problem with image |
abe3e85 to
b9c9243
Compare
|
Hi @jodh-intel I'm using fedora + CL container image [1] + latest agent [2] btw osbuilder does not include ps (procps-ng-bin) [1] - https://download.clearlinux.org/releases/18860/clear/clear-18860-containers.img.xz |
|
kubernetes qa-passed 👍 |
|
I added the procps package (like clearcontainers/osbuilder#41), but I'm still seeing |
|
After a rebase (required due to proxy changes), I am now getting the correct Could you rebase and we can get this merged? |
b9c9243 to
2cb8855
Compare
|
@jodh-intel great! thanks |
|
kubernetes qa-passed 👍 |
ps.go
Outdated
|
|
||
| var options vc.ProcessListOptions | ||
|
|
||
| // [1:] is to remove command name, ex: |
There was a problem hiding this comment.
Has this comment become detached from the code (line 43?)
ps.go
Outdated
| var options vc.ProcessListOptions | ||
|
|
||
| // [1:] is to remove command name, ex: | ||
| // context.Args(): [containet_id ps_arg1 ps_arg2 ...] |
|
Hi @devimc - could you re-push? The CI seems to have got confused. |
|
err - it just updated as I was typing! ;) |
ps command is used by ```docker top``` to show the processes running inside the container partially fixes clearcontainers#95 Signed-off-by: Julio Montes <julio.montes@intel.com>
2cb8855 to
f74d69e
Compare
|
@jodh-intel changes applied, thanks |
|
kubernetes qa-passed 👍 |
|
Coveralls is stuck (surprise!) - https://coveralls.io/jobs/31802016. Merging... |
ps command is used by
docker topto showthe processes running inside the container
partially fixes #95
Signed-off-by: Julio Montes julio.montes@intel.com