Troubleshooting Google Cloud permissions and networking

Use the symptom, the cause, and the fix to resolve common permission, quota, and networking errors when Cloudera Cloud Factory provisions clusters on Google Cloud.

Table 1. Common Google Cloud errors
SymptomCauseFix
Provisioning fails with 403: Required '[***PERMISSION***]' permission. The permission is missing from the custom role of the service account, or the role is not bound to the service account. Add the permission to the custom role, run gcloud iam roles update, and wait about 2 minutes.
Provisioning fails with 403: SERVICE_DISABLED on filestore.instances.list. The Cloud Filestore API is not enabled in the service project. Enable the Cloud Filestore API, file.googleapis.com, in the service project.
Provisioning fails with 403: cannot create firewall in project [***HOST PROJECT ID***]. The role bindings on the host project are not in place yet. Send the host project permission request to the administrator of the host project.
A Kubernetes Service of type LoadBalancer stays with EXTERNAL-IP <pending>, and the cloud-controller-manager logs show 403 Required 'compute.firewalls.get' permission for 'projects/[***HOST PROJECT ID***]/global/firewalls/k8s-fw-*'. The service account lacks firewall permissions on the host project at runtime. The cloud-controller-manager uses the same service account that provisions the cluster. Send the host project permission request to the administrator of the host project. The GKEFWRole binding covers firewall management both during provisioning and at runtime.
A Kubernetes Service of type LoadBalancer stays pending, and the cloud-controller-manager logs show 404: The resource 'projects/[***SERVICE PROJECT ID***]/global/networks/[***VPC NAME***]' was not found. The cloud-config secret of the cloud-controller-manager is missing the network-project-id value, so the cloud-controller-manager looks for the network in the service project instead of the host project. Redeploy the Compute Engine cloud provider add-on so that the secret is generated again. On a cluster that is already affected, add network-project-id with the host project ID to the kube-system/cloud-config secret, and restart the cloud-controller-manager DaemonSet.
Virtual machine creation fails with Required 'compute.subnetworks.use' permission. The service account lacks the roles/compute.networkUser role on the host project. Ask the administrator of the host project to confirm the roles/compute.networkUser binding in the host project permission request.
Provisioning fails with Quota 'FIREWALLS' exceeded. The host network reached the default limit of 250 firewall rules. Request a quota increase in the Google Cloud console.
An IAM binding does not take effect immediately. IAM changes are eventually consistent and take time to propagate. Wait 1 to 2 minutes, and try again.
You cannot recreate a custom role that you deleted. Google Cloud keeps deleted custom roles for 7 days before it permanently deletes them. Use a new role ID, or restore the role with gcloud iam roles undelete.