From c50b3b8760033283603e8ca3d67dd1c49e931d2d Mon Sep 17 00:00:00 2001
From: Joao Soubihe <JoaoPaulo.Soubihe@windriver.com>
Date: Thu, 15 Apr 2021 10:38:56 -0400
Subject: [PATCH] Adding alarm indicating k8s rootCA update start

Update in events.yaml adding alarm 900.008 indicating that procedure
for k8s root CA update started in the system.

Task: 2008675
Story: 42411
Signed-off-by: Joao Soubihe <JoaoPaulo.Soubihe@windriver.com>
Change-Id: I0df40423735e1c76acc21206b96c9e8b7924121f
---
 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 02e94a9c..8d345867 100755
--- a/fm-api/fm_api/constants.py
+++ b/fm-api/fm_api/constants.py
@@ -294,6 +294,9 @@ 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"
 
+# Kubernetes RootCA Update alarm id
+FM_ALARM_ID_KUBE_ROOTCA_UPDATE_IN_PROGRESS = ALARM_GROUP_SW_MGMT + ".008"
+
 # 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 9431089b..ba3996f4 100755
--- a/fm-doc/fm_doc/events.yaml
+++ b/fm-doc/fm_doc/events.yaml
@@ -3124,6 +3124,21 @@
     Management_Affecting_Severity: warning
     Degrade_Affecting_Severity: none
 
+900.008:
+    Type: Alarm
+    Description: Kubernetes rootca update in progress
+    Entity_Instance_ID: host=controller
+    Severity: minor
+    Proposed_Repair_Action: Wait for kubernetes rootca procedure to complete
+    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