Build 2740: Script changes required for alarm test cases

Bug #1602129 reported by Ankit Jain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Ankit Jain

Bug Description

Alarm scripts need to be modified as per the latest dev changes.

Alarm rule structure has changed due to the latest dev changes ( and_list and or_list added)

New alarm rule struct:

alarm_rules: {
or_list: [
{
and_list: [
{
condition: {
operation: "==",
operand1: "NodeStatus.process_info",
vars: [ ],
operand2: "null"
},
match: [
{
json_operand1_value: "null",
json_vars: { }
}
]
}
]
}
]
},
token: "eyJ0aW1lc3RhbXAiOiAxNDY4MzA3MTUxNTkwODg1LCAiaHR0cF9wb3J0IjogNTk5NSwgImhvc3RfaXAiOiAiMTAuMjA0LjIxNy41MyJ9",
type: "process-status"
}

old alarm struct:

rules": [

    {
        "rule": [
            {
                "condition": {
                    "operation": "!=",
                    "operand1": "BgpRouterState.num_up_bgp_peer",
                    "operand2": "BgpRouterState.num_bgp_peer"
                },
                "match": [
                    {
                        "json_operand2_value": "3",
                        "json_operand1_value": "1"
                    }
                ]
            }
        ]
    }

],

Raj Reddy (rajreddy)
Changed in juniperopenstack:
importance: Undecided → High
Revision history for this message
Ankit Jain (ankitja) wrote :
Ankit Jain (ankitja)
Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
Ankit Jain (ankitja) wrote :
Revision history for this message
Ankit Jain (ankitja) wrote :
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.