Bug 1007 - Pass NS Id and KDU Name to Juju k8s 55/8555/5
authorDominik Fleischmann <dominik.fleischmann@canonical.com>
Tue, 4 Feb 2020 14:23:15 +0000 (15:23 +0100)
committerDominik Fleischmann <dominik.fleischmann@canonical.com>
Thu, 6 Feb 2020 16:15:46 +0000 (17:15 +0100)
This commit is to fix Bug 1007, kuberntes workloads where
not deleted correctly due to the uninstall method using the
incorrect name. This will be fixed with this commit and
an additional one in N2VC.

Additionally this will also fix multi KDU support.

https://osm.etsi.org/bugzilla/show_bug.cgi?id=1007

Change-Id: I404e5e36f589245b83b7cf635725140be1653aee
Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
osm_lcm/ns.py

index 9d8812a..43a08f0 100644 (file)
@@ -2075,7 +2075,8 @@ class NsLcm(LcmBase):
                         task = asyncio.ensure_future(
                             self.k8sclusterjuju.install(cluster_uuid=cluster_uuid, kdu_model=kdumodel,
                                                         atomic=True, params=desc_params,
-                                                        db_dict=db_dict, timeout=600)
+                                                        db_dict=db_dict, timeout=600,
+                                                        kdu_name=kdur["kdu-name"])
                         )
 
                     pending_tasks[task] = "_admin.deployed.K8s.{}.".format(index)