-
Notifications
You must be signed in to change notification settings - Fork 687
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
Backup: fetch tarball with synchronize instead of fetch #4326
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ansible's fetch module causes MemoryError with large files when run with 'become': https://docs.ansible.com/ansible/latest/modules/fetch_module.html#notes It was easily replaced with the synchronize module: https://docs.ansible.com/ansible/latest/modules/synchronize_module.html
rmol
requested review from
conorsch,
emkll,
kushaldas and
msheiny
as code owners
April 8, 2019 20:33
redshiftzero
approved these changes
Apr 8, 2019
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.
tested this on an instance that was consistently hitting the MemoryError
during backup, works as advertised - thanks @rmol!
eloquence
added a commit
that referenced
this pull request
Apr 10, 2019
Time-sensitive due to Xenial updates in progress. This will be resolved with #4326 in 0.12.1, though we may want to keep some version of this documentation around in case people still encounter issues during the playbook run. Credit to @rmol for authoring the rsync command used here, which has been used during real-world upgrades.
1 task
eloquence
added a commit
that referenced
this pull request
Apr 10, 2019
Time-sensitive due to Xenial updates in progress. This will be resolved with #4326 in 0.12.1, though we may want to keep some version of this documentation around in case people still encounter issues during the playbook run. Credit to @rmol for authoring the rsync command used here, which has been used during real-world upgrades.
eloquence
added a commit
that referenced
this pull request
Apr 10, 2019
Time-sensitive due to Xenial updates in progress. This will be resolved with #4326 in 0.12.1, though we may want to keep some version of this documentation around in case people still encounter issues during the playbook run. Credit to @rmol for authoring the rsync command used here, which has been used during real-world upgrades.
eloquence
added a commit
that referenced
this pull request
Apr 10, 2019
Time-sensitive due to Xenial updates in progress. This will be resolved with #4326 in 0.12.1, though we may want to keep some version of this documentation around in case people still encounter issues during the playbook run. Credit to @rmol for authoring the rsync command used here, which has been used during real-world upgrades. (cherry picked from commit 8571ee1)
kushaldas
pushed a commit
that referenced
this pull request
Sep 25, 2019
Time-sensitive due to Xenial updates in progress. This will be resolved with #4326 in 0.12.1, though we may want to keep some version of this documentation around in case people still encounter issues during the playbook run. Credit to @rmol for authoring the rsync command used here, which has been used during real-world upgrades.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
Ansible's fetch module causes MemoryError with large files when run with 'become':
It was easily replaced with the synchronize module:
Testing
You'll need working app and admin machines. I tested with hardware, but it should be possible to test with virtual machines.
On the app server, create a one-gigabyte file in the SecureDrop store:
On the admin workstation, using the
develop
branch, back up the app server withsecuredrop-admin backup
. It should fail with aMemoryError
. If it does not, try creating a bigger file by adjusting thedd
command above.On the admin workstation, check out this branch:
Then run
./securedrop-admin backup
. It should complete successfully.Deployment
This should be a drop-in replacement for the
fetch
module usage. The backup tarball creation has not changed, only the way in which it's transferred to the admin workstation. Restoration should not be affected.Checklist
If you made changes to
securedrop-admin
:make -C admin test
) pass in the admin development containerIf you made non-trivial code changes: