commit 16e4a61f1617bd39463e41a76f10cc2faebd8557
Author: Virginia Martins Perozim <email address hidden>
Date: Mon Oct 10 10:57:09 2022 -0400
Fail restore if no enough space for backup file
During subcloud remote restore, when backup file is on the System
controller, the backup file must be tranfered to subcloud. If the
backup file is bigger than the /tmp, that is the default staging
directory, the restore fails and there is no indication
that it failed because of /tmp 1G size limit.
The solution is to check available space of staging directory on
the target before transferring the backup file. The playbook will
fail with useful hint if there isn't enough space.
Test Plan:
PASSED: DC - subcloud B&R from system controller
file less than 1G
PASSED: DC - subcloud B&R from system controller
file bigger than 1G ansible_remote_tmp defined
PASSED: DC - subcloud B&R from system controller
file bigger than 1G ansible_remote_tmp not defined
PASSED: DC - subcloud local B&R
file bigger than 1G
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/860828 /opendev. org/starlingx/ ansible- playbooks/ commit/ 16e4a61f1617bd3 9463e41a76f10cc 2faebd8557
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 16e4a61f1617bd3 9463e41a76f10cc 2faebd8557
Author: Virginia Martins Perozim <email address hidden>
Date: Mon Oct 10 10:57:09 2022 -0400
Fail restore if no enough space for backup file
During subcloud remote restore, when backup file is on the System
controller, the backup file must be tranfered to subcloud. If the
backup file is bigger than the /tmp, that is the default staging
directory, the restore fails and there is no indication
that it failed because of /tmp 1G size limit.
The solution is to check available space of staging directory on
the target before transferring the backup file. The playbook will
fail with useful hint if there isn't enough space.
Test Plan:
PASSED: DC - subcloud B&R from system controller
file less than 1G
PASSED: DC - subcloud B&R from system controller
ansible_ remote_ tmp defined
file bigger than 1G
PASSED: DC - subcloud B&R from system controller
ansible_ remote_ tmp not defined
file bigger than 1G
PASSED: DC - subcloud local B&R
file bigger than 1G
PASSED: AIO-SX remote B&R
file less than 1G
PASSED: AIO-SX remote B&R
file bigger than 1G
Closes-Bug: 1992345 856a55241cecd31 8b979f9231c
Signed-off-by: Virginia Martins Perozim <email address hidden>
Change-Id: If380713ccc3136