R3.1 build 17: Alarms: Throw error or prune white space in operand/variables in alarm configuration
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Fix Committed
|
High
|
VishnuVardhan V | |||
Trunk |
Fix Committed
|
High
|
VishnuVardhan V |
Bug Description
Configured the following rule:
Name OrRule
Enabled true
Description OrRule
Severity Minor
UVE Keys analytics-node
Rules NodeStatus.
OR
NodeStatus.
== Contrail Analytics ==
supervisor-
contrail-alarm-gen active
contrail-
contrail-
contrail-collector active
contrail-
contrail-
contrail-topology active
json_operand1_value and json_variables are shown as null in the below alarm please check
Below alarm raised:
{
severity: 2,
alarm_rules: {
or_list: [
{
and_list: [
{
condition: {
operation: "!=",
operand1: "NodeStatus.
variables: [
"NodeStatus.
],
operand2: {
json_value: ""PROCESS_
}
},
match: [
{
json_operand1_
json_variables: {
NodeStatus.
}
},
{
json_operand1_
json_variables: {
NodeStatus.
}
},
{
json_operand1_
json_variables: {
NodeStatus.
}
},
{
json_operand1_
json_variables: {
NodeStatus.
}
},
{
json_operand1_
json_variables: {
NodeStatus.
}
},
{
json_operand1_
json_variables: {
NodeStatus.
}
},
{
json_operand1_
json_variables: {
NodeStatus.
}
}
]
}
]
},
{
and_list: [
{
condition: {
operation: "==",
operand1: "NodeStatus.
variables: [
"NodeStatus.
],
operand2: {
json_value: ""contrail-
}
},
match: [
{
json_operand1_
json_variables: {
NodeStatus.
}
}
]
}
]
}
]
},
timestamp: 1470588400370252,
ack: false,
token: "eyJ0aW1lc3RhbX
type: "OrRule",
description: "OrRule"
}
]
}
}
Alarm Configuration:
{
alarm: {
display_name: "OrRule",
uuid: "a3c72fb7-
alarm_rules: {
or_list: [
{
and_list: [
{
operation: "!=",
operand1: "NodeStatus.
variables: [
"NodeStatus.
],
operand2: {
json_value: ""PROCESS_
}
}
]
},
{
and_list: [
{
operation: "==",
operand1: "NodeStatus.
variables: [
"NodeStatus.
],
operand2: {
json_value: ""contrail-
}
}
]
}
]
},
parent_uuid: "45613b94-
parent_href: "http://
parent_type: "global-
alarm_severity: 2,
perms2: {
owner: "cloud-admin",
owner_access: 7,
global_access: 0,
share: [ ]
},
href: "http://
id_perms: {
enable: true,
uuid: {
uuid_mslong: 118014538129032
uuid_lslong: 9900881450178769000
},
created: "2016-08-
description: "OrRule",
creator: null,
user_visible: true,
last_modified: "2016-08-
permissions: {
owner: "cloud-admin",
owner_access: 7,
other_access: 7,
group: "cloud-
group_access: 7
}
},
fq_name: [
"default-
"OrRule"
],
uve_keys: {
uve_key: [
"analytics-node"
]
},
name: "OrRule"
}
}
Changed in juniperopenstack: | |
assignee: | Rahul (rahuls) → VishnuVardhan V (vishnuvv) |
summary: |
- R3.1 build 17: Alarms: Match list shown in the raised alarm is not - proper when alarm rule with multiple OR conditions is configured + R3.1 build 17: Alarms: Throw error or prune white space in + operand/variables in alarm configuration |
The issue is due to trailing space in the operand and variables. Hence marking the bug as invalid.
and_list: [ process_ info.process_ state ", <<<<<< process_ info.process_ name " <<<<<< STATE_RUNNING" "
{
operation: "!=",
operand1: "NodeStatus.
variables: [
"NodeStatus.
],
operand2: {
json_value: ""PROCESS_
}