-
Notifications
You must be signed in to change notification settings - Fork 689
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
Restoring tarball to Focal shows error for v2 #5829
Comments
A patch like this should resolve:
In a nutshell, each "extra-arg" passed on the CLI its own securedrop/install_files/ansible-base/roles/restore/tasks/main.yml Lines 31 to 35 in 2f73b92
Whether that task runs should be influenced by the |
Labeled as release blocker because |
Description
When restoring a v2-only Xenial backup tarball to a v3-only Focal instance, the restore action fails. It fails even if the admin explicitly requests that the tor config be preserved as-is.
Steps to Reproduce
I used libvirt-based VMs for testing, and performed all admin actions from a virtualized Tails v4.16 VM.
./securedrop-admin --force restore --preserve-tor-config ~/Persistent/backups/xenial-v2-only/sd-backup-2021-02-26--15-57-06.tar.gz
Expected Behavior
Restore action completes, old URLs are restored, and I can proceed with regenerating new v3 URL and finalizing the Xenial -> Focal migration.
Actual Behavior
Restore action fails. Even when I include the
--preserve-tor-config
flag, it still fails.Comments
On one hand, the failure is expected, since Focal is v3-only, but in the context of a migration from Xenial, it's likely we're going to have admins migrating to Focal from a recently created backup, so I recommend we defer the fail-closed behavior to a subsequent release. That'd have bearing on WIP docs changes in e..g. freedomofpress/securedrop-docs#133
The above is a policy question, but this ticket is also pointing out some bugs that should be fixed. For one,
--preserve-tor-config
is not honored, and it should be.The text was updated successfully, but these errors were encountered: