R3.1 build 17: False alarm getting raised when operand2 uve attribute value in the alarm rule is configured as a num
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Invalid
|
Medium
|
Sundaresan Rajangam | ||
R3.1 |
Invalid
|
Medium
|
Sundaresan Rajangam |
Bug Description
Alarm Config:
{
alarm: {
display_name: "rule1",
uuid: "6a6ee33e-
alarm_rules: {
or_list: [
{
and_list: [
{
operation: ">=",
operand1: "UveVirtualNetw
variables: [
"UveVirtualNetw
],
operand2: {
uve_attribute: "25"
}
}
]
}
]
},
parent_uuid: "198e1e66-
parent_href: "http://
parent_type: "project",
alarm_severity: 2,
perms2: {
owner: "cloud-admin",
owner_access: 7,
global_access: 0,
share: [ ]
},
href: "http://
id_perms: {
enable: true,
uuid: {
uuid_mslong: 766931707480973
uuid_lslong: 117557638619099
},
created: "2016-08-
description: "rule1",
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-domain",
"admin",
"rule1"
],
uve_keys: {
uve_key: [
"virtual-network"
]
},
name: "rule1"
}
}
Alarm Raised:
UVEAlarms: {
alarms: [
{
severity: 2,
alarm_rules: {
or_list: [
{
and_list: [
{
condition: {
operation: ">=",
operand1: "UveVirtualNetw
variables: [
"UveVirtualNetw
],
operand2: {
uve_attribute: "25"
}
},
match: [
{
json_operand2_
json_operand1_
json_variables: {
UveVirtualNetwo
}
}
]
}
]
}
]
},
timestamp: 1470511603527843,
ack: false,
token: "eyJ0aW1lc3RhbX
type: "rule1",
description: "rule1"
Changed in juniperopenstack: | |
importance: | Undecided → Medium |
uve_attribute is a string type and therefore number can be passed as string. This is invalid configuration.