-
Notifications
You must be signed in to change notification settings - Fork 49
shim: Add option to read and print the logs from the agent #172
shim: Add option to read and print the logs from the agent #172
Conversation
b7a0cda
to
b025ced
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
minor nits
oh, if this works, that'll be great @devimc :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devimc this sounds like a nice way to bypass the vsock limitation for agent logs.
But the question is, from a kata-runtime perspective, which shim
are you going to pick to listen onto the socket?
My concern is that you will have each container level shim listening onto this socket, while we want only a single entity listening to this (since the agent is considered pod level), right?
the fist shim (sandbox)
yes, only the sandbox shim is going to listen it, see devimc/kata-runtime@09b5bb9 |
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>
b025ced
to
5bd1799
Compare
@grahamwhaley changes applied, thanks |
/test |
shim is now able to read and print the agent logs, making the debugging process easier when `use_vsocks` is true. fixes kata-containers#171 Signed-off-by: Julio Montes <julio.montes@intel.com>
5bd1799
to
8df14a1
Compare
/test |
Ok this sounds good, but are you sure the |
@sboeuf it's working on docker and the CI seems happy kata-containers/runtime#1597 |
Fedora CI failed - I'll nudge:
Ignoring Power8 CI for now until I hear it is back to being stable. |
shim is now able to read and print the agent logs, making the
debugging processes easier when
use_vsocks
is true.fixes #171
Signed-off-by: Julio Montes julio.montes@intel.com