Update db_upgrade.py to append osm to metric_name to be BWC 34/13334/3
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 4 May 2023 11:38:46 +0000 (13:38 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 9 May 2023 06:29:26 +0000 (08:29 +0200)
Change-Id: I8ed6497fe21a3db3ccf841795f8b92af1a95cc0b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/charm/osm-update-db-operator/src/db_upgrade.py

index 72eaa81..295ce87 100644 (file)
@@ -136,6 +136,7 @@ class MongoUpgrade1214:
                         for vdur in monitored_vdurs:
                             vdu_id = vdur["vdu-id-ref"]
                             metric_name = vnf_monitoring_param.get("performance-metric")
+                            metric_name = f"osm_{metric_name}"
                             vdu_name = vdur["name"]
                             vnf_member_index = vnfr["member-vnf-index-ref"]
                             scalein_threshold = scaling_criteria.get("scale-in-threshold")