From e1ea267ea9baf033221e5d2f665cc6f4bbdc3028 Mon Sep 17 00:00:00 2001 From: Pedro Escaleira Date: Fri, 22 Apr 2022 00:46:14 +0100 Subject: [PATCH] added namespace argument to the N2VC's KDU uninstall function call This is needed for the fix to the N2VC's bug 1995. This because when uninstalling a KDU based on Helm Charts, we need to know thenamespace/model associated to the Juju Bundle. However, if we try to obtain the namespace from the database in the uninstall method on N2VC, most of the times the nsrs associated data was already removed, which means that N2VC will not be able to obtain it there (in the end, the model/namespace is not removed). The most easy way is to pass the namespace to the method, as done here. Change-Id: I70bf67b301aa3036c9456f5c2c9c5d3176f7b58e Signed-off-by: Pedro Escaleira --- osm_lcm/ns.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 9940a8f..5c2d4c3 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -4487,6 +4487,7 @@ class NsLcm(LcmBase): cluster_uuid=kdu.get("k8scluster-uuid"), kdu_instance=kdu_instance, vca_id=vca_id, + namespace=kdu.get("namespace"), ) ) else: -- 2.25.1