nfv/nfv/nfv-vim/nfv_vim
Igor Soares 3e06391c30 Add new application update steps for k8s upgrades
Add two new steps to the orchestrated Kubernetes upgrade:
  * 'pre-application-update': update StarlingX applications before the
    new Kubernetes version is deployed.
  * 'post-application-update': update Starlingx applications after the
    new Kuberneter version is deployed.

This was implemented according to the changes introduced to sysinv by
the following commit:
https://review.opendev.org/c/starlingx/config/+/909172

Unit tests have also been updated to account for the new steps.

Test Plan:
PASS: build-pkgs -a && build-image
AIO-SX Test Cases:
PASS: Run an orchestrated Kubernetes upgrade with no apps to be updated.
PASS: Run a single-version orchestrated Kubernetes upgrade with apps to
      be updated during the pre-application-update and
      post-application-update steps.
PASS: Run a multi-version orchestrated Kubernetes upgrade with apps to
      be updated during the pre-application-update and
      post-application-update steps.
PASS: Run an orchestrated Kubernetes upgrade that fails during the
      pre-application-update step due to a missing metadata.yaml file.
      Confirm that the upgrade was successfully aborted.
PASS: Run an orchestrated Kubernetes upgrade that fails during the
      post-application-update step due to a missing metadata.yaml file.
      Confirm that the upgrade was successfully aborted.
AIO-DX Test Cases:
PASS: Run an orchestrated Kubernetes upgrade with no apps to be updated.
PASS: Run a single-version orchestrated Kubernetes upgrade with apps to
      be updated during the pre-application-update and
      post-application-update steps.
PASS: Run an orchestrated Kubernetes upgrade that fails during the
      pre-application-update step due to a missing metadata.yaml file.
      Fix the application tarball and resume the upgrade.
      Confirm that the upgrade resumes from the same step.
      Confirm that the upgrade finishes successfully.
PASS: Run an orchestrated Kubernetes upgrade that fails during the
      post-application-update step due to a missing metadata.yaml file.
      Fix the application tarball and resume the upgrade.
      Confirm that the upgrade resumes from the same step.
      Confirm that the upgrade finishes successfully.

Story: 2010929
Task: 49791
Depends-On: https://review.opendev.org/c/starlingx/config/+/909172

Change-Id: I5217db1cb744320979afcd161cb436bf089ccc9d
Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>
2024-04-19 16:15:59 -03:00
..
alarm Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
api sw-deploy-strategy backend overhaul 2024-04-15 10:42:14 -04:00
audits py3: nfv wrap dict.keys() in list() 2021-07-26 13:13:11 -04:00
database Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
directors sw-deploy-strategy backend overhaul 2024-04-15 10:42:14 -04:00
dor py3: nfv use real division operator 2021-07-26 13:12:00 -04:00
event_log Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
events sw-deploy-strategy backend overhaul 2024-04-15 10:42:14 -04:00
host_fsm Remove HostTask actions of guest related services 2023-01-24 09:51:58 -03:00
instance_fsm py3: nfv use real division operator 2021-07-26 13:12:00 -04:00
network_rebalance py3: nfv update range compatibility 2021-07-26 13:11:52 -04:00
nfvi Add new application update steps for k8s upgrades 2024-04-19 16:15:59 -03:00
objects sw-deploy-strategy backend overhaul 2024-04-15 10:42:14 -04:00
rpc sw-deploy-strategy backend overhaul 2024-04-15 10:42:14 -04:00
strategy Add new application update steps for k8s upgrades 2024-04-19 16:15:59 -03:00
tables py3: nfv wrap dict.keys() in list() 2021-07-26 13:13:11 -04:00
webserver py3: Fix http server request handler wfile write parameter 2021-07-26 13:12:58 -04:00
__init__.py StarlingX open source release updates 2018-05-31 07:36:51 -07:00
config.ini small cleanup required by OBS badness check - exec rights on non executable not allowed 2019-09-17 08:54:22 +02:00
debug.ini sw-deploy-strategy backend overhaul 2024-04-15 10:42:14 -04:00
vim.py py3: nfv use real division operator 2021-07-26 13:12:00 -04:00
vim_api.py Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
vim_manage.py Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
vim_webserver.py Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00