From a7009eb5ecc66ef1ec6f55d6a6721fde4b293ba5 Mon Sep 17 00:00:00 2001 From: Dominik Fleischmann Date: Tue, 4 Feb 2020 15:23:15 +0100 Subject: [PATCH] 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 --- osm_lcm/ns.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.17.1