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 <junfeng.li@windriver.com>
This commit is contained in:
junfeng-li 2024-03-19 13:08:13 +00:00
parent df3fffe426
commit 3dd9855071
2 changed files with 20 additions and 1 deletions

View File

@ -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,

View File

@ -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