Raise alarms for image-conversion

1. Raise alarm if image-conversion is not added on both controllers
2. Raise alarm if the size of the filesystem is not the same on both controllers

Change-Id: I803b313cfee372fd5d025efbba74c1ae34b9e248
Partial-bug: 1819688
Signed-off-by: Elena Taivan <elena.taivan@windriver.com>
This commit is contained in:
Elena Taivan 2020-04-29 11:30:25 +00:00
parent 1c4cd00367
commit bef81593f0
2 changed files with 21 additions and 0 deletions

View File

@ -36,6 +36,7 @@ FM_ENTITY_TYPE_ML2DRIVER = 'ml2driver'
FM_ENTITY_TYPE_PV = 'pv'
FM_ENTITY_TYPE_BGP_PEER = "bgp-peer"
FM_ENTITY_TYPE_STORAGE_BACKEND = 'storage_backend'
FM_ENTITY_TYPE_IMAGE_CONVERSION = 'fs_name'
FM_ENTITY_TYPE_SUBCLOUD = 'subcloud'
FM_ENTITY_TYPE_APPLICATION = 'k8s_application'
@ -63,6 +64,7 @@ ALARM_GROUP_SW_MGMT = "900"
# General Alarm id
FM_ALARM_ID_FS_USAGE = ALARM_GROUP_GENERAL + ".104"
FM_ALARM_ID_IMAGE_CONVERSION = ALARM_GROUP_GENERAL + ".105"
# Maintenance Log id
FM_LOG_ID_HOST_DISCOVERED = ALARM_GROUP_MAINTENANCE + ".020"

View File

@ -178,6 +178,25 @@
Management_Affecting_Severity: critical
Degrade_Affecting_Severity: critical
100.105:
Type: Alarm
Description: |-
Filesystem Alarm Condition:
<fs_name> filesystem is not added on both controllers and/or does not have the same size: <hostname>.
Entity_Instance_ID: fs_name=<image-conversion>
Severity: critical
Proposed_Repair_Action: "Add image-conversion filesystem on both controllers.
Consult the System Administration Manual for more details.
If problem persists, contact next level of support."
Maintenance_Action: degrade
Inhibit_Alarms:
Alarm_Type: equipment
Probable_Cause: configuration-or-customization-error
Service_Affecting: True
Suppression: False
Management_Affecting_Severity: major
Degrade_Affecting_Severity: none
#--------
# 100.105: Retired (with R2 release): previously monitored /etc/nova/instances
# NFS mount from controller to computes