-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add the service {snap, k8s} app logging to our test run outputs #133
Comments
On this, we should have a configurable path. |
I think @marcoppenheimer, in this case, we should actually improve: https://github.com/sosreport/sos Each team should contribute its own version of a plugin: https://github.com/sosreport/sos/tree/main/sos/report/plugins Right now, we can already enable the
Where each option means:
For LXCs, thou, we need something else. LXD plugin captures container console + LXD logs, but does not capture the journal logs within each container. Therefore, the best way here would be to run the commands above on each container, capture all the logs, and download them to a local folder in the host. For kubernetes, you need to have kubectl installed and set the ~/.kube/config correctly before running that command. There is no problem in running plugin In my opinion, @carlcsaposs-canonical should run the commands above by default, at least whenever a test fails. That should come alongside juju-crashdump. Then, we can also add more plugins (kafka, opensearch, etc); as well as extra options. Wdyt? |
Currently, we collect
juju debug-log
specifics, which provides insights into the charm states. We should also collect logs from the actual services, such as systemd logs for VM charms OR k8s pod logs.That will provide insights, e.g. if we had restarting units at a given time, such as discussed in this bug.
One example of how to capture systemd logs:
main...add-more-logs
I think we need an equivalent command for k8s as well.
The text was updated successfully, but these errors were encountered: