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

[azure] bootstrap failed to be provisioned when vm type is set to Standard_NP10s

XMLWordPrintable

    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      Description of problem:

      Configure vm type as Standard_NP10s in install-config, which only supports Generation V1.
      --------------
      compute:
      - architecture: amd64
        hyperthreading: Enabled
        name: worker
        platform:
          azure:
            type: Standard_NP10s
        replicas: 3
      controlPlane:
        architecture: amd64
        hyperthreading: Enabled
        name: master
        platform:
          azure:
            type: Standard_NP10s
        replicas: 3
      
      Continue installation, installer failed when provisioning bootstrap node.
      --------------
      ERROR                                              
      ERROR Error: creating Linux Virtual Machine: (Name "jima1211test-rqfhm-bootstrap" / Resource Group "jima1211test-rqfhm-rg"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="The selected VM size 'Standard_NP10s' cannot boot Hypervisor Generation '2'. If this was a Create operation please check that the Hypervisor Generation of the Image matches the Hypervisor Generation of the selected VM Size. If this was an Update operation please select a Hypervisor Generation '2' VM Size. For more information, see https://aka.ms/azuregen2vm" 
      ERROR                                              
      ERROR   with azurerm_linux_virtual_machine.bootstrap, 
      ERROR   on main.tf line 193, in resource "azurerm_linux_virtual_machine" "bootstrap": 
      ERROR  193: resource "azurerm_linux_virtual_machine" "bootstrap" { 
      ERROR                                              
      ERROR failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failure applying terraform for "bootstrap" stage: error applying Terraform configs: failed to apply Terraform: exit status 1 
      ERROR                                              
      ERROR Error: creating Linux Virtual Machine: (Name "jima1211test-rqfhm-bootstrap" / Resource Group "jima1211test-rqfhm-rg"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="The selected VM size 'Standard_NP10s' cannot boot Hypervisor Generation '2'. If this was a Create operation please check that the Hypervisor Generation of the Image matches the Hypervisor Generation of the selected VM Size. If this was an Update operation please select a Hypervisor Generation '2' VM Size. For more information, see https://aka.ms/azuregen2vm" 
      ERROR                                              
      ERROR   with azurerm_linux_virtual_machine.bootstrap, 
      ERROR   on main.tf line 193, in resource "azurerm_linux_virtual_machine" "bootstrap": 
      ERROR  193: resource "azurerm_linux_virtual_machine" "bootstrap" { 
      ERROR                                              
      ERROR                                              
      
      seems that issue is introduced by https://github.com/openshift/installer/pull/7642/   

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

      4.15.0-0.nightly-2023-12-09-012410

      How reproducible:

      Always

      Steps to Reproduce:

          1. configure vm type to Standard_NP10s on control-plane in install-config.yaml
          2. install cluster
          3.
          

      Actual results:

          installer failed when provisioning bootstrap node

      Expected results:

          installation get successful

      Additional info:

          

            rdossant Rafael Fonseca dos Santos
            jinyunma Jinyun Ma
            Jinyun Ma Jinyun Ma
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: