nfv/nfv/nfv-vim/nfv_vim/nfvi
Igor Soares b732e56b43 Account for new Kubernetes upgrade statuses
Update the Kubernetes upgrade orchestration code to account for two new
statuses: upgrade-starting and upgrade-starting-failed.

The new statuses were introduced to support updating StarlingX
applications during the kube-upgrade-start step.

Test Plan:
PASS: build-pkgs -a && build-image
PASS: sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Check if Kubernetes upgrade started and finished successfully.
      sw-manager kube-upgrade-strategy delete
PASS: sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      sw-manager kube-upgrade-strategy abort
      Check if Kubernetes upgrade was successfully aborted.
      sw-manager kube-upgrade-strategy delete
PASS: Fresh install AIO-SX
      Create a platform-integ-apps updated tarball without the
      metadata.yaml file and copy it over to
      /usr/local/share/applications/helm/.
      sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Confirm that the Kubernetes upgrade failed
      Check if Kubernetes upgrade was successfully aborted.
      sw-manager kube-upgrade-strategy delete
PASS: Fresh install AIO-DX
      Create a platform-integ-apps updated tarball without the
      metadata.yaml file and copy it over to
      /usr/local/share/applications/helm/.
      sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Confirm that the Kubernetes upgrade failed
      sw-manager kube-upgrade-strategy delete
      Copy a working platform-integ-apps tarball to
      /usr/local/share/applications/helm/.
      sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Confirm that the Kubernetes upgrade was resumed and successfully
      finished.
PASS: Fresh install AIO-SX with Kubernetes 1.24.4
      sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Check if Kubernetes upgrade started and finished successfully.

Story: 2010929
Task: 49461

Depends-on: https://review.opendev.org/c/starlingx/config/+/905005

Change-Id: I1a8b86c9ecf8cc21a9cb25ee57d6930944cef261
Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>
2024-02-13 14:57:23 -03:00
..
api Add VIM REST API for querying software update 2020-06-19 13:33:50 +03:00
objects Account for new Kubernetes upgrade statuses 2024-02-13 14:57:23 -03:00
__init__.py Nfv upgrade orchestration for kube-upgrade-storage 2023-12-18 09:08:44 -03:00
_nfvi_block_storage_module.py Disable VIM plugins for Kubernetes deployment 2018-09-24 09:31:18 -04:00
_nfvi_block_storage_plugin.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_compute_module.py Remove kubernetes checks, wrs-headers from Rest API calls, and dead code. 2019-04-09 15:01:16 -04:00
_nfvi_compute_plugin.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_defs.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_fault_mgmt_module.py add NFVFaultMgmtAPI to get alarms from fm in pods 2019-06-05 09:29:57 +08:00
_nfvi_fault_mgmt_plugin.py add NFVFaultMgmtAPI to get alarms from fm in pods 2019-06-05 09:29:57 +08:00
_nfvi_guest_module.py Allow VIM to manage services independently 2018-12-13 08:08:13 -05:00
_nfvi_guest_plugin.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_identity_module.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_identity_plugin.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_image_module.py Disable VIM plugins for Kubernetes deployment 2018-09-24 09:31:18 -04:00
_nfvi_image_plugin.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_infrastructure_module.py Nfv upgrade orchestration for kube-upgrade-storage 2023-12-18 09:08:44 -03:00
_nfvi_infrastructure_plugin.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_module.py NFVI: Default guest_plugin_disabled to True 2023-04-05 08:58:50 -03:00
_nfvi_network_module.py Remove kubernetes checks, wrs-headers from Rest API calls, and dead code. 2019-04-09 15:01:16 -04:00
_nfvi_network_plugin.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_nfvi_plugin.py Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
_nfvi_sw_mgmt_module.py Kubernetes Upgrade Orchestration 2021-03-02 07:45:20 -06:00
_nfvi_sw_mgmt_plugin.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00