Troubleshooting Google Cloud DNS credentials

Use the message, the cause, and the fix to resolve errors when you add a Google Cloud DNS credential or when DNS records do not appear in the zone.

Common errors

Table 1. Google Cloud DNS errors
Message or symptomCause and fix
GCP Cloud DNS credential check failed: Credentials are valid but lack required DNS permissions (HTTP 403)The key works, but the service account cannot list the managed zones. Grant the DNS Administrator role (roles/dns.admin) on the project, not only on the zone.
GCP Cloud DNS credential check failed: Authentication failed (invalid or expired credentials) (HTTP 401)The key was deleted or disabled, or it belongs to a deleted service account. Create a new key, delete the DNS credential, and add it again.
No managed zone for 'domain' was found in project 'project'The domain is not exactly the DNS name of the zone, the project ID is wrong, or the zone is in another project.
Service account JSON is not valid JSON. or Service account JSON must include client_email.Paste the whole key file, unchanged.
Records do not appear in the zone.Check the external-dns logs, as described in Adding a Google Cloud DNS credential. Check that the host name is inside the zone of the credential.

Known limitations

  • To rotate the key, delete the DNS credential and add it again.
  • Cloudera Cloud Factory requires the roles/dns.admin role on the project. A role that you grant only on the zone is rejected when you save the credential.
  • Do not keep a private managed zone with the same DNS name as the public zone in the same project. external-dns might write records into both zones, public resolution can fail, and record deletion can fail for several minutes.
  • Workload identity is not supported yet. Use static credentials.
  • The form accepts service account email addresses that Cloudera Cloud Factory then rejects, for example addresses with uppercase letters or underscores, so a wrong address fails only when you save. Use the lowercase format name@project.iam.gserviceaccount.com.
  • When you disable DNS on a project, Cloudera Cloud Factory does not clean up the records in the Google Cloud DNS zone. Before you disable DNS, delete the Ingresses, Services, and DNSEndpoints of the project and wait until external-dns reconciles. Delete any records that remain by hand. To list the records, run gcloud dns record-sets list --zone zone --project project-id.