From 4639f7dfff972f2b3e2cd61df11ebaf31afc89ee Mon Sep 17 00:00:00 2001 From: albailey Date: Wed, 18 Nov 2020 13:36:04 -0600 Subject: [PATCH] Add log and alarm support for vim orchestrated kube-upgrade Adds a Kubernetes Upgrade in progress alarm 900.007 Kubernetes auto apply upgrade alarms are 900.4xx series The new alarms are similar in numbering and wording as the firmware update auto apply 900.3xx series alarms and logs. Change-Id: Iab4fb79aebfd999ebc5f17c109371caf566671be Story: 2008137 Task: 41427 Signed-off-by: albailey --- fm-api/fm_api/constants.py | 19 +++++ fm-doc/fm_doc/events.yaml | 159 +++++++++++++++++++++++++++++++++++++ 2 files changed, 178 insertions(+) diff --git a/fm-api/fm_api/constants.py b/fm-api/fm_api/constants.py index bb05ab0b..401baafa 100755 --- a/fm-api/fm_api/constants.py +++ b/fm-api/fm_api/constants.py @@ -288,6 +288,9 @@ 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" +# Kubernetes Upgrade alarm id +FM_ALARM_ID_KUBE_UPGRADE_IN_PROGRESS = ALARM_GROUP_SW_MGMT + ".007" + # Security log id FM_LOG_ID_INVALID_PASSWORD = ALARM_GROUP_SECURITY + ".001" FM_LOG_ID_USER_LOCKOUT = ALARM_GROUP_SECURITY + ".002" @@ -348,6 +351,22 @@ FM_LOG_ID_FW_UPDATE_AUTO_APPLY_ABORT_REJECTED = ALARM_GROUP_SW_MGMT + ".319" FM_LOG_ID_FW_UPDATE_AUTO_APPLY_ABORT_FAILED = ALARM_GROUP_SW_MGMT + ".320" FM_LOG_ID_FW_UPDATE_AUTO_APPLY_ABORTED = ALARM_GROUP_SW_MGMT + ".321" +FM_ALARM_ID_KUBE_UPGRADE_AUTO_APPLY_INPROGRESS = ALARM_GROUP_SW_MGMT + ".401" +FM_ALARM_ID_KUBE_UPGRADE_AUTO_APPLY_ABORTING = ALARM_GROUP_SW_MGMT + ".402" +FM_ALARM_ID_KUBE_UPGRADE_AUTO_APPLY_FAILED = ALARM_GROUP_SW_MGMT + ".403" + +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_START = ALARM_GROUP_SW_MGMT + ".411" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_INPROGRESS = ALARM_GROUP_SW_MGMT + ".412" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_REJECTED = ALARM_GROUP_SW_MGMT + ".413" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_CANCELLED = ALARM_GROUP_SW_MGMT + ".414" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_FAILED = ALARM_GROUP_SW_MGMT + ".415" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_COMPLETED = ALARM_GROUP_SW_MGMT + ".416" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_ABORT = ALARM_GROUP_SW_MGMT + ".417" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_ABORTING = ALARM_GROUP_SW_MGMT + ".418" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_ABORT_REJECTED = ALARM_GROUP_SW_MGMT + ".419" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_ABORT_FAILED = ALARM_GROUP_SW_MGMT + ".420" +FM_LOG_ID_KUBE_UPGRADE_AUTO_APPLY_ABORTED = ALARM_GROUP_SW_MGMT + ".421" + FM_ALARM_STATE_SET = 'set' FM_ALARM_STATE_CLEAR = 'clear' FM_ALARM_STATE_MSG = 'msg' diff --git a/fm-doc/fm_doc/events.yaml b/fm-doc/fm_doc/events.yaml index f1e6c62f..7bca5174 100755 --- a/fm-doc/fm_doc/events.yaml +++ b/fm-doc/fm_doc/events.yaml @@ -3071,6 +3071,21 @@ Management_Affecting_Severity: warning Degrade_Affecting_Severity: none +900.007: + Type: Alarm + Description: Kubernetes upgrade in progress. + Entity_Instance_ID: host=controller + Severity: minor + Proposed_Repair_Action: No action required. + Maintenance_Action: + Inhibit_Alarms: + Alarm_Type: operational-violation + 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 @@ -3502,4 +3517,148 @@ Alarm_Type: equipment Probable_Cause: unspecified-reason Service_Affecting: False + +900.401: + Type: Alarm + Description: Kubernetes upgrade auto-apply inprogress + Entity_Instance_ID: orchestration=kube-upgrade + Severity: major + Proposed_Repair_Action: Wait for kubernetes 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.402: + Type: Alarm + Description: Kubernetes upgrade auto-apply aborting + Entity_Instance_ID: orchestration=kube-upgrade + Severity: major + Proposed_Repair_Action: Wait for kubernetes 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.403: + Type: Alarm + Description: Kubernetes upgrade auto-apply failed + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Proposed_Repair_Action: Attempt to apply kubernetes 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.411: + Type: Log + Description: Kubernetes upgrade auto-apply start + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.412: + Type: Log + Description: Kubernetes upgrade auto-apply inprogress + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.413: + Type: Log + Description: Kubernetes upgrade auto-apply rejected + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.414: + Type: Log + Description: Kubernetes upgrade auto-apply cancelled + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.415: + Type: Log + Description: Kubernetes upgrade auto-apply failed + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.416: + Type: Log + Description: Kubernetes upgrade auto-apply completed + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.417: + Type: Log + Description: Kubernetes upgrade auto-apply abort + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.418: + Type: Log + Description: Kubernetes upgrade auto-apply aborting + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.419: + Type: Log + Description: Kubernetes upgrade auto-apply abort rejected + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.420: + Type: Log + Description: Kubernetes upgrade auto-apply abort failed + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False + +900.421: + Type: Log + Description: Kubernetes upgrade auto-apply aborted + Entity_Instance_ID: orchestration=kube-upgrade + Severity: critical + Alarm_Type: equipment + Probable_Cause: unspecified-reason + Service_Affecting: False ...