Fix Context value for some alarms
Some documentation generating scripts were introduced in order to avoid
manual intervention every time an alarm/log is changed/added/removed.
Those scripts required a way to know where the alarm/log belongs to.
For that requirement, the field Context was introduced in previous
commits. During that development, it was taken the current
classification at that time in the docs as source of truth, but it was
outdated.
This commits modifies the values that were detected as wrong/outdated.
The scripts also require the value 'none' in the Context field for when
an alarm/log should not be included in the documentation but still be
defined in the events.yaml file. So the Context value is updated for
that case too.
Context incorrectly tagged as openstack and changed to starlingx:
* 900.006
Context incorrectly tagged as starlingx and changed to openstack:
* 100.105
* 100.112
* 100.113
* 300.001
* 300.002
Closes-bug: 2012981
Test plan
PASS: Since the Context field does not have impact in functionality,
build and install fm-doc package successfully.
Check the file in the filesystem contains this change.
PASS: Trigger random alarms and check FM functionality.
Signed-off-by: Agustin Carranza <agustin.carranza@windriver.com>
Change-Id: I16f858bbb712349f08b2ceca33152e365b0ed733
(cherry picked from commit dad8caed91
)
This commit is contained in:
parent
19b50acb1b
commit
a3b5c0facf
|
@ -404,6 +404,7 @@ FM_ALARM_STATE_LOG = 'log'
|
||||||
|
|
||||||
FM_ALARM_CONTEXT_STARLINGX = 'starlingx'
|
FM_ALARM_CONTEXT_STARLINGX = 'starlingx'
|
||||||
FM_ALARM_CONTEXT_OPENSTACK = 'openstack'
|
FM_ALARM_CONTEXT_OPENSTACK = 'openstack'
|
||||||
|
FM_ALARM_CONTEXT_NONE = 'none'
|
||||||
|
|
||||||
FM_ALARM_TYPE_0 = 'other'
|
FM_ALARM_TYPE_0 = 'other'
|
||||||
FM_ALARM_TYPE_1 = 'communication'
|
FM_ALARM_TYPE_1 = 'communication'
|
||||||
|
@ -524,7 +525,8 @@ ALARM_SEVERITY = [FM_ALARM_SEVERITY_CLEAR, FM_ALARM_SEVERITY_WARNING,
|
||||||
ALARM_STATUS = [FM_ALARM_OK_STATUS, FM_ALARM_DEGRADED_STATUS,
|
ALARM_STATUS = [FM_ALARM_OK_STATUS, FM_ALARM_DEGRADED_STATUS,
|
||||||
FM_ALARM_CRITICAL_STATUS]
|
FM_ALARM_CRITICAL_STATUS]
|
||||||
|
|
||||||
ALARM_CONTEXT = [FM_ALARM_CONTEXT_STARLINGX, FM_ALARM_CONTEXT_OPENSTACK]
|
ALARM_CONTEXT = [FM_ALARM_CONTEXT_STARLINGX, FM_ALARM_CONTEXT_OPENSTACK,
|
||||||
|
FM_ALARM_CONTEXT_NONE]
|
||||||
|
|
||||||
ALARM_PROBABLE_CAUSE = [ALARM_PROBABLE_CAUSE_1, ALARM_PROBABLE_CAUSE_2,
|
ALARM_PROBABLE_CAUSE = [ALARM_PROBABLE_CAUSE_1, ALARM_PROBABLE_CAUSE_2,
|
||||||
ALARM_PROBABLE_CAUSE_3, ALARM_PROBABLE_CAUSE_4,
|
ALARM_PROBABLE_CAUSE_3, ALARM_PROBABLE_CAUSE_4,
|
||||||
|
|
|
@ -59,7 +59,10 @@
|
||||||
# Degrade_Affecting_Severity: < none | critical | major | minor >
|
# Degrade_Affecting_Severity: < none | critical | major | minor >
|
||||||
# // lowest alarm level of this type sets a host to 'degraded'
|
# // lowest alarm level of this type sets a host to 'degraded'
|
||||||
# Context: < none | starlingx | openstack >
|
# Context: < none | starlingx | openstack >
|
||||||
# // identifies where the alarm/log is used
|
# // Identifies where the alarm/log is used. If it should be ignored by
|
||||||
|
# // the documentation generating scripts, the value has to be 'none'.
|
||||||
|
# // If any of the other values is used, the alarm/log will be included
|
||||||
|
# // in the documentation and classified by the chosen value.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Other Notes:
|
# Other Notes:
|
||||||
|
@ -130,7 +133,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: none
|
Management_Affecting_Severity: none
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
100.103:
|
100.103:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -206,7 +209,7 @@
|
||||||
Suppression: False
|
Suppression: False
|
||||||
Management_Affecting_Severity: major
|
Management_Affecting_Severity: major
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context: starlingx
|
Context: openstack
|
||||||
|
|
||||||
#--------
|
#--------
|
||||||
# 100.105: Retired (with R2 release): previously monitored /etc/nova/instances
|
# 100.105: Retired (with R2 release): previously monitored /etc/nova/instances
|
||||||
|
@ -338,7 +341,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: none
|
Management_Affecting_Severity: none
|
||||||
Degrade_Affecting_Severity: major
|
Degrade_Affecting_Severity: major
|
||||||
Context: starlingx
|
Context: openstack
|
||||||
|
|
||||||
100.113:
|
100.113:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -358,7 +361,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: none
|
Management_Affecting_Severity: none
|
||||||
Degrade_Affecting_Severity: major
|
Degrade_Affecting_Severity: major
|
||||||
Context: starlingx
|
Context: openstack
|
||||||
|
|
||||||
100.114:
|
100.114:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -396,7 +399,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: none
|
Management_Affecting_Severity: none
|
||||||
Degrade_Affecting_Severity: critical
|
Degrade_Affecting_Severity: critical
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
100.116:
|
100.116:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -414,7 +417,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: none
|
Management_Affecting_Severity: none
|
||||||
Degrade_Affecting_Severity: critical
|
Degrade_Affecting_Severity: critical
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
100.117:
|
100.117:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -432,7 +435,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: major
|
Management_Affecting_Severity: major
|
||||||
Degrade_Affecting_Severity: critical
|
Degrade_Affecting_Severity: critical
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
100.118:
|
100.118:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -991,7 +994,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
270.102:
|
270.102:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -1001,7 +1004,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
270.103:
|
270.103:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -1011,7 +1014,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
|
|
||||||
275.001:
|
275.001:
|
||||||
|
@ -1022,7 +1025,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
@ -1075,7 +1078,7 @@
|
||||||
Suppression: False
|
Suppression: False
|
||||||
Management_Affecting_Severity: none
|
Management_Affecting_Severity: none
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# NETWORK
|
# NETWORK
|
||||||
|
@ -1115,7 +1118,7 @@
|
||||||
Suppression: False
|
Suppression: False
|
||||||
Management_Affecting_Severity: warning
|
Management_Affecting_Severity: warning
|
||||||
Degrade_Affecting_Severity: critical
|
Degrade_Affecting_Severity: critical
|
||||||
Context: starlingx
|
Context: openstack
|
||||||
|
|
||||||
|
|
||||||
300.003:
|
300.003:
|
||||||
|
@ -1247,7 +1250,7 @@
|
||||||
Suppression: False
|
Suppression: False
|
||||||
Management_Affecting_Severity: warning
|
Management_Affecting_Severity: warning
|
||||||
Degrade_Affecting_Severity: critical
|
Degrade_Affecting_Severity: critical
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
|
|
||||||
300.015:
|
300.015:
|
||||||
|
@ -1481,7 +1484,7 @@
|
||||||
Suppression: False
|
Suppression: False
|
||||||
Management_Affecting_Severity: none
|
Management_Affecting_Severity: none
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
500.101:
|
500.101:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -1563,7 +1566,7 @@
|
||||||
Alarm_Type: integrity-violation
|
Alarm_Type: integrity-violation
|
||||||
Probable_Cause: information-modification-detected
|
Probable_Cause: information-modification-detected
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
@ -1810,7 +1813,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: warning
|
Management_Affecting_Severity: warning
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
700.016:
|
700.016:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -2954,7 +2957,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
700.212:
|
700.212:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -2964,7 +2967,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
700.213:
|
700.213:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -2974,7 +2977,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
700.214:
|
700.214:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -3351,7 +3354,7 @@
|
||||||
Suppression: False
|
Suppression: False
|
||||||
Management_Affecting_Severity: none
|
Management_Affecting_Severity: none
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# SOFTWARE
|
# SOFTWARE
|
||||||
|
@ -3451,7 +3454,7 @@
|
||||||
Suppression: False
|
Suppression: False
|
||||||
Management_Affecting_Severity: warning
|
Management_Affecting_Severity: warning
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: starlingx
|
||||||
|
|
||||||
900.007:
|
900.007:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -3467,7 +3470,7 @@
|
||||||
Suppression: False
|
Suppression: False
|
||||||
Management_Affecting_Severity: warning
|
Management_Affecting_Severity: warning
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.008:
|
900.008:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -3989,7 +3992,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: warning
|
Management_Affecting_Severity: warning
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.402:
|
900.402:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -4005,7 +4008,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: warning
|
Management_Affecting_Severity: warning
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.403:
|
900.403:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
@ -4021,7 +4024,7 @@
|
||||||
Suppression: True
|
Suppression: True
|
||||||
Management_Affecting_Severity: warning
|
Management_Affecting_Severity: warning
|
||||||
Degrade_Affecting_Severity: none
|
Degrade_Affecting_Severity: none
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.411:
|
900.411:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4031,7 +4034,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.412:
|
900.412:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4041,7 +4044,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.413:
|
900.413:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4051,7 +4054,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.414:
|
900.414:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4061,7 +4064,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.415:
|
900.415:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4071,7 +4074,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.416:
|
900.416:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4081,7 +4084,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.417:
|
900.417:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4091,7 +4094,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.418:
|
900.418:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4101,7 +4104,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.419:
|
900.419:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4111,7 +4114,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.420:
|
900.420:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4121,7 +4124,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.421:
|
900.421:
|
||||||
Type: Log
|
Type: Log
|
||||||
|
@ -4131,7 +4134,7 @@
|
||||||
Alarm_Type: equipment
|
Alarm_Type: equipment
|
||||||
Probable_Cause: unspecified-reason
|
Probable_Cause: unspecified-reason
|
||||||
Service_Affecting: False
|
Service_Affecting: False
|
||||||
Context:
|
Context: none
|
||||||
|
|
||||||
900.501:
|
900.501:
|
||||||
Type: Alarm
|
Type: Alarm
|
||||||
|
|
Loading…
Reference in New Issue