Why is the OpenShift Machine Autoscaler failing to scale up nodes on GCP with a RESOURCE_USAGE_RESTRICTION_VIOLATED error?
Issue
-
OpenShiftCluster running onGoogle Cloud Platform (GCP)fails toscale up worker nodesusing theMachine Autoscaler. TheMachine APIreports a403 Forbidden error, indicating apolicy violationwith the followingmessage: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.