Add alarm when removal of node taint fails.

Currently there is no alarm when VIM orchestrator
fails to remove the node taint.
Adding this alarm will help notify the user that
node is tainted.

Test Plan:
PASSED: On a DX system, lock in-acitve controller,
tweak the code to fail removal of taint and check
if alarm 900.701 is raised upon node unlock.
PASSED: On a DX system, make sure alarm 900.701 is
present on the system.Lock the node in which the
alarm is active and check if alarm is cleared.

Closes-Bug: 2048908

Change-Id: I929ddb45b75f1e4b097b84919f703d458d8fa39e
Signed-off-by: Vanathi.Selvaraju <vanathi.selvaraju@windriver.com>
This commit is contained in:
Vanathi.Selvaraju 2024-01-04 13:30:37 -05:00
parent f8716aa344
commit 6f78a1225c
2 changed files with 20 additions and 0 deletions

View File

@ -428,6 +428,8 @@ FM_LOG_ID_SYSTEM_CONFIG_UPDATE_AUTO_APPLY_ABORT_REJECTED = ALARM_GROUP_SW_MGMT +
FM_LOG_ID_SYSTEM_CONFIG_UPDATE_AUTO_APPLY_ABORT_FAILED = ALARM_GROUP_SW_MGMT + ".620"
FM_LOG_ID_SYSTEM_CONFIG_UPDATE_AUTO_APPLY_ABORTED = ALARM_GROUP_SW_MGMT + ".621"
FM_ALARM_ID_NODE_TAINTED = ALARM_GROUP_SW_MGMT + ".701"
FM_ALARM_STATE_SET = 'set'
FM_ALARM_STATE_CLEAR = 'clear'
FM_ALARM_STATE_MSG = 'msg'

View File

@ -544,6 +544,7 @@
Degrade_Affecting_Severity: critical
Context: starlingx
#---------------------------------------------------------------------------
# MAINTENANCE
#---------------------------------------------------------------------------
@ -4543,4 +4544,21 @@
Probable_Cause: unspecified-reason
Service_Affecting: False
Context: starlingx
900.701:
Type: Alarm
Description: Node <hostname> tainted.
Entity_Instance_ID: host=<hostname>
Severity: minor
Proposed_Repair_Action: "Execute 'kubectl taint nodes <hostname> services=disabled:NoExecute-'
On removing the taint clear the alarm using command 'fm alarm-delete <alarm-uuid>'"
Maintenance_Action: none
Inhibit_Alarms:
Alarm_Type: operational-violation
Probable_Cause: out-of-service
Service_Affecting: True
Suppression: False
Management_Affecting_Severity: warning
Degrade_Affecting_Severity: none
Context: starlingx
...