cad378bac5
This commit adds the function to delete a deployment. There's some validations in order to be able to delete it some of them is: The deploy host state should be one of: [pending, failed] The deploy state should be one of: [start-done, start-failed, abort-done] All nodes are running from release software. In case of delete a major release the data generated during the deploy should also be deleted which include /sysroot/upgrade/ostree_repo, /sysroot/upgrade/sysroot and the folders [config, fluxcd, helm, nfv/vim, sysinv, puppet, deploy] under /opt/platform/<folders>/<sw_version>. Also delete the /var/lib/postgres/<sw_version>. Note: The function is not called by any endpoint at this point as the New USM REST API is in development to avoid conflicts and rework. Test Plan: PASS: Fold]ers deleted on /opt/platform/<folders>/<sw_version> with start-done and start-failed deploy state. PASS: Cleanup of staging data. PASS: Failed to attempt deletion with a deployed host N+1 release Story: 2010676 Task: 49979 Change-Id: I1789172edc730e6c94fa6bec7f5881c0bdfd7eab Signed-off-by: Luis Eduardo Bonatti <LuizEduardo.Bonatti@windriver.com> |
||
---|---|---|
.. | ||
debian | ||
scripts | ||
service-files | ||
software | ||
.coveragerc | ||
Hacking.rst | ||
LICENSE | ||
README.rst | ||
pylint.rc | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
software
StarlingX Unified Software Delivery and Management