StarlingX Installation/Update/Patching/Backup/Restore
Go to file
Luis Eduardo Bonatti cad378bac5 Delete deployment
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>
2024-04-26 17:08:02 -03:00
api-ref/source Switch to newer openstackdocstheme and reno versions 2020-06-04 14:40:40 +02:00
apt-ostree/debian Update snapshot to 7923a8 2023-12-07 13:41:11 -05:00
cgcs-patch Fix constraints file in tox.ini 2024-03-01 19:18:51 -03:00
devstack Subdirectories 'tsconfig ' relocated to repo 'stx-config' 2019-09-05 13:04:59 -04:00
doc Fix: openstack-tox-docs job is broken with Sphinx >= 5.0.0 2023-08-31 17:01:12 +00:00
enable-dev-patch Update debian package versions to use git commits 2023-02-09 17:26:41 +00:00
extras/scripts Add setup_patch_repo.sh for patch-iso 2020-02-12 14:38:01 -05:00
patch-alarm Update patch-alarm tox for python3 2023-04-12 18:28:07 +00:00
patch-boot-args StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patch-scripts Support dockerd in-service patching with EXAMPLE_DOCKER script 2022-11-27 18:51:12 +00:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:40:40 +02:00
software Delete deployment 2024-04-26 17:08:02 -03:00
software-client USM deploy state 2024-04-17 16:40:07 +00:00
sw-patch sw-patch-agent waits the new mgmt IP config 2024-04-16 13:01:05 -03:00
.gitignore Adding unit tests to tsconfig and clean it up a bit 2019-03-04 19:16:05 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:36 +00:00
.zuul.yaml Raise deploy state out of sync alarm 2024-04-15 19:14:23 +00:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:37:12 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:37:12 -07:00
README.rst StarlingX open source release updates 2018-05-31 07:37:12 -07:00
bindep.txt Software deploy host implementation 2023-05-08 17:11:53 +00:00
centos_build_layer.cfg Build layering, add layer build config file 2019-10-15 12:56:44 +08:00
centos_dev_wheels.inc Config file changes to remove 'tsconfig ' after relocation to 'stx-config' 2019-09-04 15:36:52 -04:00
centos_iso_image.inc Config file changes to remove 'tsconfig ' after relocation to 'stx-config' 2019-09-04 15:36:52 -04:00
centos_pkg_dirs Support dockerd in-service patching with EXAMPLE_DOCKER script 2022-11-27 18:51:12 +00:00
centos_stable_wheels.inc Config file changes to remove 'tsconfig ' after relocation to 'stx-config' 2019-09-04 15:36:52 -04:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:12:40 -04:00
debian_iso_image.inc Merge "Add apt-ostree Debian package" 2023-10-10 15:36:45 +00:00
debian_pkg_dirs Merge "Add apt-ostree Debian package" 2023-10-10 15:36:45 +00:00
debian_stable_wheels.inc Adding software-client to docker_stable_wheel.inc 2023-11-27 12:04:06 -03:00
pylint.rc Enable Unused Variable 2019-07-19 10:28:00 -04:00
requirements.txt Add Zuul test foundation 2018-07-25 08:48:07 -05:00
test-requirements.txt Adding rpm-python to bindep to fix pylint 2021-12-15 09:13:13 -06:00
tox.ini Fix zuul failure 2024-01-10 19:26:20 +00:00

README.rst

stx-update

StarlingX Software Management