From: garciadeblas Date: Thu, 26 Sep 2024 16:30:01 +0000 (+0200) Subject: Test OKA creation with sleeps X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=5d8490b994cae0fb1cf6102e2b8a8911d72ba06b;p=osm%2FN2VC.git Test OKA creation with sleeps Change-Id: I75663fc13b6f128077fcb3c77e5e63cc954a06e2 Signed-off-by: garciadeblas --- diff --git a/n2vc/kubectl.py b/n2vc/kubectl.py index 7e15269..8089c7b 100644 --- a/n2vc/kubectl.py +++ b/n2vc/kubectl.py @@ -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,