StarlingX System Configuration Management
c53d555e2d
After performing a platform backup with stx-openstack application applied, when trying to restore the application it fails due to an unsupported application-apply mode (--mode restore_db). This issue was probably introduced after changing code on sysinv to use general naming for Openstack application [1]. It is probably a remaining work that was left behind on that time. Now when the app name is checked to be valid inside HELM_APP_APPLY_MODES it is never validated since the mode is now referring to HELM_APP_OPENSTACK='openstack'. This change is simply checking if the app being patched has a name that ends with the constant HELM_APP_OPENSTACK. If it is the case, then we are handling an Openstack application and the mode_name to be searched can simply be the constat it self. Otherwise we consider the mode_name as the name argument and the function behaves as it is behaving now. TEST PLAN: PASS: Build & Install on an AIO-SX system PASS: Execute stx-openstack application backup procedure [2] successfully PASS: Execute stx-openstack application restore procedure [2] successfully [1] https://review.opendev.org/c/starlingx/config/+/814670 [2] https://docs.starlingx.io/developer_resources/backup_restore.html Closes-bug: 1961435 Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com> Change-Id: I9423da249ddc74228111ba2b954afe7b93c505d7 |
||
---|---|---|
api-ref/source | ||
config-gate | ||
controllerconfig | ||
devstack | ||
doc | ||
releasenotes | ||
storageconfig | ||
sysinv | ||
tmp/patch-scripts/EXAMPLE_SYSINV/scripts | ||
tools/docker/images | ||
tsconfig | ||
workerconfig | ||
.gitignore | ||
.gitreview | ||
.yamllint | ||
.zuul.yaml | ||
bindep.txt | ||
centos_build_layer.cfg | ||
centos_dev_wheels.inc | ||
centos_helm.inc | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
centos_pkg_dirs_containers | ||
centos_stable_wheels.inc | ||
CONTRIBUTORS.wrs | ||
debian_build_layer.cfg | ||
debian_iso_image.inc | ||
debian_pkg_dirs | ||
LICENSE | ||
README.rst | ||
test-requirements.txt | ||
tox.ini |
stx-config
StarlingX Configuration Management