Skip to content
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

Send container logs to syslog server #117

Merged
merged 2 commits into from
Apr 26, 2022

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Apr 23, 2022

Description

Currently, the only way to see container logs for workflows is to access the console of a machine. This makes troubleshooting difficult. This PR sends the tink-worker and workflow container logs back to aSyslog host.

Why is this needed

Fixes: #81
Fixes: #86

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

… container:

The `docker` alias wasn't available in the getty container.
A bind mount was needed in the getty definition. Also, added
the `docker-shell` alias to easily be able to get a shell
in the DinD container for troubleshooting.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
This sends all DinD container logs (tink-worker, workflow containers)
to the syslog server that Boots currently runs. The kernel commandline
arg `syslog_host` is parsed and used for the syslog destination.

This will allow failed workflow logs to be available in Boots and not
require users to access the machines console.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
@mmlb
Copy link
Contributor

mmlb commented Apr 25, 2022

There's nothing boots specific in the PR so I'd suggest rewording to "a syslog host" and thats not so bad now :).

@mmlb mmlb closed this Apr 25, 2022
@mmlb mmlb reopened this Apr 25, 2022
@jacobweinstock jacobweinstock changed the title Send container logs to Boots via syslog Send container logs to syslog server Apr 25, 2022
Comment on lines +26 to +27
binds.add:
- /etc/profile.d/local.sh:/etc/profile.d/local.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

nice find, this had been annoying me so much!

@mmlb mmlb added the ready-to-merge Signal to Mergify to merge the PR. label Apr 26, 2022
@mergify mergify bot merged commit 47b7aff into tinkerbell:main Apr 26, 2022
@jacobweinstock jacobweinstock deleted the add-logging branch April 26, 2022 14:13
jacobweinstock added a commit that referenced this pull request Aug 31, 2022
Hello. I would like to request moving from reviewer to approver role. I am looking for a sponsor from either @mmlb or @thebsdbox. Please and thank you.

Requirements:

- [X] I have reviewed the [community membership guidelines](https://github.com/tinkerbell/proposals/blob/main/proposals/0024/GOVERNANCE.md)
- [X] I have [enabled 2FA on my GitHub account](https://github.com/settings/security)
- [X] I have subscribed to the [tinkerbell-contributors e-mail list](https://lists.cncf.io/g/cncf-tinkerbell-dev)
- [X] I am actively contributing to 1 or more Tinkerbell subprojects
- [X] Reviewer for at least 1 month
- [X] Shallow understanding of the technical goals and direction of the repository
- [X] Shallow understanding of the technical domain of the repository
- [X] Reviewed or merged at least 3 substantial PRs to the codebase such as significant re-design or whole new features

PR Reviews
#98
#89
#130

PR merges
#118
#117
#116
#115
#59

Sponsor Request from
@mmlb 
@thebsdbox
@jacobweinstock jacobweinstock mentioned this pull request Aug 31, 2022
8 tasks
mergify bot added a commit that referenced this pull request Aug 31, 2022
Hello. I would like to request moving from reviewer to approver role. I am looking for a sponsor from either @mmlb or @thebsdbox. Please and thank you.

Requirements:

- [X] I have reviewed the [community membership guidelines](https://github.com/tinkerbell/proposals/blob/main/proposals/0024/GOVERNANCE.md)
- [X] I have [enabled 2FA on my GitHub account](https://github.com/settings/security)
- [X] I have subscribed to the [tinkerbell-contributors e-mail list](https://lists.cncf.io/g/cncf-tinkerbell-dev)
- [X] I am actively contributing to 1 or more Tinkerbell subprojects
- [X] Reviewer for at least 1 month
- [X] Shallow understanding of the technical goals and direction of the repository
- [X] Shallow understanding of the technical domain of the repository
- [X] Reviewed or merged at least 3 substantial PRs to the codebase such as significant re-design or whole new features

PR Reviews
#98
#89
#130

PR merges
#118
#117
#116
#115
#59

Sponsor Request from
@mmlb 
@thebsdbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
2 participants