added namespace argument to the N2VC's KDU uninstall function call 13/11913/5
authorPedro Escaleira <escaleira@av.it.pt>
Thu, 21 Apr 2022 23:46:14 +0000 (00:46 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 24 May 2022 15:36:36 +0000 (17:36 +0200)
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 <escaleira@av.it.pt>
osm_lcm/ns.py

index 9940a8f..5c2d4c3 100644 (file)
@@ -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: