Bug in report with multiple PMJobs to pm_event

Bug #2064974 reported by Kenta Fukaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
In Progress
Undecided
Unassigned

Bug Description

Bug in Alert sent from Prometheus/Alertmanager to /pm_event when multiple PMJobs are included in one report.
The alart generated by this bug causes the reports of multiple PMJobs to be registered together in one PMJob.

Show an example of how it is done
PerformanceReport is generated with a Report for objectInstanceId 6b2215d7-eadc-4394-9b5e-fd94a398e257 which is not specified in PMJob.

- PMJob

```
{
  "id": "f77b478a-1b9d-4d59-ae9a-b8b22b25889e",
  "objectType": "Vnf",
  "objectInstanceIds": [
    "985eebfa-0cf3-4352-a336-d1ecc3b2e5e9"
  ],
  "criteria": {
    "performanceMetricGroup": [
      "VirtualisedComputeResource"
    ],
    "collectionPeriod": 90,
    "reportingPeriod": 30
  },
  "callbackUri": ",
  "reports": [],
  "_links": {
    "self": {
      "href": ""
    },
    "objects": [
      {
        "href": ""
      }
    ]
  }
}
```

- PerformanceReport
```
{
    "entries": [
        {
            "objectType": "Vnf",
            "objectInstanceId": "985eebfa-0cf3-4352-a336-d1ecc3b2e5e9",
            "performanceMetric": "VMemoryUsageMeanVnf.985eebfa-0cf3-4352-a336-d1ecc3b2e5e9",
            "performanceValues": [
                {
                    "timeStamp": "2024-02-06T06:01:55Z",
                    "value": "3.1461193006460595e-06"
                }
            ]
        },
        {
            "objectType": "Vnf",
            "objectInstanceId": "6b2215d7-eadc-4394-9b5e-fd94a398e257",
            "performanceMetric": "VMemoryUsageMeanVnf.6b2215d7-eadc-4394-9b5e-fd94a398e257",
            "performanceValues": [
                {
                    "timeStamp": "2024-02-06T06:01:55Z",
                    "value": "3.1004682346149196e-06"
                }
            ]
        },
        {
            "objectType": "Vnf",
            "objectInstanceId": "6b2215d7-eadc-4394-9b5e-fd94a398e257",
            "performanceMetric": "VMemoryUsagePeakVnf.6b2215d7-eadc-4394-9b5e-fd94a398e257",
            "performanceValues": [
                {
                    "timeStamp": "2024-02-06T06:01:55Z",
                    "value": "3.1042724901175144e-06"
                }
            ]
        },
        {
            "objectType": "Vnf",
            "objectInstanceId": "985eebfa-0cf3-4352-a336-d1ecc3b2e5e9",
            "performanceMetric": "VMemoryUsagePeakVnf.985eebfa-0cf3-4352-a336-d1ecc3b2e5e9",
            "performanceValues": [
                {
                    "timeStamp": "2024-02-06T06:01:55Z",
                    "value": "3.195574622179794e-06"
                }
            ]
        }
    ]
}
```

Changed in tacker:
status: New → In Progress
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.