I configured the alarm shown below, it could not get cleared after deleting the configuration for the same.Please check @ nodeg13
{
severity: 10,
ack: false,
timestamp: 1467726277952483,
alarm_rules: {
or_list: [
{
and_list: [
{
condition: {
operation: "!=",
operand1: "NodeStatus.process_info.process_state",
vars: [
"NodeStatus.process_info.process_name"
],
operand2: ""PROCESS_STATE_RUNNING""
},
match: [
{
json_operand1_value: ""PROCESS_STATE_STOPPED"",
json_vars: {
NodeStatus.process_info.process_name: ""contrail-named""
}
}
]
},
{
condition: {
operation: ">=",
operand1: "NodeStatus.process_info.start_count",
vars: [ ],
operand2: "8"
},
match: [
{
json_operand1_value: "8",
json_vars: { }
}
]
}
]
}
]
},
token: "eyJ0aW1lc3RhbXAiOiAxNDY3NzI2Mjc3OTUyNDgzLCAiaHR0cF9wb3J0IjogNTk5NSwgImhvc3RfaXAiOiAiMTAuMjA0LjIxNy41MyJ9",
type: "my-type4"
List of the configured alarms remaining under global-system-config after deleting the alarm of type 'my-type4'
alarms: [
{
to: [
"default-global-system-config",
"partial-sysinfo-control"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/3c33ea5c-eb49-4e6e-88f9-f627e0889823",
uuid: "3c33ea5c-eb49-4e6e-88f9-f627e0889823"
},
{
to: [
"default-global-system-config",
"partial-sysinfo-analytics"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/fabfb118-f3a6-48c7-9a98-b719be045635",
uuid: "fabfb118-f3a6-48c7-9a98-b719be045635"
},
{
to: [
"default-global-system-config",
"partial-sysinfo-compute"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/495b30f2-4446-48a4-be0d-08dbddde5ee0",
uuid: "495b30f2-4446-48a4-be0d-08dbddde5ee0"
},
{
to: [
"default-global-system-config",
"disk-usage"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/673e6a26-1a36-481d-8994-9d2fd49ad16f",
uuid: "673e6a26-1a36-481d-8994-9d2fd49ad16f"
},
{
to: [
"default-global-system-config",
"process-status"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/ca079f86-7f48-4ee7-b61a-5a85de328285",
uuid: "ca079f86-7f48-4ee7-b61a-5a85de328285"
},
{
to: [
"default-global-system-config",
"process-connectivity"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/e001f8d6-c9c5-4b88-81b3-c58779c46144",
uuid: "e001f8d6-c9c5-4b88-81b3-c58779c46144"
},
{
to: [
"default-global-system-config",
"vrouter-interface"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/ae678b0c-7dd4-4a20-b829-f0288ee203d8",
uuid: "ae678b0c-7dd4-4a20-b829-f0288ee203d8"
},
{
to: [
"default-global-system-config",
"storage-cluster-state"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/f559ad2c-1398-43ba-bf52-16c8123e3504",
uuid: "f559ad2c-1398-43ba-bf52-16c8123e3504"
},
{
to: [
"default-global-system-config",
"address-mismatch-control"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/e34b12c6-87d3-4891-9bbb-eef5569d2128",
uuid: "e34b12c6-87d3-4891-9bbb-eef5569d2128"
},
{
to: [
"default-global-system-config",
"bgp-connectivity"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/89c44f1a-0d98-4b6e-a676-f9b88fabbc44",
uuid: "89c44f1a-0d98-4b6e-a676-f9b88fabbc44"
},
{
to: [
"default-global-system-config",
"xmpp-connectivity"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/2d1cd26a-d6b2-4684-ade0-d9968edfe10f",
uuid: "2d1cd26a-d6b2-4684-ade0-d9968edfe10f"
},
{
to: [
"default-global-system-config",
"prouter-connectivity"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/240b7312-a5b8-4f79-8595-07560eec90d6",
uuid: "240b7312-a5b8-4f79-8595-07560eec90d6"
},
{
to: [
"default-global-system-config",
"phyif-bandwidth"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/05304506-7631-4e9c-a2ab-dd954e24efd0",
uuid: "05304506-7631-4e9c-a2ab-dd954e24efd0"
},
{
to: [
"default-global-system-config",
"partial-sysinfo-config"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/65d99a9a-0a92-48d8-acb3-faae09a92cb0",
uuid: "65d99a9a-0a92-48d8-acb3-faae09a92cb0"
},
{
to: [
"default-global-system-config",
"address-mismatch-compute"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/bc8263d8-73f4-45a0-8120-889b50a0a345",
uuid: "bc8263d8-73f4-45a0-8120-889b50a0a345"
},
{
to: [
"default-global-system-config",
"conf-incorrect"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/6f9e4eeb-4085-4b98-b206-8f0828db65fe",
uuid: "6f9e4eeb-4085-4b98-b206-8f0828db65fe"
},
{
to: [
"default-global-system-config",
"my-type"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/abce20b5-fb5e-4d82-a302-0b67293c4738",
uuid: "abce20b5-fb5e-4d82-a302-0b67293c4738"
},
{
to: [
"default-global-system-config",
"my-type1"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/8240f905-b3df-426d-97f4-2391fce03990",
uuid: "8240f905-b3df-426d-97f4-2391fce03990"
},
{
to: [
"default-global-system-config",
"my-type3"
],
href: "https://nodeg13:8143/proxy?proxyURL=http://10.204.217.53:9100/alarm/bd43f0e2-5c1e-44b3-9942-c47aa78bc228",
uuid: "bd43f0e2-5c1e-44b3-9942-c47aa78bc228"
}
https:/ /review. opencontrail. org/#/c/ 21280/
This patch should handle the update/delete of alarm config.
Please test with the latest build.