46a49a09fa
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: Folders 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> |
||
---|---|---|
api-ref/source | ||
apt-ostree/debian | ||
cgcs-patch | ||
devstack | ||
doc | ||
enable-dev-patch | ||
extras/scripts | ||
patch-alarm | ||
patch-boot-args | ||
patch-scripts | ||
releasenotes | ||
software | ||
software-client | ||
sw-patch | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
CONTRIBUTORS.wrs | ||
LICENSE | ||
README.rst | ||
bindep.txt | ||
centos_build_layer.cfg | ||
centos_dev_wheels.inc | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
centos_stable_wheels.inc | ||
debian_build_layer.cfg | ||
debian_iso_image.inc | ||
debian_pkg_dirs | ||
debian_stable_wheels.inc | ||
pylint.rc | ||
requirements.txt | ||
test-requirements.txt | ||
tox.ini |
README.rst
stx-update
StarlingX Software Management