Comment 2 for bug 1992345

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-playbooks (master)

Reviewed: https://review.opendev.org/c/starlingx/ansible-playbooks/+/860828
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/16e4a61f1617bd39463e41a76f10cc2faebd8557
Submitter: "Zuul (22348)"
Branch: master

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

    PASSED: AIO-SX remote B&R
            file less than 1G

    PASSED: AIO-SX remote B&R
            file bigger than 1G

    Closes-Bug: 1992345
    Signed-off-by: Virginia Martins Perozim <email address hidden>
    Change-Id: If380713ccc3136856a55241cecd318b979f9231c