-
Notifications
You must be signed in to change notification settings - Fork 52
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
Improved access to Hook logs #86
Comments
FWIW, I'm playing with Loki and Grafana. This combo seems to have a pretty nice potential, as its somewhat pleasant to use. But, I'm currently blocked by:
|
FWIW, I've now finished a PoC with Loki (which can be seen at https://github.com/rgl/rpi-tinkerbell-vagrant). Its not using LinuxKit Hook because it was too much trouble to configure it. Instead I'm using Debian OSIE. Here's a peek at Grafana Explore: Notice how easy it is to filter by a given Also notice it shows the logs for the |
Hey @thebsdbox, any thoughts here, by chance? |
Yeah, i've some work in progress.. but I need to pick it up. |
Out of interest (and sorry to hijack this issue a little) but is there currently a way to debug why a worker failed? I've been trying to figure out how to diagnose a workflow failure but it doesn't look like there's a viable method to get access to the Docker-in-docker logs, which makes it impossible to see what went wrong. |
Hey @jimmyat, no worries. You should be able to access the docker-in-docker container image from the Hook console with Some more discussion on this can be found here. |
## 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
As far as I can tell, Hook does not ship its logs off of the machine in any way. This means that troubleshooting issues with things like Hook starting up or workflows require the user to access the console (no other way to access the machine that I'm aware of) and run docker commands. It would be nice to be able to optionally ship logs somewhere outside the machine, at least to start. OSIE did this via Syslog to Boots. I'm not saying/proposing we do this, per se, but that is an option.
(Something for the proposals repo) We probably need a more cohesive approach in the whole stack too.
tink workflow events
andtink workflow status
only tell us high level what is going on. Then, currently with Hook, the user has to access the console to debug issues. Something via atink
command would be one way to go about it.tink logs
or similar.Expected Behaviour
Current Behaviour
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
Operating System and version (e.g. Linux, Windows, MacOS):
How are you running Tinkerbell? Using Vagrant & VirtualBox, Vagrant & Libvirt, on Packet using Terraform, or give details:
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered: