Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unrealistic ( years ) retry time #7841

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix unrealistic retry time
Signed-off-by: vavuthu <vavuthu@redhat.com>
  • Loading branch information
vavuthu committed Jun 16, 2023
commit 9dd037689ae2556d323fe316ce213455898edf01
10 changes: 5 additions & 5 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ def configure_rbd(self):
index = +1

# Check for RBD mirroring pods
@retry(PodNotCreated, tries=1000, delay=5)
@retry(PodNotCreated, tries=9, delay=5)
def _get_mirror_pod_count():
mirror_pod = get_pod_count(label="app=rook-ceph-rbd-mirror")
if not mirror_pod:
Expand Down Expand Up @@ -2162,8 +2162,8 @@ def deploy_dr_multicluster_orchestrator(self):

retry(
(ResourceNameNotSpecifiedException, ChannelNotFound, CommandFailed),
tries=50,
delay=20,
tries=11,
delay=2,
)(package_manifest.get_current_csv)(
self.channel, constants.ACM_ODF_MULTICLUSTER_ORCHESTRATOR_RESOURCE
)
Expand Down Expand Up @@ -2646,7 +2646,7 @@ def create_dpa(self):
# Validation
self.validate_dpa()

@retry((CommandFailed, MDRDeploymentException), tries=10, delay=10)
@retry((CommandFailed, MDRDeploymentException), tries=8, delay=10)
def validate_dpa(self):
"""
Validate
Expand Down Expand Up @@ -2784,7 +2784,7 @@ def enable_cluster_backup(self):
mch_resource.wait_for_phase("Running")
self.backup_pod_status_check()

@retry((TimeoutExpiredError, MDRDeploymentException), tries=20, delay=10)
@retry((TimeoutExpiredError, MDRDeploymentException), tries=8, delay=10)
def backup_pod_status_check(self):
pods_list = get_all_pods(namespace=constants.ACM_HUB_BACKUP_NAMESPACE)
if len(pods_list) != 3:
Expand Down