Move logging target config to templateVMs, remove redis from large template.#632
Move logging target config to templateVMs, remove redis from large template.#632
Conversation
|
Looks great, reviewing now. Might tack on some tests to verify the state if time allows. Also will append an rc3 version bump and tag, so we can build rc3 for a final round of QA. |
|
Twice now I've encountered an error during failure outputCurrently running |
|
Yes, looks specific to this PR. On main, the failure does not occur: results of 'make dev' on mainInvestigating now. |
|
@conorsch that's weird - are the redis and securedrop-log debs getting installed in sd-small-buster-template? |
Confirms that the redis packages are NOT installed in the "sd-viewer" VM. Really we want to ensure it's absent from all VMs based on the large version of the consolidated templates, but effectively this is doing that.
Since the /etc/sd-rsyslog.conf file is not yet in place on sd-log, trying to start the "securedrop-log" service will fail. Although the rc.local script doesn't exit on error, it will return the final error code of a command run within it. Since the securedrop-log task is last, it'll exit non-zero on fresh installs.
|
Summarizing discussion among the team, looks like the problem is reproducible if-and-only-if the I've pushed a commit doing so, and would appreciate verification from someone else that it works as expected.
Separately, there are a few failing tests on my machine, that don't appear to relate to this PR, but likely should be resolved as part of the 0.5.0 release. We may want to follow up with a separate PR to address those, though. |
|
Also observed the same errors, but resolved them through rebooting VMs (see #634 (comment)) however, one final test is failing, due to the absence of sd-whonix logs in sd-log |
Log collection from sd-whonix to sd-log is working well for me, I'll rebuild and try again. If you manually run |
|
Based on positive results above, I'm inclined to bump to rc3 & tag on this PR, then approve and merge. Thoughts, @zenmonkeykstop & @emkll? |
|
SGTM - the test plan for fresh installs has been updated to make sure that any existing |
Includes the logging fixes in #632
|
Bumped version to rc3, tagged, and pushed. Approving for merge. |
Includes the logging fixes in freedomofpress/securedrop-workstation#632
Move logging target config to templateVMs, remove redis from large template.
Status
Ready for review
Description of Changes
Fixes #631 .
/etc/sd-rsyslog.confto templateVMs, ensuring logging target is set for derived AppVMs.sd-logredis setup tosd-small-buster-templateTesting
Development
Run
sudo dnf remove qubes-template-securedrop-workstation-busterin dom0. Then perform amake devusing this branch and verify that:~/QubesIncomingLogsinsd-loglogger IMAPOTATOonsd-app,sd-proxy,sd-whonixresults in corresponding messages in their logfiles insd-log.sd-large-buster-template.Prod (fresh)
dom0, also transfer the repo to ~/securedrop-workstation.sudo dnf install sdw-config.rpmsudo bash securedrop-workstation/utils/qa-switch.shsdw-admin --applyand verify that:~/QubesIncomingLogsinsd-loglogger IMAPOTATOonsd-app,sd-proxy,sd-whonixresults in corresponding messages in their logfiles insd-log.sd-large-buster-template.Checklist
If you have made changes to the provisioning logic
make test) pass indom0of a Qubes install not tested yet