Fix issue with cluster_uuid 08/9508/1
authorDavid Garcia <david.garcia@canonical.com>
Thu, 16 Jul 2020 15:50:09 +0000 (17:50 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 23 Jul 2020 06:42:46 +0000 (06:42 +0000)
The cluster_uuid passed does not correspond with the right one.

Change-Id: I435017c8ca15f5b66e32e84451ec3acff2467c89
Signed-off-by: David Garcia <david.garcia@canonical.com>
osm_lcm/vim_sdn.py

index 6a3deb5..b216c77 100644 (file)
@@ -997,7 +997,10 @@ class K8sClusterLcm(LcmBase):
                 # Juju/k8s cluster
                 k8s_jb_id = None
                 try:
-                    k8s_jb_id, uninstall_sw = await self.juju_k8scluster.init_env(k8s_credentials)
+                    k8s_jb_id, uninstall_sw = await self.juju_k8scluster.init_env(
+                        k8s_credentials,
+                        reuse_cluster_uuid=k8scluster_id
+                    )
                     db_k8scluster_update["_admin.juju-bundle.id"] = k8s_jb_id
                     db_k8scluster_update["_admin.juju-bundle.created"] = uninstall_sw
                 except Exception as e: