From c5a478beef4daba8a79359f5eff048ea3287c079 Mon Sep 17 00:00:00 2001 From: Eric MacDonald Date: Tue, 24 Mar 2020 08:42:53 -0400 Subject: [PATCH] WIP: Add log and alarm support for vim orchestrated fw-upgrade Please review for content addition correctness. Change-Id: Iadcd161103f5b5a074ac4baaf319f02c5bf871e3 Story: 2006740 Task: 39143 Signed-off-by: Eric MacDonald --- fm-api/fm_api/constants.py | 15 ++++ fm-doc/fm_doc/events.yaml | 144 +++++++++++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+) diff --git a/fm-api/fm_api/constants.py b/fm-api/fm_api/constants.py index 3ad75afd..9093456a 100755 --- a/fm-api/fm_api/constants.py +++ b/fm-api/fm_api/constants.py @@ -327,6 +327,21 @@ 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_FW_UPGRADE_AUTO_APPLY_INPROGRESS = ALARM_GROUP_SW_MGMT + ".301" +FM_ALARM_ID_FW_UPGRADE_AUTO_APPLY_ABORTING = ALARM_GROUP_SW_MGMT + ".302" +FM_ALARM_ID_FW_UPGRADE_AUTO_APPLY_FAILED = ALARM_GROUP_SW_MGMT + ".303" + +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_START = ALARM_GROUP_SW_MGMT + ".311" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_INPROGRESS = ALARM_GROUP_SW_MGMT + ".312" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_REJECTED = ALARM_GROUP_SW_MGMT + ".313" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_CANCELLED = ALARM_GROUP_SW_MGMT + ".314" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_FAILED = ALARM_GROUP_SW_MGMT + ".315" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_COMPLETED = ALARM_GROUP_SW_MGMT + ".316" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_ABORT = ALARM_GROUP_SW_MGMT + ".317" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_ABORTING = ALARM_GROUP_SW_MGMT + ".318" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_ABORT_REJECTED = ALARM_GROUP_SW_MGMT + ".319" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_ABORT_FAILED = ALARM_GROUP_SW_MGMT + ".320" +FM_LOG_ID_FW_UPGRADE_AUTO_APPLY_ABORTED = ALARM_GROUP_SW_MGMT + ".321" FM_ALARM_STATE_SET = 'set' FM_ALARM_STATE_CLEAR = 'clear' diff --git a/fm-doc/fm_doc/events.yaml b/fm-doc/fm_doc/events.yaml index 8bdc8fef..0f7db003 100755 --- a/fm-doc/fm_doc/events.yaml +++ b/fm-doc/fm_doc/events.yaml @@ -3320,4 +3320,148 @@ Alarm_Type: equipment Probable_Cause: unspecified-reason Service_Affecting: False + +900.301: + Type: Alarm + Description: Firmware Upgrade auto-apply inprogress + Entity_Instance_ID: orchestration=fw-upgrade + Severity: major + Proposed_Repair_Action: Wait for firmware upgrade auto-apply 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: True + Management_Affecting_Severity: warning + Degrade_Affecting_Severity: none + +900.302: + Type: Alarm + Description: Firmware Upgrade auto-apply aborting + Entity_Instance_ID: orchestration=fw-upgrade + Severity: major + Proposed_Repair_Action: Wait for firmware upgrade auto-apply abort 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: True + Management_Affecting_Severity: warning + Degrade_Affecting_Severity: none + +900.303: + Type: Alarm + Description: Firmware Upgrade auto-apply failed + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Proposed_Repair_Action: Attempt to apply firmware upgrade manually; if problem persists contact next level of support + Maintenance_Action: + Inhibit_Alarms: + Alarm_Type: equipment + Probable_Cause: underlying-resource-unavailable + Service_Affecting: True + Suppression: True + Management_Affecting_Severity: warning + Degrade_Affecting_Severity: none + +900.311: + Type: Log + Description: Firmware upgrade auto-apply start + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.312: + Type: Log + Description: Firmware upgrade auto-apply inprogress + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.313: + Type: Log + Description: Firmware upgrade auto-apply rejected + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.314: + Type: Log + Description: Firmware upgrade auto-apply cancelled + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.315: + Type: Log + Description: Firmware upgrade auto-apply failed + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.316: + Type: Log + Description: Firmware upgrade auto-apply completed + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.317: + Type: Log + Description: Firmware upgrade auto-apply abort + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.318: + Type: Log + Description: Firmware upgrade auto-apply aborting + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.319: + Type: Log + Description: Firmware upgrade auto-apply abort rejected + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.320: + Type: Log + Description: Firmware upgrade auto-apply abort failed + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.321: + Type: Log + Description: Firmware upgrade auto-apply aborted + Entity_Instance_ID: orchestration=fw-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False ...