-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sandbox process continues emitting logs to boot
logs after sandbox has booted and user container has started
#11168
Comments
I can't repro this.
Could you explain how you know the logs are being emitted by the gofer? Note that A good way to verify which command is producing what logs is to use something like You can inspect I don't think there is a bug with |
Ah I see, so these are client side on the sandbox then, gotcha. I still think there's a bug that they should not be emitted after the guest process launches, as this is post-boot. From the name, I would expect boot to be only the part up to the part where control is handed to the guest code and we do want to capture these debug logs if something fails during this phase, but we do not want any logs once the guest process has started executed. |
boot
logs after sandbox has booted and user container has started
I see your point. That would be a different functionality than what |
That makes sense to me, having the name reflect the behavior would have removed the expectation of behavior from my perspective for sure. On my end, I've addressed the issue by disconnecting the debug pipe from our log buffer and discarding the buffer once we've established that givsor has successfully booted, so it's not a high priority ticket, especially if it's not as simple as "change the logging level at a specific point in the sandbox lifetime. It probably makes more sense as a |
Description
I was digging through some logs today and noticed that the gofer doesn't seem to be respecting the
--debug-command boot,create
option the way the sandbox does. It continues to emit debug logs well after the sentry has completed the create and boot steps and this causes a lot of noise when it's not expected that it should keep logging. I've made a change to our runtime to stop forwarding these logs after gvisor has started the guest process but I wasn't sure if it was intended that the gofer continue writing debug logs. I tried adding!gofer
to the list but it didn't seem to have an effect on the output. Also, gvisor continues to printTime: Adjusting syscall overhead down to 7
the entire time as well, even after boot, so that's another component that doesn't seem to respect the debug command filters.Note that we still have directfs disabled, as the performance benefits are not relevant to our workloads.
Steps to reproduce
--debug-command=boot,create
and--directfs=false
runsc version
`release-20241021.0`
docker version (if using docker)
uname
No response
kubectl (if using Kubernetes)
repo state (if built from source)
No response
runsc debug logs (if available)
The text was updated successfully, but these errors were encountered: