Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-17046

[azure] Installer doesn't validate diskType on ASH which lead to install fails with unsupported disktype

XMLWordPrintable

    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-16353. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-16151. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-13812. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-13718. The following is the description of the original issue:

      Description of problem:

      IPI install on azure stack failed when setting platform.azure.osDiks.diskType as StandardSSD_LRS in install-config.yaml.
      
      When setting controlPlane.platform.azure.osDisk.diskType as StandardSSD_LRS, get error in terraform log and some resources have been created.
      
      level=error msg=Error: expected storage_os_disk.0.managed_disk_type to be one of [Premium_LRS Standard_LRS], got StandardSSD_LRS
      level=error
      level=error msg=  with azurestack_virtual_machine.bootstrap,
      level=error msg=  on main.tf line 107, in resource "azurestack_virtual_machine" "bootstrap":
      level=error msg= 107: resource "azurestack_virtual_machine" "bootstrap" {
      level=error
      level=error msg=failed to fetch Cluster: failed to generate asset "Cluster": failure applying terraform for "bootstrap" stage: failed to create cluster: failed to apply Terraform: exit status 1
      level=error
      level=error msg=Error: expected storage_os_disk.0.managed_disk_type to be one of [Premium_LRS Standard_LRS], got StandardSSD_LRS
      level=error
      level=error msg=  with azurestack_virtual_machine.bootstrap,
      level=error msg=  on main.tf line 107, in resource "azurestack_virtual_machine" "bootstrap":
      level=error msg= 107: resource "azurestack_virtual_machine" "bootstrap" {
      level=error
      level=error
      
      When setting compute.platform.azure.osDisk.diskType as StandardSSD_LRS, fail to provision compute machines
      
      $ oc get machine -n openshift-machine-api
      NAME                                     PHASE     TYPE              REGION   ZONE   AGE
      jima414ash03-xkq5x-master-0              Running   Standard_DS4_v2   mtcazs          62m
      jima414ash03-xkq5x-master-1              Running   Standard_DS4_v2   mtcazs          62m
      jima414ash03-xkq5x-master-2              Running   Standard_DS4_v2   mtcazs          62m
      jima414ash03-xkq5x-worker-mtcazs-89mgn   Failed                                      52m
      jima414ash03-xkq5x-worker-mtcazs-jl5kk   Failed                                      52m
      jima414ash03-xkq5x-worker-mtcazs-p5kvw   Failed                                      52m
      
      $ oc describe machine jima414ash03-xkq5x-worker-mtcazs-jl5kk -n openshift-machine-api
      ...
        Error Message:           failed to reconcile machine "jima414ash03-xkq5x-worker-mtcazs-jl5kk": failed to create vm jima414ash03-xkq5x-worker-mtcazs-jl5kk: failure sending request for machine jima414ash03-xkq5x-worker-mtcazs-jl5kk: cannot create vm: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="Storage account type 'StandardSSD_LRS' is supported by Microsoft.Compute API version 2018-04-01 and above" Target="osDisk.managedDisk.storageAccountType"
      ...
      
      Based on azure-stack doc[1], supported disk types on ASH are Premium SSD, Standard HDD. It's better to do validation for diskType on Azure Stack to avoid above errors.
      
      [1]https://learn.microsoft.com/en-us/azure-stack/user/azure-stack-managed-disk-considerations?view=azs-2206&tabs=az1%2Caz2#cheat-sheet-managed-disk-differences

      Version-Release number of selected component (if applicable):

      4.14.0-0.nightly-2023-05-16-085836

      How reproducible:

      Always

      Steps to Reproduce:

      1. Prepare install-config.yaml, set platform.azure.osDiks.diskType as StandardSSD_LRS
      2. Install IPI cluster on Azure Stack
      3.
      

      Actual results:

      Installation failed

      Expected results:

      Installer validate diskType on AzureStack Cloud, and exit for unsupported disk type with error message

      Additional info:

       

              rdossant Rafael Fonseca dos Santos
              openshift-crt-jira-prow OpenShift Prow Bot
              Jinyun Ma Jinyun Ma
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: