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

set IBM cloud managed OSD size to minimum requirement #10831

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
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
10 changes: 9 additions & 1 deletion ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,15 @@ def deploy_odf_addon(self):
ocs_version = version.get_semantic_ocs_version_from_config()
disable_noobaa = config.COMPONENTS.get("disable_noobaa", False)
noobaa_cmd_arg = f"--param ignoreNoobaa={str(disable_noobaa).lower()}"
device_size = int(config.ENV_DATA.get("device_size", defaults.DEVICE_SIZE))
device_size = int(
config.ENV_DATA.get("device_size", defaults.DEVICE_SIZE_IBM_CLOUD_MANAGED)
)
if device_size < defaults.DEVICE_SIZE_IBM_CLOUD_MANAGED:
logger.warning(
f"OSD size provided is less than the minimum required 512Gi."
f" Setting OSD device size to {defaults.DEVICE_SIZE_IBM_CLOUD_MANAGED}"
)
device_size = defaults.DEVICE_SIZE_IBM_CLOUD_MANAGED
osd_size_arg = f"--param osdSize={device_size}Gi"
cmd = (
f"ibmcloud ks cluster addon enable openshift-data-foundation --cluster {clustername} -f --version "
Expand Down
1 change: 1 addition & 0 deletions ocs_ci/ocs/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

# Default device size in Gigs
DEVICE_SIZE = 100
DEVICE_SIZE_IBM_CLOUD_MANAGED = 512

OCS_OPERATOR_NAME = "ocs-operator"
ODF_OPERATOR_NAME = "odf-operator"
Expand Down
Loading