diff --git a/packages/odf/components/create-storage-system/footer.tsx b/packages/odf/components/create-storage-system/footer.tsx index 5c5067ac4..ced456547 100644 --- a/packages/odf/components/create-storage-system/footer.tsx +++ b/packages/odf/components/create-storage-system/footer.tsx @@ -149,7 +149,9 @@ const validateAdvancedSettingsStep = ( advancedSettings: WizardState['advancedSettings'], type: BackingStorageType, nodeCount: number, - flexibleScaling: boolean + flexibleScaling: boolean, + deployment: DeploymentType, + isNoProvisioner: boolean ) => { const { useErasureCoding, @@ -158,14 +160,19 @@ const validateAdvancedSettingsStep = ( forcefulDeploymentConfirmation, } = advancedSettings; + const isMCG: boolean = deployment === DeploymentType.MCG; + const erasureCodingStepValid = !useErasureCoding || !flexibleScaling || (nodeCount >= ERASURE_CODING_MIN_NODES && !!erasureCodingScheme); + const includeAdvancedSettingsStep = + !isMCG && (type === BackingStorageType.LOCAL_DEVICES || isNoProvisioner); + // The Next button is disabled only when no VolumeSnapshotClass is selected for MCG Standalone when automatic backup option enabled. const hasForcefulDeploymentButNoConfirmation = - type === BackingStorageType.LOCAL_DEVICES && + includeAdvancedSettingsStep && enableForcefulDeployment && !(forcefulDeploymentConfirmation?.trim() === 'CONFIRM'); @@ -277,7 +284,9 @@ const canJumpToNextStep = ( advancedSettings, backingStorage.type, nodes.length, - flexibleScaling + flexibleScaling, + backingStorage.deployment, + isNoProvisioner ); case StepsName(t)[Steps.CreateStorageClass]: return (