From: Guillaume Abrioux Date: Mon, 3 Feb 2020 16:25:06 +0000 (+0100) Subject: cephadm: increase default retry_max value X-Git-Tag: v15.1.1~560^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fed96416dcb691ab0df23ccdf23ddd6fc72f6158;p=ceph.git 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 --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index f2a6c9884fcf..b02b1db9c467 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