From fed96416dcb691ab0df23ccdf23ddd6fc72f6158 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 3 Feb 2020 17:25:06 +0100 Subject: [PATCH] cephadm: increase default retry_max value When playing with cephadm, at multiple times, I've reached the max number of attempt in `is_available()` Increasing the `retry_max` helps to avoid failure like following: ``` INFO:cephadm:mgr not available, waiting (1/5)... INFO:cephadm:mgr not available, waiting (2/5)... INFO:cephadm:mgr not available, waiting (3/5)... INFO:cephadm:mgr not available, waiting (4/5)... INFO:cephadm:mgr not available, waiting (5/5)... ERROR: mgr not available after 5 tries ``` Signed-off-by: Guillaume Abrioux --- src/cephadm/cephadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index f2a6c9884fc..b02b1db9c46 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -538,7 +538,7 @@ def call_timeout(command, timeout): ################################## -def is_available(what, func, retry_max=5): +def is_available(what, func, retry_max=10): # type (str, func, Optional[int]) -> func """ Wait for a service to become available -- 2.47.3