{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/2022","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/2022/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/2022/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/2022/events","html_url":"https://github.com/terraform-providers/terraform-provider-google/issues/2022","id":358987416,"node_id":"MDU6SXNzdWUzNTg5ODc0MTY=","number":2022,"title":"Impossible to reliably create a GKE cluster using terraform","user":{"login":"vncntvandriessche","id":516303,"node_id":"MDQ6VXNlcjUxNjMwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/516303?v=4","gravatar_id":"","url":"https://api.github.com/users/vncntvandriessche","html_url":"https://github.com/vncntvandriessche","followers_url":"https://api.github.com/users/vncntvandriessche/followers","following_url":"https://api.github.com/users/vncntvandriessche/following{/other_user}","gists_url":"https://api.github.com/users/vncntvandriessche/gists{/gist_id}","starred_url":"https://api.github.com/users/vncntvandriessche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vncntvandriessche/subscriptions","organizations_url":"https://api.github.com/users/vncntvandriessche/orgs","repos_url":"https://api.github.com/users/vncntvandriessche/repos","events_url":"https://api.github.com/users/vncntvandriessche/events{/privacy}","received_events_url":"https://api.github.com/users/vncntvandriessche/received_events","type":"User","site_admin":false},"labels":[{"id":620326519,"node_id":"MDU6TGFiZWw2MjAzMjY1MTk=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/labels/bug","name":"bug","color":"f7c6c7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-11T10:37:40Z","updated_at":"2018-09-12T18:30:49Z","closed_at":null,"author_association":"NONE","body":"<!--- Please leave this line, it helps our automation: [issue-type:bug-report] --->\r\n<!--- Please keep this note for the community --->\r\n\r\n### Community Note\r\n\r\n* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request\r\n* Please do not leave \"+1\" or \"me too\" comments, they generate extra noise for issue followers and do not help prioritize the request\r\n* If you are interested in working on this issue or have submitted a pull request, please leave a comment\r\n* If an issue is assigned to the \"modular-magician\" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to \"hashibot\", a community member has claimed the issue already.\r\n\r\n<!--- Thank you for keeping this note for the community --->\r\n\r\n### Terraform Version\r\n\r\n```\r\n❯❯❯ terraform -v\r\nTerraform v0.11.8\r\n+ provider.google v1.17.1\r\n```\r\n\r\n### Affected Resource(s)\r\n\r\nAs far as I've tested, the following resources at the least are affected:\r\n- `google_container_cluster`\r\n- `google_container_node_pool`\r\n\r\n### Terraform Configuration Files\r\n\r\n<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code --->\r\n\r\n```tf\r\nprovider \"google\" {\r\n  credentials = \"${file(\".account.json\")}\"\r\n  project     = \"example-001\"\r\n  region      = \"europe-west1\"\r\n}\r\n\r\nresource \"google_container_cluster\" \"production-001\" {\r\n  name               = \"production-001\"\r\n  zone               = \"europe-west1-c\"\r\n  initial_node_count = 3\r\n\r\n  node_config {\r\n    oauth_scopes = [\r\n      \"https://www.googleapis.com/auth/logging.write\",\r\n      \"https://www.googleapis.com/auth/monitoring\",\r\n    ]\r\n  }\r\n}\r\n\r\nresource \"google_container_node_pool\" \"webpool-001\" {\r\n  name    = \"webpool-001\"\r\n  cluster = \"${google_container_cluster.production-001.name}\"\r\n  zone    = \"europe-west1-c\"\r\n\r\n  node_config {\r\n    machine_type = \"n1-standard-1\"\r\n    oauth_scopes = [\r\n      \"https://www.googleapis.com/auth/logging.write\",\r\n      \"https://www.googleapis.com/auth/monitoring\",\r\n    ]\r\n  }\r\n\r\n  node_count = 3\r\n  autoscaling {\r\n    min_node_count = 3\r\n    max_node_count = 10\r\n  }\r\n\r\n  management {\r\n    auto_repair  = false\r\n    auto_upgrade = false\r\n  }\r\n}\r\n```\r\n\r\n### Debug Output\r\n\r\n<!---\r\nPlease provide a link to a GitHub Gist containing the complete debug output. Please do NOT paste the debug output in the issue; just paste a link to the Gist.\r\n\r\nTo obtain the debug output, see the [Terraform documentation on debugging](https://www.terraform.io/docs/internals/debugging.html).\r\n--->\r\n\r\nhttps://gist.github.com/vncntvandriessche/84c404a4950eb35abe6b3099ef8cc435\r\n\r\n### Panic Output\r\n\r\n<!--- If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the `crash.log`. --->\r\n\r\n### Expected Behavior\r\n\r\nI expected terraform to build the GKE cluster and attach the matching node pool without failures due to api errors.\r\n\r\n### Actual Behavior\r\n\r\nWe are getting a broken TF-state due to the api reporting an error\r\n\r\n### Steps to Reproduce\r\n\r\n<!--- Please list the steps required to reproduce the issue. --->\r\n\r\n1. `terraform init`\r\n2. `terraform apply`\r\n\r\n### Important Factoids\r\n\r\n<!--- Are there anything atypical about your accounts that we should know? For example: authenticating as a user instead of a service account? --->\r\n\r\n- If we run apply again after this failure, terraform will fail due to the pool already existing, but it's not been registered into the state.\r\n\r\n### References\r\n\r\n<!---\r\nInformation about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests\r\n\r\nAre there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor documentation? For example:\r\n--->\r\n\r\n* #0000\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/comments/420751846","html_url":"https://github.com/terraform-providers/terraform-provider-google/issues/2022#issuecomment-420751846","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/2022","id":420751846,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDc1MTg0Ng==","user":{"login":"directionless","id":179542,"node_id":"MDQ6VXNlcjE3OTU0Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/179542?v=4","gravatar_id":"","url":"https://api.github.com/users/directionless","html_url":"https://github.com/directionless","followers_url":"https://api.github.com/users/directionless/followers","following_url":"https://api.github.com/users/directionless/following{/other_user}","gists_url":"https://api.github.com/users/directionless/gists{/gist_id}","starred_url":"https://api.github.com/users/directionless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/directionless/subscriptions","organizations_url":"https://api.github.com/users/directionless/orgs","repos_url":"https://api.github.com/users/directionless/repos","events_url":"https://api.github.com/users/directionless/events{/privacy}","received_events_url":"https://api.github.com/users/directionless/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T18:30:49Z","updated_at":"2018-09-12T18:30:49Z","author_association":"NONE","body":"Testing some more.... the `google_container_cluster` seems fine, it's the addition of `google_container_node_pool` that causes errors.\r\n\r\nIf I comment out `google_container_node_pool` it applies fine. I get a GKE cluster, etc. But if I add that back in the apply bombs out at 13min, the node pool is created anyhow. Subsequent applies remove the prior node pool, then timeout at 13min and repeat the cycle"}}
{"actor":{"display_login":"directionless"}}