From 4d15ed813b1f120ffd11caa4a9a4d14eed8bcc8d Mon Sep 17 00:00:00 2001 From: Aashish Sharma Date: Fri, 4 Oct 2024 16:24:02 +0530 Subject: [PATCH] mgr/dashboard: increase timeout to detect replication user in the secondary cluster Increase timeout to detect replication user in the secondary cluster in rgw multisite automation wizard. Currently its set to 2 mins, increase it to 5 minutes. when you import realm token to the secondary cluster, we wait for the replication/system user we created in the primary cluster to be present in the secondary cluster and when we find that user we set the credentials in the secondary cluster using ceph dashboard set-rgw-crdentials . The timeout for this is set to 2 minutes and sometimes it takes more than 2 minutes for the user to be replicated in the secondary cluster Fixes: https://tracker.ceph.com/issues/68384 Signed-off-by: Aashish Sharma --- src/pybind/mgr/dashboard/services/rgw_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/services/rgw_client.py b/src/pybind/mgr/dashboard/services/rgw_client.py index 2441b73b361be..21eff2dd7f904 100755 --- a/src/pybind/mgr/dashboard/services/rgw_client.py +++ b/src/pybind/mgr/dashboard/services/rgw_client.py @@ -1298,7 +1298,7 @@ class RgwMultisiteAutomation: user_found = False start_time = time.time() while not user_found: - if time.time() - start_time > 120: # Timeout after 2 minutes + if time.time() - start_time > 300: # Timeout after 5 minutes logger.error("Timeout reached while waiting for user %s to appear \ in the second cluster", username) raise DashboardException(code='user_replication_timeout', -- 2.39.5