From: Dominik Fleischmann Date: Tue, 4 Feb 2020 14:23:15 +0000 (+0100) Subject: Bug 1007 - Pass NS Id and KDU Name to Juju k8s X-Git-Tag: v7.0.1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=af19803c4288d5b9b2262b11649e0330514b72a2;p=osm%2FLCM.git Bug 1007 - Pass NS Id and KDU Name to Juju k8s 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 (cherry picked from commit a7009eb5ecc66ef1ec6f55d6a6721fde4b293ba5) --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 9d8812a..43a08f0 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -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)