Bug 1007 - Pass NS Id and KDU Name to Juju k8s 71/8571/1 v7.0.1
authorDominik Fleischmann <dominik.fleischmann@canonical.com>
Tue, 4 Feb 2020 14:23:15 +0000 (15:23 +0100)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 6 Feb 2020 22:48:56 +0000 (23:48 +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>
(cherry picked from commit a7009eb5ecc66ef1ec6f55d6a6721fde4b293ba5)

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)