From: Pedro Escaleira Date: Thu, 21 Apr 2022 23:46:14 +0000 (+0100) Subject: added namespace argument to the N2VC's KDU uninstall function call X-Git-Tag: v12.0.0rc1~16 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=e1ea267ea9baf033221e5d2f665cc6f4bbdc3028;p=osm%2FLCM.git 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 --- 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: