Skip to content

Commit

Permalink
Change post upgrade verification for stretch cluster upgrade tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mahesh Shetty <[email protected]>
  • Loading branch information
mashetty330 committed Jan 29, 2024
1 parent ffde86d commit 931e0d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ocs_ci/ocs/resources/storage_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,14 @@ def ocs_install_verification(
}
)

if config.DEPLOYMENT.get("arbiter_deployment") is True:
resources_dict.update(
{
constants.MON_APP_LABEL: 5,
constants.MGR_APP_LABEL: 2,
}
)

for label, count in resources_dict.items():
if label == constants.RGW_APP_LABEL:
if (
Expand Down
6 changes: 6 additions & 0 deletions ocs_ci/utility/rgwutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ def get_rgw_count(ocs_version, is_upgrade, version_before_upgrade):
int: RGW Count
"""
from ocs_ci.framework import config

if config.DEPLOYMENT.get("arbiter_deployment") is True:
log.debug("RGW count: 2")
return 2

semantic_ocs_version = version.get_semantic_version(
ocs_version, only_major_minor=True
)
Expand Down

0 comments on commit 931e0d3

Please sign in to comment.