openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

Cleared alarm notification is not updating the cache #901

Open Ziabatcha opened 5 months ago

Ziabatcha commented 5 months ago

When new alarm is raised, it is retrieved successfully from cache. But When we cleared that alarm, cache is not updated everytime. Once or twice cleared alarm removed from the current alarm pac, other time that alarm persist. Note: Notification proxy is having success message for the delivered alarm notification to MWDI.

{
  "alarms-1-0:current-alarms": {
    "current-alarm-list": [
      {
        "alarm-type-id": "alarms-ext-ericsson-ml6600:ALARM_TYPE_ID_ETHERNET_DOWN",
        "alarm-type-qualifier": "",
        "resource": "/core-model-1-4:control-construct/logical-termination-point[uuid='ETY-2134639108']",
        "alarm-severity": "alarms-1-0:SEVERITY_TYPE_CRITICAL",
        "timestamp": "2024-03-18T09:09:52.2+01:00"
      },
      {
        "alarm-type-id": "alarms-ext-ericsson-ml6600:ALARM_TYPE_ID_DEGRADED_SERVICE",
        "alarm-type-qualifier": "",
        "resource": "/core-model-1-4:control-construct",
        "alarm-severity": "alarms-1-0:SEVERITY_TYPE_MAJOR",
        "timestamp": "2024-03-18T09:10:01.2+01:00"
      }
    ],
    "number-of-current-alarms": 2,
    "time-of-latest-change": "2024-03-18T09:10:01.2+01:00"
  }
}[testbox@mwtestbox02 ~]$date
Mon Mar 18 09:14:18 CET 2024
[testbox@mwtestbox02 ~]$ curl -X GET "http://x.x.x.x:xxxx/core-model-1-4:network-control-domain=live/control-construct=CO15338/alarms-1-0:alarm-pac/current-alarms" -H "accept: application/json" -H "user: User Name" -H "originator: Resolver" -H "x-correlator: 550e8400-e29b-11d4-a716-446655440000" -H "trace-indicator: 1.3.1" -H "customer-journey: Unknown value" -H "operation-key: XXXXXXXXXXXX"
{
  "alarms-1-0:current-alarms": {
    "current-alarm-list": [
      {
        "alarm-type-id": "alarms-ext-ericsson-ml6600:ALARM_TYPE_ID_ETHERNET_DOWN",
        "alarm-type-qualifier": "",
        "resource": "/core-model-1-4:control-construct/logical-termination-point[uuid='ETY-2134639108']",
        "alarm-severity": "alarms-1-0:SEVERITY_TYPE_CRITICAL",
        "timestamp": "2024-03-18T09:09:52.2+01:00"
      }
    ],
    "number-of-current-alarms": 1,
    "time-of-latest-change": "2024-03-18T09:09:52.2+01:00"
  }
}[testbox@mwtestbox02 ~]$date
Mon Mar 18 09:14:31 CET 2024