From b22b25dfb3cb1f508b5b4507ffb772913c6f0b56 Mon Sep 17 00:00:00 2001 From: Teresa Ho Date: Mon, 25 May 2020 16:35:20 -0400 Subject: [PATCH] Add alarm for device image update Added a system alarm to indicate device image update is in progress. Story: 2006740 Task: 39842 Change-Id: I7aa8d3bba353256b1ecad65e2d5e488f2aeecbae Signed-off-by: Teresa Ho --- fm-api/fm_api/constants.py | 3 +++ fm-doc/fm_doc/events.yaml | 15 +++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/fm-api/fm_api/constants.py b/fm-api/fm_api/constants.py index fa3bc4b9..bb05ab0b 100755 --- a/fm-api/fm_api/constants.py +++ b/fm-api/fm_api/constants.py @@ -285,6 +285,9 @@ FM_ALARM_ID_PATCH_OBS_IN_SYSTEM = ALARM_GROUP_SW_MGMT + ".003" FM_ALARM_ID_HOST_VERSION_MISMATCH = ALARM_GROUP_SW_MGMT + ".004" FM_ALARM_ID_UPGRADE_IN_PROGRESS = ALARM_GROUP_SW_MGMT + ".005" +# Device image alarm id +FM_ALARM_ID_DEVICE_IMAGE_UPDATE_IN_PROGRESS = ALARM_GROUP_SW_MGMT + ".006" + # Security log id FM_LOG_ID_INVALID_PASSWORD = ALARM_GROUP_SECURITY + ".001" FM_LOG_ID_USER_LOCKOUT = ALARM_GROUP_SECURITY + ".002" diff --git a/fm-doc/fm_doc/events.yaml b/fm-doc/fm_doc/events.yaml index ca3c9a9b..0cf01cc1 100755 --- a/fm-doc/fm_doc/events.yaml +++ b/fm-doc/fm_doc/events.yaml @@ -3052,6 +3052,21 @@ Management_Affecting_Severity: warning Degrade_Affecting_Severity: none +900.006: + Type: Alarm + Description: Device image update operation in progress. + Entity_Instance_ID: host=controller + Severity: minor + Proposed_Repair_Action: Complete reboots of affected hosts. + Maintenance_Action: + Inhibit_Alarms: + Alarm_Type: environmental + Probable_Cause: unspecified-reason + Service_Affecting: False + Suppression: False + Management_Affecting_Severity: warning + Degrade_Affecting_Severity: none + 900.101: Type: Alarm Description: Software patch auto-apply inprogress