-
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
Clear Salt cache and synchronize Salt before installing/uninstalling #530
Conversation
While we're at it, it may be reasonable to add the package cache clean operation discussed in #505 to this PR, since both changes require fairly lengthy test runs to verify. If so, happy to investigate or add a commit with a preferred command. |
from the currently installed version | ||
""" | ||
try: | ||
subprocess.check_call(["sudo", "rm", "-rf", "/var/cache/salt"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's worth noting there's also qubesctl saltutil.clear_cache
, which does leave some scaffolding in place, but is a bit less drastic. The removal is recommended by the qubes-mgmt-salt
README here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparing the state after running each command:
rm -rf /var/cache/salt
removes everything, as you might expectqubesctl saltutil.clear_cache
removes only files, but leaves the directories. that sounds acceptable to me, but given that the qubes docs are still technically recommending an rm, let's do that. We also have a recent report that these commands did indeed resolve an issue Install failure: "Recurse failed: none of the specified sources were found" #527 (comment)
As part of review, I'll transition a test machine from "prod" to "staging" env, running the |
The introduced of these additional calls doesn't show any problems for me. It's worth nothing that there's now an error message displayed:
but that message doesn't interfere with the install or uninstall actions. I suspect it's related to an ordering problem in how the upstream qubes modules (specifically |
Towards #527
Status
Ready for review
Test plan
securedrop-admin
and observe whether you're able to reproduce Install failure: "Recurse failed: none of the specified sources were found" #527securedrop-admin
, and observe whether you see any new issues not already tracked in Warnings on uninstall, package not removed #505If you have made changes to the provisioning logic
All tests (
make test
) pass indom0
of a Qubes install (not run yet)No files added/removed