Test OKA creation with sleeps 04/14604/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 26 Sep 2024 16:30:01 +0000 (18:30 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 4 Oct 2024 11:45:12 +0000 (13:45 +0200)
Change-Id: I75663fc13b6f128077fcb3c77e5e63cc954a06e2
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
n2vc/kubectl.py

index 7e15269..8089c7b 100644 (file)
@@ -23,6 +23,7 @@ import uuid
 import json
 import tarfile
 import io
+from time import sleep
 
 from distutils.version import LooseVersion
 
@@ -937,8 +938,15 @@ class Kubectl:
         :param: filename:   Name of the file in the destination folder
         """
         pod_name = f"copy-pod-{name}"
+        self.logger.debug(f"Creating pvc {name}")
         await self.create_pvc(name=name, namespace=namespace)
+        self.logger.debug("Sleeping")
+        sleep(40)
+        self.logger.debug(f"Creating pod {pod_name}")
         await self.create_copy_pod(name=pod_name, namespace=namespace, pvc_name=name)
+        self.logger.debug("Sleeping")
+        sleep(40)
+        self.logger.debug(f"Copying files to pod {pod_name}")
         self.copy_file_to_pod(
             namespace=namespace,
             pod_name=pod_name,