From 5b7df8de5aa18cbb7438ce8ae6337ce856e95b91 Mon Sep 17 00:00:00 2001 From: mmachado Date: Wed, 9 Oct 2024 11:40:46 -0300 Subject: [PATCH] Create 900.023 and 900.024 USM alarms These new alarms are the USM version of the legacy patching and upgrading alarms below: 900.001 (Patch in progress) 900.005 (Upgrade in progress): USM Counterpart 900.023 (Software release deploy in progress) 900.003 (Obsolete patch in system): USM Counterpart 900.024 (Unavailable release is present) These new alarms will replace the legacy alarms on the patch-alarm package and display similar behavior. Relates-to: https://review.opendev.org/c/starlingx/update/+/931123 Test Plan: PASS: build-pkgs & build-image PASS: Alarms properly raised when combined with new patch-alarm Story: 2010676 Task: 51150 Change-Id: I9222bbe482bf84fe5dc5d79c31e476cfc078c6c9 Signed-off-by: mmachado --- fm-api/source/fm_api/constants.py | 2 ++ fm-doc/fm_doc/events.yaml | 32 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/fm-api/source/fm_api/constants.py b/fm-api/source/fm_api/constants.py index 65686153..09b4ad6d 100755 --- a/fm-api/source/fm_api/constants.py +++ b/fm-api/source/fm_api/constants.py @@ -324,6 +324,8 @@ FM_ALARM_ID_SYSTEM_CONFIG_UPDATE_ABORTED = ALARM_GROUP_SW_MGMT + ".011" FM_ALARM_ID_USM_DEPLOY_HOST_SUCCESS_RR = ALARM_GROUP_SW_MGMT + ".020" FM_ALARM_ID_USM_DEPLOY_HOST_FAILURE = ALARM_GROUP_SW_MGMT + ".021" FM_ALARM_ID_USM_CLEANUP_DEPLOYMENT_DATA = ALARM_GROUP_SW_MGMT + ".022" +FM_ALARM_ID_USM_RELEASE_DEPLOY_IN_PROGRESS = ALARM_GROUP_SW_MGMT + ".023" +FM_ALARM_ID_USM_RELEASE_OBS_IN_SYSTEM = ALARM_GROUP_SW_MGMT + ".024" # Security log id FM_LOG_ID_INVALID_PASSWORD = ALARM_GROUP_SECURITY + ".001" diff --git a/fm-doc/fm_doc/events.yaml b/fm-doc/fm_doc/events.yaml index abf6467e..4897b730 100755 --- a/fm-doc/fm_doc/events.yaml +++ b/fm-doc/fm_doc/events.yaml @@ -3728,6 +3728,38 @@ Degrade_Affecting_Severity: none Context: starlingx +900.023: + Type: Alarm + Description: Software release deploy operation in progress. + Entity_Instance_ID: host=controller + Severity: minor + Proposed_Repair_Action: Complete release deploy. + Maintenance_Action: + Inhibit_Alarms: + Alarm_Type: environmental + Probable_Cause: unspecified-reason + Service_Affecting: False + Suppression: False + Management_Affecting_Severity: warning + Degrade_Affecting_Severity: none + Context: starlingx + +900.024: + Type: Alarm + Description: A release with state 'unavailable' is present. + Entity_Instance_ID: host=controller + Severity: warning + Proposed_Repair_Action: Delete obsolete releases using "software delete ". + Maintenance_Action: + Inhibit_Alarms: + Alarm_Type: environmental + Probable_Cause: unspecified-reason + Service_Affecting: False + Suppression: False + Management_Affecting_Severity: warning + Degrade_Affecting_Severity: none + Context: starlingx + 900.101: Type: Alarm Description: Software patch auto-apply in progress