eb7c1f7976
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 1800sec 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 2400sec 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> |
||
---|---|---|
.. | ||
__init__.py | ||
_strategy_defs.py | ||
_strategy_phases.py | ||
_strategy_stages.py | ||
_strategy_steps.py | ||
_strategy.py |