]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: increase default retry_max value
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 3 Feb 2020 16:25:06 +0000 (17:25 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 3 Feb 2020 16:25:06 +0000 (17:25 +0100)
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 <gabrioux@redhat.com>
src/cephadm/cephadm

index f2a6c9884fcfe970e767291dd332401376fb0a50..b02b1db9c4676155f247400bd32f1a58576a3d7a 100755 (executable)
@@ -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