-
Notifications
You must be signed in to change notification settings - Fork 519
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
host-ctr: add a mount for system logs #2295
host-ctr: add a mount for system logs #2295
Conversation
1dc9166
to
10e589e
Compare
Latest force push: added a mention of the log visibility in the README. |
README.md
Outdated
@@ -909,6 +909,8 @@ ssh -i YOUR_KEY_FILE \ | |||
|
|||
For a list of what is collected, see the logdog [command list](sources/logdog/src/log_request.rs). | |||
|
|||
Log archives are also visible to host containers. |
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.
Nit: move this line a few lines above, before "You can use SSH", and say something like:
This archive is accessible from host containers at `<blah>`.
....
10e589e
to
d1b92b6
Compare
Latest force push: revise README documentation |
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.
This needs to go under a separate directory for the purpose, like /.bottlerocket/support
. rootfs
is a different directory with a different purpose - exposing the host's entire root filesystem.
d1b92b6
to
0022e8d
Compare
Latest force push: change mount destination directory to align with directory purposes |
@@ -896,6 +896,7 @@ logdog | |||
``` | |||
|
|||
This will write an archive of the logs to `/var/log/support/bottlerocket-logs.tar.gz`. | |||
This archive is accessible from host containers at `/.bottlerocket/support`. |
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.
You can also fix the URL in the code block below to reflect this path.
Add a container-visible mount for /var/log/support, which contains system logs.
0022e8d
to
3bd7ae5
Compare
Latest force push: fix sample SSH command referencing the new log mount path |
Issue number:
Closes #2196
Description of changes:
Add a container-visible mount for /var/log/support,
which contains system logs.
Testing done:
aws-dev
host and checked that both the control and admin containers could see/.bottlerocket/support/
aws-dev
host, ranlogdog
undersheltie
and checked that I could see the generated file in the control container.Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.