]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: retry for 30s instead of 10s 39028/head
authorSage Weil <sage@newdream.net>
Fri, 22 Jan 2021 15:09:17 +0000 (09:09 -0600)
committerSage Weil <sage@newdream.net>
Mon, 25 Jan 2021 14:48:44 +0000 (08:48 -0600)
No real reason not to wait longer, and I'm worried about things not coming
up quickly enough on slower or loady machines.

Signed-off-by: Sage Weil <sage@newdream.net>
src/cephadm/cephadm

index 0cafc2ea33d191077be5c66a806185346a50d8c6..c46bee0fbd29416f2a72c8f4c0e11c8b2d953872 100755 (executable)
@@ -13,7 +13,7 @@ DATA_DIR_MODE = 0o700
 CONTAINER_PREFERENCE = ['podman', 'docker']  # prefer podman to docker
 CUSTOM_PS1 = r'[ceph: \u@\h \W]\$ '
 DEFAULT_TIMEOUT = None  # in seconds
-DEFAULT_RETRY = 10
+DEFAULT_RETRY = 15
 SHELL_DEFAULT_CONF = '/etc/ceph/ceph.conf'
 SHELL_DEFAULT_KEYRING = '/etc/ceph/ceph.client.admin.keyring'
 
@@ -1374,7 +1374,7 @@ def is_available(ctx, what, func):
                 % (what, num, retry))
 
         num += 1
-        time.sleep(1)
+        time.sleep(2)
 
 
 def read_config(fn):