Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

virtcontainers: Use shim to print the agent logs if there is no proxy #1597

Conversation

devimc
Copy link

@devimc devimc commented Apr 26, 2019

The proxy is in charge to print the agent logs, but when use_vsocks is true
the runtime doesn't start the proxy, because it's not needed, hence the agent
logs are ignored. To mitigate this limitation and to make the debugging
process easier, the fist shim started (the one who monitors the sandbox)
will read the console.sock and print the agent logs.

Depends-on: github.com/kata-containers/shim#172

fixes #1596

Signed-off-by: Julio Montes julio.montes@intel.com

The proxy is in charge to print the agent logs, but when `use_vsocks` is true
the runtime doesn't start the proxy, because it's not needed, hence the agent
logs are ignored. To mitigate this limitation and to make the debugging
processes easier, the fist shim started (the one who monitors the sandbox)
will read the console.sock and print the agent logs.

Depends-on: github.com/kata-containers/shim#172

fixes kata-containers#1596

Signed-off-by: Julio Montes <julio.montes@intel.com>
@devimc
Copy link
Author

devimc commented Apr 26, 2019

/test

@devimc
Copy link
Author

devimc commented Apr 29, 2019

@marcov @jodh-intel @sboeuf please take a look

devimc pushed a commit to devimc/kata-tests that referenced this pull request Apr 29, 2019
Agent logs should be in the shim journal when `use_vsock` and
shim debug are enabled.

Depends-on: github.com/kata-containers/runtime#1597

fixes kata-containers#1509

Signed-off-by: Julio Montes <julio.montes@intel.com>
@marcov
Copy link
Contributor

marcov commented Apr 30, 2019

lgtm
thanks @devimc

@devimc
Copy link
Author

devimc commented Apr 30, 2019

cc @grahamwhaley

Copy link
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l g t m
but I've cc'd a couple of other reviewers who will have more insight then me.

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

lgtm

Btw, thanks to the fact that the log-parser tool is as generic as possible, with use_vsock=true, it will still dtrt wrt agent logs embedded inside the shim logs rather than being embedded in the proxy logs 😄

@jodh-intel
Copy link
Contributor

The single CI failure is #1604, so we can ignore that as it's unrelated to this PR.

Merging...

@jodh-intel jodh-intel merged commit 2f020f5 into kata-containers:master May 1, 2019
@devimc devimc deleted the topic/virtcontainers/ShimPrintsAgentLogs branch October 9, 2019 19:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Read and print agent logs if there is no proxy
5 participants