From: Aashish Sharma Date: Fri, 4 Oct 2024 10:54:02 +0000 (+0530) Subject: mgr/dashboard: increase timeout to detect replication user in the secondary cluster X-Git-Tag: testing/wip-vshankar-testing-20241016.135728-debug~70^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4d15ed813b1f120ffd11caa4a9a4d14eed8bcc8d;p=ceph-ci.git 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 --- diff --git a/src/pybind/mgr/dashboard/services/rgw_client.py b/src/pybind/mgr/dashboard/services/rgw_client.py index 2441b73b361..21eff2dd7f9 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',