config/sysinv/sysinv/sysinv/etc/sysinv
David Bastos ce4b7c1eb3 Fix misleading app status after failed override update
Application status was misleading after a failed override update with
illegal values. Application should be in failed (apply-failed) state,
and alarm should be raised accordingly. Instead, we're led to believe
that the update was completed successfully.

The solution consists of adding a default delay to the system of 60
seconds before changing the helmrelease status. This way we ensure
that reconciliation has already been called.

This also ensures that any application can override this default
value via metadata. Just create a variable with the same name with
the amount of time that is needed.

Test Plan:
PASS: Build-pkgs && build-image
PASS: Upload, apply, delete and update nginx-ingress-controller
PASS: Upload, apply, delete and update platform-integ-apps
PASS: Upload, apply, delete and update metrics-server
PASS: Update user overrides (system user-override-update) with illegal
      values. When reapplying the app it should fail.
PASS: Update user overrides (system user-override-update) with correct
      values. When reapplying the app it should complete successfully.
PASS: If the app has the fluxcd_hr_reconcile_check_delay key in its
      metadata, the system's default delay value must be overwritten.

Closes-Bug: 2053276

Change-Id: I5e75745009be235e2646a79764cb4ff619a93d59
Signed-off-by: David Bastos <david.barbosabastos@windriver.com>
2024-02-16 17:51:14 +00:00
..
rootwrap.d StarlingX open source release updates 2018-05-31 07:35:52 -07:00
cgcssys_init StarlingX open source release updates 2018-05-31 07:35:52 -07:00
crushmap-aio-sx.txt Update straw algorithm 2021-11-14 18:14:24 -03:00
crushmap-controller-model.txt Update straw algorithm 2021-11-14 18:14:24 -03:00
crushmap-storage-model.txt Update straw algorithm 2021-11-14 18:14:24 -03:00
delete_load.sh Merge "Relocate pxeboot-update script to writable dir" 2023-06-16 19:27:02 +00:00
motd-system StarlingX open source release updates 2018-05-31 07:35:52 -07:00
policy.yaml Deprecate old policy engine and restrict access 2022-08-10 11:18:38 -03:00
rootwrap.conf StarlingX open source release updates 2018-05-31 07:35:52 -07:00
sysinv.conf Fix misleading app status after failed override update 2024-02-16 17:51:14 +00:00
sysinv.conf.sample Deprecate old policy engine and restrict access 2022-08-10 11:18:38 -03:00
sysinv_goenabled_check.sh Fixing linters errors E010, E011, E020, E041,E043, E003, E001,E042 2018-09-11 21:47:40 +08:00