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>
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',