picatz / terraform-google-nomad

📗 Terraform Module for Nomad clusters with Consul on GCP
https://registry.terraform.io/modules/picatz/nomad/google
MIT License
78 stars 16 forks source link

Stackdriver Logging agent error, VMs have insufficient authentication scopes #11

Closed picatz closed 4 years ago

picatz commented 4 years ago

All nodes within the cluster are configured with the google-fluentd Stackdriver Logging agent. When looking at the logs from the agent, I'm getting the following errors:

$ cat /var/log/google-fluentd/google-fluentd.log 
2020-07-12 18:15:56 +0000 [warn]: Failed to extract log entry errors from the error details: "Request had insufficient authentication scopes.". error_class=JSON::ParserError error="String"
...

☝️ This also means the VM instance logs aren't available in the GCP console.

I think I need to expand the service_accounts.scopes for VMs to also include a logging scope to fix this error.