From 1d04ee5208beefb318d5b90fb333d35a14633013 Mon Sep 17 00:00:00 2001 From: "Vinoth.V" Date: Thu, 18 Aug 2022 04:42:04 -0600 Subject: [PATCH] CORTX-33786:CORTX Deployment timeout in statefulset of cortx-server Problem: rgw admin utility in server init containers is stuck or taking long time around 10mins for a 5 node setup. Solution: This could be due to this rgw utility can connect to the stale hax process of data pods init container. To make sure that this utility is connected to data pods run time hax process, added a delay of 30 secs after "mkfs done" is completed. This improved the timings of deployments to within 3 mins. Signed-off-by: Vinoth.V --- provisioning/miniprov/hare_mp/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/provisioning/miniprov/hare_mp/main.py b/provisioning/miniprov/hare_mp/main.py index f7229ef0d..616989065 100644 --- a/provisioning/miniprov/hare_mp/main.py +++ b/provisioning/miniprov/hare_mp/main.py @@ -569,6 +569,9 @@ def init(args): # Stopping hax and consul if is_mkfs_required(url): stop_hax_blocking(hax_starter) + else: + while not all(cns_utils.ensure_ioservices_running()): + sleep(5) stop_consul_blocking(consul_starter) except Exception as error: if hax_starter: