Description of problem: For Azure, currently the installer does not allow users to set the disktype for machines. this is esp problematic for control-plane where the users might want to set a different one for performance.
Since this is a feature and not a bug, I would like to know if just setting a custom Disk Type is enough for this current validation? I noticed that we have an Epic for this, but it was not in scope for 4.5 so we did not plan for it yet and will need to create a more thorough test scenario.
Verified basic functionality with: ./openshift-install 4.5.0-0.nightly-2020-05-20-211028 built from commit 64529d5dcd02bfc2cb279397850dd32c89799883 release image registry.svc.ci.openshift.org/ocp/release@sha256:51f9e8bf240348a0277157758cb95097f5c86e58732b115b5018207e76916eb7 1) Verified that a supported value (Standard_LRS) worker disk type configuration works (Installation succeeded with proper disk type configured): ~~~ compute: - architecture: amd64 hyperthreading: Enabled name: worker platform: azure: type: Standard_DS4_v2 osDisk: diskSizeGB: 512 diskType: Standard_LRS replicas: 3 ~~~ 2) Verified that an incompatible value (Standard_LRS) controlPlane disk type configuration fails with the proper error message: ~~~ FATAL failed to fetch Metadata: failed to load asset "Install Config": invalid "install-config.yaml" file: controlPlane.platform.azure.diskType: Invalid value: "Standard_LRS": Standard_LRS not compatible with control planes. ~~~ 3) Verified that an unsupported value for diskType also fails with a proper error message: ~~~ FATAL failed to fetch Metadata: failed to load asset "Install Config": invalid "install-config.yaml" file: controlPlane.platform.azure.diskType: Unsupported value: "Standard_LEET": supported values: "Premium_LRS", "StandardSSD_LRS", "Standard_LRS" ~~~ 4) Verified that defaultMachinePlatform works with a supported value (StandardSSD_LRS) ~~~ platform: azure: baseDomainResourceGroupName: os4-common region: centralus defaultMachinePlatform: osDisk: diskType: StandardSSD_LRS ~~~ 5) Verified that configuring a diskType value under platform will override a defaultMachinePlatform configuration 6) Verified that an incompatible value (Standard_LRS) defaultMachinePlatform disk type configuration fails with the proper error message: ~~~ FATAL failed to fetch Metadata: failed to load asset "Install Config": invalid "install-config.yaml" file: platform.azure.defaultMachinePlatform.diskType: Unsupported value: "Standard_LRS": supported values: "Premium_LRS", "StandardSSD_LRS" ~~~ 7) Verified that an unsupported value for diskType under defaultMachinePlatform also fails with a proper error message: ~~~ FATAL failed to fetch Metadata: failed to load asset "Install Config": invalid "install-config.yaml" file: [platform.azure.defaultMachinePlatform.diskType: Unsupported value: "Standard_LEET": supported values: "Premium_LRS", "StandardSSD_LRS", "Standard_LRS", platform.azure.defaultMachinePlatform.diskType: Unsupported value: "Standard_LEET": supported values: "Premium_LRS", "StandardSSD_LRS"] ~~~
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409