config/sysinv/cgts-client
Sachin Gopala Krishna 029e3eecf5 Add system command and periodic audit to transition state
system kube-upgrade-* commands can get stuck in upgrading-* state with
no way to continue to upgrade. The 'system kube-upgrade-failed' command
created to manually set state to *-failed.

Created kube-upgrade-failed command to manually set status to *-failed.
Created 30 minute periodic task _audit_kube_upgrade_states to
automatically change the kube_upograde state to *-failed if the specific
state is stuck 'upgrading-*' for more than 1 hour.
Updarted kube_upgrade_controller to support state transition to *-failed
state.

Test Plan:
PASS: Manually edit kube_upgrade state to upgrading-* and execute
'system kube-upgrade-failed' and verify the state transition to *-failed
PASS: Manually edit kube_upgrade state to upgrading-* after kube_upgrade
completion and wait for one hour and verify state transition to *-failed
based on updated_at time stamp
PASS: Verify the functionality of _audit_kube_upgrade_states and
kube-upgrade-failed by building ISO

Closes-Bug: 1999405

Signed-off-by: Sachin Gopala Krishna <saching.krishna@windriver.com>
Change-Id: I499fb2909f11dc2b240dbf2e03ccfd95f1fd2e62
2023-01-23 02:52:09 -05:00
..
centos Python 2 to Python 3 compatibility 2021-04-16 07:09:21 -04:00
cgts-client Add system command and periodic audit to transition state 2023-01-23 02:52:09 -05:00
debian Adjust system command bash dynamic completion 2022-05-04 15:36:08 +00:00
opensuse Python 2 to Python 3 compatibility 2021-04-16 07:09:21 -04:00
.gitignore StarlingX open source release updates 2018-05-31 07:35:52 -07:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:35:52 -07:00