R3.1 build 17: False alarm getting raised when operand2 uve attribute value in the alarm rule is configured as a num

Bug #1610589 reported by Ankit Jain
6
This bug affects 1 person
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-e9df-4b75-a324-dcf29c845f5b",
alarm_rules: {
or_list: [
{
and_list: [
{
operation: ">=",
operand1: "UveVirtualNetworkAgent.total_acl_rules",
variables: [
"UveVirtualNetworkAgent.policy_rule_stats"
],
operand2: {
uve_attribute: "25"
}
}
]
}
]
},
parent_uuid: "198e1e66-e59c-4326-88a6-ec8fb4e82e6f",
parent_href: "http://nodeg13:8082/project/198e1e66-e59c-4326-88a6-ec8fb4e82e6f",
parent_type: "project",
alarm_severity: 2,
perms2: {
owner: "cloud-admin",
owner_access: 7,
global_access: 0,
share: [ ]
},
href: "http://nodeg13:8082/alarm/6a6ee33e-e9df-4b75-a324-dcf29c845f5b",
id_perms: {
enable: true,
uuid: {
uuid_mslong: 7669317074809736000,
uuid_lslong: 11755763861909955000
},
created: "2016-08-06T19:25:59.693764",
description: "rule1",
creator: null,
user_visible: true,
last_modified: "2016-08-06T19:26:43.331630",
permissions: {
owner: "cloud-admin",
owner_access: 7,
other_access: 7,
group: "cloud-admin-group",
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: "UveVirtualNetworkAgent.total_acl_rules",
variables: [
"UveVirtualNetworkAgent.policy_rule_stats"
],
operand2: {
uve_attribute: "25"
}
},
match: [
{
json_operand2_value: "null",
json_operand1_value: "2",
json_variables: {
UveVirtualNetworkAgent.policy_rule_stats: "[{"count": 16, "rule": "00000000-0000-0000-0000-000000000001"}, {"count": 0, "rule": "00000000-0000-0000-0000-000000000004"}]"
}
}
]
}
]
}
]
},
timestamp: 1470511603527843,
ack: false,
token: "eyJ0aW1lc3RhbXAiOiAxNDcwNTExNjAzNTI3ODQzLCAiaHR0cF9wb3J0IjogNTk5NSwgImhvc3RfaXAiOiAiMTAuMjA0LjIxNy41MyJ9",
type: "rule1",
description: "rule1"

Ankit Jain (ankitja)
Changed in juniperopenstack:
importance: Undecided → Medium
Revision history for this message
Sundaresan Rajangam (srajanga) wrote :

uve_attribute is a string type and therefore number can be passed as string. This is invalid configuration.

Changed in juniperopenstack:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.