From 49f97570df6cd566bcfd6b09da622303789b77c5 Mon Sep 17 00:00:00 2001 From: Petr Balogh Date: Wed, 5 Jun 2024 09:32:53 +0200 Subject: [PATCH] Patch waitTimeoutForHealthyOSDInMinutes in storageCluster spec Signed-off-by: Petr Balogh --- ocs_ci/deployment/deployment.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ocs_ci/deployment/deployment.py b/ocs_ci/deployment/deployment.py index 15e4df13a9a..9784d5d9b76 100644 --- a/ocs_ci/deployment/deployment.py +++ b/ocs_ci/deployment/deployment.py @@ -1855,6 +1855,19 @@ def deploy_ocs(self): ) ) + wait_timeout_for_healthy_osd_in_minutes = config.ENV_DATA.get( + "wait_timeout_for_healthy_osd_in_minutes" + ) + # This is a W/A because of the issue mentioned in + # https://github.com/red-hat-storage/ocs-ci/issues/9901 + if wait_timeout_for_healthy_osd_in_minutes: + run_cmd( + f"oc patch storagecluster ocs-storagecluster -n {self.namespace} --type merge -p '" + '{"spec": {"managedResources": {"cephCluster": ' + f'{{"waitTimeoutForHealthyOSDInMinutes": {wait_timeout_for_healthy_osd_in_minutes}' + "}}}}'" + ) + # Change monitoring backend to OCS if config.ENV_DATA.get("monitoring_enabled") and config.ENV_DATA.get( "persistent-monitoring"