From 80d6819635e1d662764f25232546f947f9e84a45 Mon Sep 17 00:00:00 2001 From: Tee Ngo Date: Wed, 31 Aug 2022 07:53:02 -0400 Subject: [PATCH] Add alarm id, definition for subcloud backup This commit adds a new alarm id and definition for subcloud backup. The alarm will be raised and cleared by dcmanager upon subcloud backup failure and successful retry respectively. Test Plan: - Verify successful tox test and package build Story: 2010116 Task: 46162 Change-Id: I9a34a827e484bb691c8ce0da63e1a7d26735c289 Signed-off-by: Tee Ngo --- fm-api/source/fm_api/constants.py | 1 + fm-doc/fm_doc/events.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/fm-api/source/fm_api/constants.py b/fm-api/source/fm_api/constants.py index 8cd5a536..331794ca 100755 --- a/fm-api/source/fm_api/constants.py +++ b/fm-api/source/fm_api/constants.py @@ -125,6 +125,7 @@ FM_LOG_ID_HYPERVISOR_STATE_CHANGE = ALARM_GROUP_HYPERVISOR + ".001" # Distributed Cloud alarm id FM_ALARM_ID_DC_SUBCLOUD_OFFLINE = ALARM_GROUP_DISTRIBUTED_CLOUD + ".001" FM_ALARM_ID_DC_SUBCLOUD_RESOURCE_OUT_OF_SYNC = ALARM_GROUP_DISTRIBUTED_CLOUD + ".002" +FM_ALARM_ID_DC_SUBCLOUD_BACKUP_FAILED = ALARM_GROUP_DISTRIBUTED_CLOUD + ".003" # HA alarm id FM_ALARM_ID_HA_SERVICE_GROUP_STATE = ALARM_GROUP_HA + ".001" diff --git a/fm-doc/fm_doc/events.yaml b/fm-doc/fm_doc/events.yaml index 02204cb5..d15a423f 100755 --- a/fm-doc/fm_doc/events.yaml +++ b/fm-doc/fm_doc/events.yaml @@ -982,6 +982,20 @@ Management_Affecting_Severity: none Degrade_Affecting_Severity: none +280.003: + Type: Alarm + Description: Subcloud Backup Failure + Entity_Instance_ID: subcloud= + Severity: minor + Proposed_Repair_Action: Retry subcloud backup after checking backup input file. If problem persists contact next level of support. + Maintenance_Action: + Inhibit_Alarms: + Alarm_Type: processing-error + Probable_Cause: unknown + Service_Affecting: False + Suppression: False + Management_Affecting_Severity: none + Degrade_Affecting_Severity: none #--------------------------------------------------------------------------- # NETWORK