-
Notifications
You must be signed in to change notification settings - Fork 107
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
[BUG] [BACKUP/RECOVERY] rsync
command fails trying to copy artifacts
#2942
Comments
From what I've already tested this should do the trick:
But it might be worth refactoring this task:
|
rsync
command fails trying to copy artifactsrsync
command fails trying to copy artifacts
Bug hitachienergy#2942 rsync command fails trying to copy artifacts * With new version of ansible we can use private_key option for synchronize module, therefore there's no need to use rsh Bug hitachienergy#2930 Backup/recovery commands fail when default configuration for backup attached to cluster-config.yml * extend run_for_individual_documents method so it can choose relevant schema for validated document
Bug hitachienergy#2942 rsync command fails trying to copy artifacts * With new version of ansible we can use private_key option for synchronize module, therefore there's no need to use rsh Bug hitachienergy#2930 Backup/recovery commands fail when default configuration for backup attached to cluster-config.yml * extend run_for_individual_documents method so it can choose relevant schema for validated document
Bug hitachienergy#2942 rsync command fails trying to copy artifacts * With new version of ansible we can use private_key option for synchronize module, therefore there's no need to use rsh Bug hitachienergy#2930 Backup/recovery commands fail when default configuration for backup attached to cluster-config.yml * extend run_for_individual_documents method so it can choose relevant schema for validated document
Fixed rsync command. |
Describe the bug
Backup command fails on
rsync
task with the following error:rsync error: syntax or usage error (code 1) at main.c(1344) [sender=3.1.2]
.https://github.com/epiphany-platform/epiphany/blob/develop/ansible/playbooks/roles/backup/tasks/common/download_via_rsync.yml#L72
https://github.com/epiphany-platform/epiphany/blob/develop/ansible/playbooks/roles/recovery/tasks/common/upload_via_rsync.yml#L67
This is related to Ansible/Python update #2933.
Worth checking the remote shell we use:
/usr/bin/ssh -S none -i {{ private_key_file.path }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
https://github.com/epiphany-platform/epiphany/blob/develop/ansible/playbooks/roles/backup/tasks/common/download_via_rsync.yml#L84.
Maybe it's no longer needed or it should be within quotation marks
How to reproduce
Steps to reproduce the behavior:
epicli apply
to deploy a cluster with e.g. kubernetes master component enabledepicli backup -b /build/directory -f /backup/config.yml
Expected behavior
Backup should be successful
Config files
Backup config
Environment
epicli version: 2.0.0dev
Additional context
DoD checklist
The text was updated successfully, but these errors were encountered: