From 3dd9855071eacdb2275bfac8d3318c7d75c94ced Mon Sep 17 00:00:00 2001 From: junfeng-li Date: Tue, 19 Mar 2024 13:08:13 +0000 Subject: [PATCH] Create deploy state out of sync alarm This new alarm is raised when the controllers deploy state is out of sync during the deployment. Test Plan: PASS: alarm raised when the deploy state is out of sync PASS: alarm cleared when the deploy state is in sync Task: 49732 Story: 2010676 Change-Id: Ibdcc54f02c9e156b2b78313b527cd273a62425f1 Signed-off-by: junfeng-li --- fm-api/source/fm_api/constants.py | 5 ++++- fm-doc/fm_doc/events.yaml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/fm-api/source/fm_api/constants.py b/fm-api/source/fm_api/constants.py index 54370124..115c84c9 100755 --- a/fm-api/source/fm_api/constants.py +++ b/fm-api/source/fm_api/constants.py @@ -365,6 +365,8 @@ FM_LOG_ID_SW_UPGRADE_AUTO_APPLY_ABORT_REJECTED = ALARM_GROUP_SW_MGMT + ".219" FM_LOG_ID_SW_UPGRADE_AUTO_APPLY_ABORT_FAILED = ALARM_GROUP_SW_MGMT + ".220" FM_LOG_ID_SW_UPGRADE_AUTO_APPLY_ABORTED = ALARM_GROUP_SW_MGMT + ".221" +FM_ALARM_ID_SW_UPGRADE_DEPLOY_STATE_OUT_OF_SYNC = ALARM_GROUP_SW_MGMT + ".231" + FM_ALARM_ID_FW_UPDATE_AUTO_APPLY_INPROGRESS = ALARM_GROUP_SW_MGMT + ".301" FM_ALARM_ID_FW_UPDATE_AUTO_APPLY_ABORTING = ALARM_GROUP_SW_MGMT + ".302" FM_ALARM_ID_FW_UPDATE_AUTO_APPLY_FAILED = ALARM_GROUP_SW_MGMT + ".303" @@ -449,6 +451,7 @@ FM_ALARM_TYPE_7 = 'operational-violation' FM_ALARM_TYPE_8 = 'physical-violation' FM_ALARM_TYPE_9 = 'security-service-or-mechanism-violation' FM_ALARM_TYPE_10 = 'time-domain-violation' +FM_ALARM_TYPE_11 = 'deployment in progress' FM_ALARM_SEVERITY_CLEAR = 'clear' FM_ALARM_SEVERITY_WARNING = 'warning' @@ -548,7 +551,7 @@ ALARM_STATE = [FM_ALARM_STATE_SET, FM_ALARM_STATE_CLEAR, ALARM_TYPE = [FM_ALARM_TYPE_0, FM_ALARM_TYPE_1, FM_ALARM_TYPE_2, FM_ALARM_TYPE_3, FM_ALARM_TYPE_4, FM_ALARM_TYPE_5, FM_ALARM_TYPE_6, FM_ALARM_TYPE_7, FM_ALARM_TYPE_8, - FM_ALARM_TYPE_9, FM_ALARM_TYPE_10] + FM_ALARM_TYPE_9, FM_ALARM_TYPE_10, FM_ALARM_TYPE_11] ALARM_SEVERITY = [FM_ALARM_SEVERITY_CLEAR, FM_ALARM_SEVERITY_WARNING, FM_ALARM_SEVERITY_MINOR, FM_ALARM_SEVERITY_MAJOR, diff --git a/fm-doc/fm_doc/events.yaml b/fm-doc/fm_doc/events.yaml index 57b5d513..642db15a 100755 --- a/fm-doc/fm_doc/events.yaml +++ b/fm-doc/fm_doc/events.yaml @@ -3944,6 +3944,22 @@ Service_Affecting: False Context: starlingx +900.231: + Type: Alarm + Description: Software deploy state out of sync + Entity_Instance_ID: orchestration=sw-upgrade + Severity: major + Proposed_Repair_Action: Wait for the deployment on the active controller to complete. If problem persists contact next level of support + Maintenance_Action: + Inhibit_Alarms: + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: True + Suppression: False + Management_Affecting_Severity: warning + Degrade_Affecting_Severity: none + Context: starlingx + 900.301: Type: Alarm Description: Firmware Update auto-apply in progress