Skip to content

Commit

Permalink
Merge pull request #9848 from petr-balogh/test-upgrade-waitTimeoutFor…
Browse files Browse the repository at this point in the history
…HealthyOSDInMinutes

Allow test upgrade waitTimeoutForHealthyOSDInMinutes
  • Loading branch information
petr-balogh committed May 29, 2024
2 parents 5926362 + 30bff49 commit 22ffc07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ higher priority).
* `nodepool_replicas` - number of replicas of nodepool for each cluster
* `hosted_odf_registry` - registry for hosted ODF
* `hosted_odf_version` - version of ODF to be deployed on hosted clusters
* `wait_timeout_for_healthy_osd_in_minutes` - timeout waiting for healthy OSDs before continuing upgrade (see https://bugzilla.redhat.com/show_bug.cgi?id=2276694 for more details)

#### UPGRADE

Expand Down
11 changes: 11 additions & 0 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,17 @@ def deploy_ocs_via_operator(self, image=None):
cluster_data["spec"]["multiCloudGateway"] = {
"externalPgConfig": {"pgSecretName": constants.NOOBAA_POSTGRES_SECRET}
}
# To be able to verify: https://bugzilla.redhat.com/show_bug.cgi?id=2276694
wait_timeout_for_healthy_osd_in_minutes = config.ENV_DATA.get(
"wait_timeout_for_healthy_osd_in_minutes"
)
if wait_timeout_for_healthy_osd_in_minutes:
cluster_data.setdefault("spec", {}).setdefault(
"managedResources", {}
).setdefault("cephCluster", {})
cluster_data["spec"]["managedResources"]["cephCluster"][
"waitTimeoutForHealthyOSDInMinutes"
] = wait_timeout_for_healthy_osd_in_minutes

cluster_data_yaml = tempfile.NamedTemporaryFile(
mode="w+", prefix="cluster_storage", delete=False
Expand Down

0 comments on commit 22ffc07

Please sign in to comment.