-
Notifications
You must be signed in to change notification settings - Fork 46
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
Logging #19
Comments
In the design described in #88, maybe it would make sense to have two logs, one in I think it makes sense for feedback from submission processing to get passed up to |
See also this Qubes GSoC idea: LogVMs |
a first step here is trying out the |
During the 10/23-11/6 sprint, @kushaldas will investigate the AppendLog functionality and report findings here. |
The 1st way
2nd way
Option 1 should be easier I think (to maintain). |
did you see this (QubesOS/qubes-builder@58c8c0f#diff-ff568c8fe1b2773b0eed83aae8180c7d is what closed the above qubes.AppendLog ticket I linked to): https://github.com/QubesOS/qubes-builder/blob/master/rpc-services/qubesbuilder.BuildLog ? |
Yes, and that is a workaround to move logs from one vm to If this way to bring in temporary log is good enough for our usecase, we can do similar thing. |
More info about |
oqubeslogging provides a PoC Python logging handler, which can be used by our Python client to send logs to a logging vm (or We can also have a Python (adding the example to the same repo later tonight) code based systemd service to log journalctl entries into the logging vm. I will be discussing more during our Engineering meeting today. |
During the 11/6-11/20 sprint, @redshiftzero will review Kushal's proof-of-concept and offer a technical proposal for how to proceed; this work is time-boxed to 4 hours. |
@kushaldas great work! some questions/thoughts on the implementation:
some immediate next steps is in the PR #340 which adds a log VM for using this service, check it out and let me know your thoughts |
@redshiftzero I will go through #340 and reply. This was a PoC and I will address all 4 questions above in the updated implementation. |
For the 11/20-12/4 sprint, we've agreed that Kushal will address Jen's comments above: |
I tried to solve 2,3,4. Code is in master. I was trying a few ways to check for threading related issues. Because in our particular case, all the threads will be Qt threads (not normal Python threads), we can just mark all of those logging calls from the threads as Or we can continue with the current design and see the actual errors (if any). |
excellent, your changes lgtm - what do you think about kushaldas/oqubeslogging#1 for handling issue 1? |
We should make sure we have logging for audit and debugging purposes. It's quite common that admins will encounter an issue with their SecureDrop servers and we ask them to ship us their logs so we can figure out what is going wrong. Having robust logging on the workstations will help them and us debug.
Examples of kinds of events we should log:
As a rule of thumb, whenever we are creating notifications via
notify-send
, we should also log them.Given that we have multiple VMs, I think a reasonable zeroth order approach for 3.2 would be to have logs stored in each persistent VM and
dom0
.The text was updated successfully, but these errors were encountered: