From 203c223c435816e9a46a77d481e4965838572a18 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Wed, 21 Aug 2019 17:15:34 -0400 Subject: [PATCH] Changes to stx-openstack application automatic re-apply behaviour This commit adds a "pending application reapply" alarm to fm, which will be raised when there has been a configuration change to nodes that affects the helm overrides. Partial-Bug: 1837750 Change-Id: Iec5852a798eee51dacbc5ea5016e4c20d85b668c Signed-off-by: Tyler Smith (cherry picked from commit 15463f2baa5d1c39cddde1466c98ced797409cad) --- fm-api/fm_api/constants.py | 1 + fm-doc/fm_doc/events.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/fm-api/fm_api/constants.py b/fm-api/fm_api/constants.py index b0ee2f35..3ad75afd 100755 --- a/fm-api/fm_api/constants.py +++ b/fm-api/fm_api/constants.py @@ -152,6 +152,7 @@ FM_ALARM_ID_APPLICATION_APPLY_FAILED = ALARM_GROUP_APPLICATION + ".002" FM_ALARM_ID_APPLICATION_REMOVE_FAILED = ALARM_GROUP_APPLICATION + ".003" FM_ALARM_ID_APPLICATION_APPLYING = ALARM_GROUP_APPLICATION + ".004" FM_ALARM_ID_APPLICATION_UPDATING = ALARM_GROUP_APPLICATION + ".005" +FM_ALARM_ID_APPLICATION_REAPPLY_PENDING = ALARM_GROUP_APPLICATION + ".006" # VM log id FM_LOG_ID_VM_ENABLED = ALARM_GROUP_VM + ".101" diff --git a/fm-doc/fm_doc/events.yaml b/fm-doc/fm_doc/events.yaml index 6631fbc1..291152f0 100755 --- a/fm-doc/fm_doc/events.yaml +++ b/fm-doc/fm_doc/events.yaml @@ -2705,6 +2705,21 @@ Management_Affecting_Severity: warning Degrade_Affecting_Severity: none +750.006: + Type: Alarm + Description: "Automatic Application Re-Apply Is Pending" + Entity_Instance_ID: k8s_application= + Severity: warning + Proposed_Repair_Action: "Ensure all hosts are either locked or unlocked. When the system is stable the application will be automatically reapplied." + Maintenance_Action: + Inhibit_Alarms: + Alarm_Type: other + Probable_Cause: unknown + Service_Affecting: False + Suppression: True + Management_Affecting_Severity: none + Degrade_Affecting_Severity: none + #--------------------------------------------------------------------------- # STORAGE #---------------------------------------------------------------------------