StarlingX System Configuration Management
Go to file
Joshua Reed bb68f0eeb5 Enhance 65-k8s-app-upgrade.sh script robustness.
Before this change, during an upgrade, this script will
run and upgrade/apply  any applications present in the
app folder to the appropriate version.  However, the script
itself will only try once with each app.  For whatever
reason, if the app fails to apply, upload, etc.. then
this script will exit with a non-zero return code and
the upgrade activate step will fail.

The changes in this script are meant to make a retry
attempt in the cases of upload, apply or removal
failures. Or, in the case, if the script is interrupted,
and run for a second, third (etc) time and finds an
application in a failed state, then it would also
try to retry the appropriate command.

Test Plan:
PASS - AIO-SX Full Install.
PASS - Start Script With App already in apply-failed state.
  1. Copy 65-k8s-app-upgrade.sh into the home folder and
     modify permissions.
  2. Re-apply the platform-integ-app with
     system application-apply platform-integ-app.
  3. Before the app can apply, restart the sysinv-conductor -
     sudo sm-restart service sysinv-conductor.  This will
     force the app into an apply-failed state.
  4. Run: 65-k8s-app-upgrade.sh 21.12 22.12 activate.
  5. Observe in logs that the script detects that the app
     is in a failed state, retries to apply it, and detects
     that the app finished applying and is in an applied
     state.  Use: tail -f /var/log/platform.log.

PASS - App ends up in apply-failed state while script is already
     running. The script will wait on an app in applying state, if
     it detects that the result is apply-failed then it should
     retry the application-apply command. Verify that this behavior
     happens correctly.

Closes-Bug: 2035402
Change-Id: I5dd40127f44a0074be0303469f0c2021da128c36
Signed-off-by: Joshua Reed <joshua.reed@windriver.com>
2023-09-14 07:09:47 -07:00
api-ref/source Add runtime reconfiguration of kubelet 2022-06-09 17:59:35 -04:00
config-gate Update debian package versions to use git commits 2023-02-10 20:11:06 +00:00
controllerconfig Enhance 65-k8s-app-upgrade.sh script robustness. 2023-09-14 07:09:47 -07:00
devstack Deprecate old policy engine and restrict access 2022-08-10 11:18:38 -03:00
doc Fix Zuul failures due to new Sphinx release 2023-08-21 13:06:19 -03:00
releasenotes Remove host hardware sysinv profile 2021-10-18 18:01:40 -03:00
storageconfig Update debian package versions to use git commits 2023-02-10 20:11:06 +00:00
sysinv Protection from invalid label values. 2023-09-08 08:22:55 -07:00
tmp/patch-scripts/EXAMPLE_SYSINV/scripts StarlingX open source release updates 2018-05-31 07:35:52 -07:00
tools/docker/images Enable kubernetes SCTPSupport feature 2019-09-03 19:23:05 +00:00
tsconfig Replay of bootstrap playbook fails providing initial system config 2023-03-29 22:45:00 +00:00
workerconfig Update debian package versions to use git commits 2023-02-10 20:11:06 +00:00
.gitignore Minor zuul and tox file cleanup after manifest re-org 2019-09-06 15:40:37 -05:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:42 +00:00
.yamllint clear yamllint errors under stx-config 2018-09-12 21:11:57 +08:00
.zuul.yaml Update controllerconfig tox environment for debian 2023-05-31 15:25:25 +00:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:35:52 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:35:52 -07:00
README.rst starlingx/config README improvement 2023-07-19 12:18:04 -03:00
bindep.txt py3: Add py39 gate for sysinv 2021-08-27 08:39:06 -04:00
centos_build_layer.cfg Build layering, add layer build config file 2019-10-15 12:29:05 +08:00
centos_dev_wheels.inc Config file changes to add 'tsconfig' after relocation from 'update' 2019-09-05 11:51:05 -04:00
centos_iso_image.inc Merge sysinv_fpga_agent with sysinv_agent 2022-10-03 14:12:28 -04:00
centos_pkg_dirs Merge sysinv_fpga_agent with sysinv_agent 2022-10-03 14:12:28 -04:00
centos_pkg_dirs_containers Config file changes for packages relocated to repo 'openstack-armada-app' 2019-09-05 10:42:00 -04:00
centos_stable_wheels.inc Config file changes to add 'tsconfig' after relocation from 'update' 2019-09-05 11:51:05 -04:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:50:08 -04:00
debian_iso_image.inc Debian: config: update debian_iso_image.inc 2022-11-08 15:48:04 +08:00
debian_pkg_dirs Merge sysinv_fpga_agent with sysinv_agent 2022-10-03 14:12:28 -04:00
debian_stable_wheels.inc debian: Add sysinv wheel to the build 2022-11-21 13:33:24 +00:00
test-requirements.txt Calling an additional shell lint command from zuul 2021-06-03 17:35:50 -05:00
tox.ini Update tox.ini to work with tox 4 2022-12-26 18:55:39 +00:00

README.rst

config

The starlingx/config repository handles the StarlingX configuration management services.

Its key component is the System Inventory Service (Sysinv), which provides the system command-line interface (CLI)1.

This repository is not intended to be developed standalone, but rather as part of the StarlingX Source System, which is defined by the StarlingX manifest2.

References


  1. https://docs.starlingx.io/cli_ref/system.html↩︎

  2. https://opendev.org/starlingx/manifest.git↩︎