]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: increase timeout to detect replication user in the secondary cluster 60113/head
authorAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Fri, 4 Oct 2024 10:54:02 +0000 (16:24 +0530)
committerAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Mon, 7 Oct 2024 04:24:17 +0000 (09:54 +0530)
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 <aasharma@redhat.com>
src/pybind/mgr/dashboard/services/rgw_client.py

index 2441b73b361bee8b7b04bd103b18425460710534..21eff2dd7f90470c80a880a9a7f8c2e5b5e018a6 100755 (executable)
@@ -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',