-
Notifications
You must be signed in to change notification settings - Fork 259
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
Log shim panic logs in containerd. #951
Conversation
Do we no longer need a containerd PR here? |
Nope. Whatever is written on the stderr of the shim binary delete instance will be logged by containerd automatically. |
Sweet ok! |
Can you make sure you have tested by inserting panic at various points in the code, and made sure the stack is correctly picked up by |
8140e5b
to
2b171cb
Compare
Currently hcsshim writes the shim panic logs in a file named panic.log inside the sandbox directory. However, those logs are never logged in containerd and they get lost when the sandbox container is removed. This change allows the shim to log these panic logs to containerd before deleting them. Signed-off-by: Amit Barve <[email protected]>
2b171cb
to
11ec1d1
Compare
@kevpar I have tested this by adding panic at different locations in hcsshim code and verified that the panic log shows up in both ETW and containerd events. Can you please take another look? |
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.
If testing is good then LGTM
Related work items: microsoft#173, microsoft#839, microsoft#856, microsoft#877, microsoft#881, microsoft#886, microsoft#887, microsoft#888, microsoft#889, microsoft#890, microsoft#893, microsoft#894, microsoft#896, microsoft#899, microsoft#900, microsoft#902, microsoft#904, microsoft#905, microsoft#906, microsoft#907, microsoft#908, microsoft#910, microsoft#912, microsoft#913, microsoft#914, microsoft#916, microsoft#918, microsoft#923, microsoft#925, microsoft#926, microsoft#928, microsoft#929, microsoft#932, microsoft#933, microsoft#934, microsoft#938, microsoft#939, microsoft#942, microsoft#943, microsoft#945, microsoft#946, microsoft#947, microsoft#949, microsoft#951, microsoft#952, microsoft#954
Currently hcsshim writes the shim panic logs in a file named panic.log inside the sandbox
directory. However, those logs are never logged in containerd and they get lost when the
sandbox container is removed. This change allows the shim to log these panic logs to
containerd before deleting them.
Signed-off-by: Amit Barve [email protected]