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

Cluster Provisioning fails with failed to fetch instance type

XMLWordPrintable

    • Yes
    • Approved
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      Description of problem:

      Cluster Provisioning fails with the message:
      Internal error: failed to fetch instance type, this error usually occurs if the region or the instance type is not found
      
      This is likely because OCM uses GCP custom machine types, for example custom-4-16384 and now the installer is validating machine types per zone (see GetMachineTypeWithZones function), which don't include custom machine types.
      
      See https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#gcloud for more details.

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

      4.14

      How reproducible:

      Always

      Steps to Reproduce:

      ocm create cluster cluster001 --provider=gcp --ccs=true --region=us-east1 --service-account-file=token.json --version="4.14.0-0.nightly-2023-08-02-102121-nightly" 2.
      
      

      Actual results:

      Cluster installation fails 

      Expected results:

      Cluster installation succeeds

      Additional info:

       

            rdossant Rafael Fonseca dos Santos
            cveiga.openshift Cristiano Veiga
            Jianli Wei Jianli Wei
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: