Skip to content

Commit

Permalink
Patch waitTimeoutForHealthyOSDInMinutes in storageCluster spec
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Balogh <[email protected]>
  • Loading branch information
petr-balogh committed Jun 5, 2024
1 parent 7bbf808 commit 49f9757
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 49f9757

Please sign in to comment.