R3.1 build 6: Alarm Config : Updating operand2 from null to non null is not causing a raised alarm to get cleared
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Invalid
|
Medium
|
Sundaresan Rajangam | ||
R3.1 |
Invalid
|
Medium
|
Sundaresan Rajangam |
Bug Description
Updated operand2 in the below rule from null to 'test', but alarm did not get cleared.
rules = {
"or_list":[
{
}
}
uve_key = ['virtual-network']
Alarm below got updated, it was supposed to get cleared:
{
alarms: [
{
severity: 6,
ack: false,
timestamp: 1469693719499543,
alarm_rules: {
or_list: [
{
and_list: [
{
condition: {
operation: "==",
operand1: "UveVirtualNetw
vars: [ ],
operand2: "test"
},
match: [
{
json_operand2_
json_operand1_
json_vars: { }
}
]
}
]
}
]
},
token: "eyJ0aW1lc3RhbX
type: "vn",
description: "vn"
}
]
},
Since the value of operand2 is not enclosed in double quotes (should have been "\"test"\"), it is considered as a uve attribute and hence evaluated to null. Since operand1 is also "null", the condition matches and hence the alarm is not cleared.