commit 388b82609185479bc7aae8cda70c0784d5a465a7
Author: Gabriel Silva Trevisan <email address hidden>
Date: Fri Jun 3 14:41:24 2022 -0300
Clean up subcloud iso path on remote reinstall
When remote installing a subcloud after an abrupt termination on a
previous attempt (e.g.: uncontrolled swact, service restart), a failure
might occur on gen-bootloader-iso script, due to a remaining ISO
directory still being present for the subcloud.
Clean up ISO path for the subcloud to make sure it is empty before
calling the script.
Test Plan:
PASS:
- Reinstall subcloud with an existing directory in ISO path and make
sure installation removes it before proceeding.
- Reinstall subcloud after previous attempt abruptly terminates due to
service restart.
- Reinstall subcloud after previous attempt abruptly terminates due to
host swact.
- Reinstall two subclouds in parallel after abrupt termination and
ensure cleanups only delete their respective subcloud directories.
Closes-bug: 1977557
Signed-off-by: Gabriel Silva Trevisan <email address hidden>
Change-Id: I504dd108d6654294a3bbe9747d6aee0a0cec97be
Reviewed: https:/ /review. opendev. org/c/starlingx /distcloud/ +/844629 /opendev. org/starlingx/ distcloud/ commit/ 388b82609185479 bc7aae8cda70c07 84d5a465a7
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 388b82609185479 bc7aae8cda70c07 84d5a465a7
Author: Gabriel Silva Trevisan <email address hidden>
Date: Fri Jun 3 14:41:24 2022 -0300
Clean up subcloud iso path on remote reinstall
When remote installing a subcloud after an abrupt termination on a
previous attempt (e.g.: uncontrolled swact, service restart), a failure
might occur on gen-bootloader-iso script, due to a remaining ISO
directory still being present for the subcloud.
Clean up ISO path for the subcloud to make sure it is empty before
calling the script.
Test Plan:
PASS:
- Reinstall subcloud with an existing directory in ISO path and make
sure installation removes it before proceeding.
- Reinstall subcloud after previous attempt abruptly terminates due to
service restart.
- Reinstall subcloud after previous attempt abruptly terminates due to
host swact.
- Reinstall two subclouds in parallel after abrupt termination and
ensure cleanups only delete their respective subcloud directories.
Closes-bug: 1977557
Signed-off-by: Gabriel Silva Trevisan <email address hidden> 94a3bbe9747d6ae e0a0cec97be
Change-Id: I504dd108d66542