From 963f54aebf151ea4624063d930ab85f0a2b1fa79 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 22 Jan 2021 09:09:17 -0600 Subject: [PATCH] cephadm: retry for 30s instead of 10s 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 --- src/cephadm/cephadm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 0cafc2ea33d19..c46bee0fbd294 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -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): -- 2.39.5