Fix issue with cluster_uuid 37/9437/4
authorDavid Garcia <david.garcia@canonical.com>
Thu, 16 Jul 2020 15:50:09 +0000 (17:50 +0200)
committergarciadav <david.garcia@canonical.com>
Fri, 17 Jul 2020 11:35:52 +0000 (13:35 +0200)
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: