nfv/nfv/nfv-vim/nfv_vim/strategy
Vanathi.Selvaraju 12fb7d2f6c sw-manager patch-strategy failed to install due to timeout
As part of this fix, new parameter ignore_alarm_conditional
is added, which has the list of stale alarms that needs to
ignored after 30mins.
Alarm clear wait step checks for stale alarm 750.006 for
30mins. If the alarm is still not cleared, patch-strategy
ignores the alarm.
Now, since the stale alarms are monitored for 30mins,
the overall alarm clear timeout is increased to 2400sec.

In the current case alarm 750.006 is not getting cleared
and also it is not part of the ignore alarm list
so the patch-strategy times out.

Test Plan:
PASSED: Applying a patch - On DX system(VM),
Create and apply patch strategy,
fm alarm-list to have an uncleared alarm(for test purpose
100.103 - Memory threshold alarm was used). After 30mins
alarm was ignored and patch strategy successfully applied.
PASSED: Removing a patch - On DX system(VM),
Create and apply patch strategy,
fm alarm-list to have an uncleared alarm(for test purpose
100.103 - Memory threshold alarm was used). After 30mins
alarm was ignored and patch strategy successfully applied.
PASSED: On DX system(lab), 4 consecutive patch orchestartion
successfully applied. 750.006 - stale alarm tested.
PASSED: On DX system, create and apply strategy,
with alarm exisiting on system(not part of ignore list)
strategy would wait for 40mins before timing out.
PASSED: On DX system, k8s upgrade from v1.21.8 to
v1.22.5 successfully executed.

Closes-Bug: 2059305
Change-Id: I7ebaf5a24fa45a7e45f3af7e5ca588ce3ee06156
Signed-off-by: Vanathi.Selvaraju <vanathi.selvaraju@windriver.com>
2024-04-10 12:19:50 +00:00
..
__init__.py Nfv upgrade orchestration for kube-upgrade-storage 2023-12-18 09:08:44 -03:00
_strategy.py sw-manager patch-strategy failed to install due to timeout 2024-04-10 12:19:50 +00:00
_strategy_defs.py Add retry at nfv orchestration level 2024-03-08 06:05:04 -05:00
_strategy_phases.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_strategy_stages.py Nfv upgrade orchestration for kube-upgrade-storage 2023-12-18 09:08:44 -03:00
_strategy_steps.py sw-manager patch-strategy failed to install due to timeout 2024-04-10 12:19:50 +00:00