Assigned
Status Update
Comments
ba...@google.com <ba...@google.com>
on...@google.com <on...@google.com> #2
I had the same problem!
I could solve it by putting the .aidl file in an aidl directory.
Look at the attached screenshot to see the project structure.
I could solve it by putting the .aidl file in an aidl directory.
Look at the attached screenshot to see the project structure.
Description
We need to enable GKE logging to specific node-pools in our GKE cluster and do not enable for others. But at the moment, enabling it require to recreate all node-pools. Which will cause the lost of the nodes and pods accordingly.
Here is the terragrunt/terraform message:
```
17:54:52.560 STDOUT terraform: module.cluster.google_container_cluster.primary: Modifying... [id=projects/kareo-cloud-sbx/locations/us-west2/clusters/sbx-cluster]
17:54:53.239 STDERR terraform: ╷
17:54:53.239 STDERR terraform: │ Error: googleapi: Error 400: Node pools [default-pool, harness-pool] require at least one of the following scopes: [
17:54:53.240 STDERR terraform: │ Details:
17:54:53.240 STDERR terraform: │ [
17:54:53.240 STDERR terraform: │ {
17:54:53.240 STDERR terraform: │ "@type": "
17:54:53.240 STDERR terraform: │ "requestId": "0x71e3215ebd6672bd"
17:54:53.240 STDERR terraform: │ }
17:54:53.240 STDERR terraform: │ ]
17:54:53.240 STDERR terraform: │ , badRequest
17:54:53.240 STDERR terraform: │
17:54:53.240 STDERR terraform: │ with module.cluster.google_container_cluster.primary,
17:54:53.240 STDERR terraform: │ on .terraform/modules/cluster/modules/beta-private-cluster/
17:54:53.240 STDERR terraform: │ 22: resource "google_container_cluster" "primary" {
17:54:53.240 STDERR terraform: │
17:54:53.240 STDERR terraform: ╵
17:54:53.331 ERROR tofu invocation failed in ./.terragrunt-cache/M_1ZTs5z_3AuFE1-w2jIvDFRJ8U/QBHv3on8Tl99TjXKwbg0OLzbi34
17:54:53.331 ERROR error occurred:
* Failed to execute "terraform apply" in ./.terragrunt-cache/M_1ZTs5z_3AuFE1-w2jIvDFRJ8U/QBHv3on8Tl99TjXKwbg0OLzbi34
╷
│ Error: googleapi: Error 400: Node pools [default-pool, harness-pool] require at least one of the following scopes: [
│ Details:
│ [
│ {
│ "@type": "
│ "requestId": "0x71e3215ebd6672bd"
│ }
│ ]
│ , badRequest
│
│ with module.cluster.google_container_cluster.primary,
│ on .terraform/modules/cluster/modules/beta-private-cluster/
│ 22: resource "google_container_cluster" "primary" {
│
```
What you expected to happen:
- With existing node-pools a and b, create new node-pool c.
- Enable GKE logging for node-pools c.
- Move all pods to node-pool c.
- Enable GKE logging for node-pools a and b, or remove both, or enable for a and remove b.
Steps to reproduce:
Try to enable GKE logging for the cluster where more that one node-pool without recreation of all node-pools
Other information (workarounds you have tried, documentation consulted, etc):
- None