Why is the OpenShift Machine Autoscaler failing to scale up nodes on GCP with a RESOURCE_USAGE_RESTRICTION_VIOLATED error?

Solution Verified - Updated -

Issue

  • OpenShift Cluster running on Google Cloud Platform (GCP) fails to scale up worker nodes using the Machine Autoscaler. The Machine API reports a 403 Forbidden error, indicating a policy violation with the following message:

    worker-node: reconciler failed to Create machine: error launching instance: googleapi: Error 403: Request is disallowed by organization's constraints/gcp.restrictServiceUsage constraint for 'projects/rhcos-cloud' attempting to use service 'compute.googleapis.com'. Details: [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "domain": "googleapis.com", "metadata": { "consumer": "projects/rhcos-cloud", "service": "compute.googleapis.com" }, "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED" }, { "@type": "type.googleapis.com/google.rpc.LocalizedMessage", "locale": "en-US", "message": "Request is disallowed by organization's constraints/gcp.restrictServiceUsage constraint for 'projects/rhcos-cloud' attempting to use service 'compute.googleapis.com'." } ] , forbidden
    

Environment

  • Red Hat OpenShift Container Platform 4.x
  • Google Cloud Platform (GCP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content