This commit fixes the issue of deleting the custom
backup directory defined in the overrides file and
stored on a subcloud when the backup creation
process fails.
Test Plan:
PASS - Deploy a subcloud and create an override backup
file with a custom backup directory defined. Take a
subcloud backup passing the --local-only parameter
to store the backup in the subcloud. Create a custom
file with the same size of the remaining available
space in the custom backup directory. Take another
backup. Verify that the previous backup was not
removed when the backup creation failed due to a
lack of space.
PASS - Deploy a subcloud and create an override backup
file with a custom backup directory defined. Take a
subcloud backup and create a custom file with the same
size of the remaining available space in the custom
backup directory. Take another backup and verify
that the previous backup was not removed when the
backup creation failed due to a lack of space.
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/893686 /opendev. org/starlingx/ ansible- playbooks/ commit/ 1c782df1ea7ae46 8328f154ff35948 772342e144
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1c782df1ea7ae46 8328f154ff35948 772342e144
Author: Gustavo Pereira <email address hidden>
Date: Mon Sep 4 15:47:55 2023 -0300
Subcloud backup failure removes custom backup directory
This commit fixes the issue of deleting the custom
backup directory defined in the overrides file and
stored on a subcloud when the backup creation
process fails.
Test Plan:
PASS - Deploy a subcloud and create an override backup
file with a custom backup directory defined. Take a
subcloud backup passing the --local-only parameter
to store the backup in the subcloud. Create a custom
file with the same size of the remaining available
space in the custom backup directory. Take another
backup. Verify that the previous backup was not
removed when the backup creation failed due to a
lack of space.
PASS - Deploy a subcloud and create an override backup
file with a custom backup directory defined. Take a
subcloud backup and create a custom file with the same
size of the remaining available space in the custom
backup directory. Take another backup and verify
that the previous backup was not removed when the
backup creation failed due to a lack of space.
Closes-bug: 2033529
Signed-off-by: Gustavo Pereira <email address hidden> 7aa617e4202b544 9abfc0bf735
Change-Id: I82c3f6cb82d194