{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1768","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/1768/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1768/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1768/events","html_url":"https://github.com/terraform-providers/terraform-provider-google/issues/1768","id":340926210,"node_id":"MDU6SXNzdWUzNDA5MjYyMTA=","number":1768,"title":"Missing allow_stopping_for_update into google_compute_instance_template","user":{"login":"Maxime-SIQUIER","id":11921949,"node_id":"MDQ6VXNlcjExOTIxOTQ5","avatar_url":"https://avatars1.githubusercontent.com/u/11921949?v=4","gravatar_id":"","url":"https://api.github.com/users/Maxime-SIQUIER","html_url":"https://github.com/Maxime-SIQUIER","followers_url":"https://api.github.com/users/Maxime-SIQUIER/followers","following_url":"https://api.github.com/users/Maxime-SIQUIER/following{/other_user}","gists_url":"https://api.github.com/users/Maxime-SIQUIER/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxime-SIQUIER/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxime-SIQUIER/subscriptions","organizations_url":"https://api.github.com/users/Maxime-SIQUIER/orgs","repos_url":"https://api.github.com/users/Maxime-SIQUIER/repos","events_url":"https://api.github.com/users/Maxime-SIQUIER/events{/privacy}","received_events_url":"https://api.github.com/users/Maxime-SIQUIER/received_events","type":"User","site_admin":false},"labels":[{"id":620326525,"node_id":"MDU6TGFiZWw2MjAzMjY1MjU=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/labels/enhancement","name":"enhancement","color":"d4c5f9","default":true},{"id":623652366,"node_id":"MDU6TGFiZWw2MjM2NTIzNjY=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/labels/waiting-response","name":"waiting-response","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-13T08:21:27Z","updated_at":"2018-11-17T14:07:45Z","closed_at":"2018-07-19T09:20:36Z","author_association":"NONE","body":"### Terraform Version\r\n```\r\nTerraform v0.10.7\r\n+ provider-google-version 1.16.0\r\n```\r\n\r\n\r\n\r\n### Affected Resource(s)\r\n- google_compute_instance_template\r\n\r\n\r\n### Terraform Configuration Files\r\n```\r\nresource \"google_compute_instance_template\" \"openshift_node\" {\r\n  name_prefix               = \"${var.stack_name}-ose3-${var.cluster_name}-${var.node_name_suffix}\"\r\n  region                    = \"${var.gce_region}\"\r\n  machine_type              = \"${var.node_flavor_name}\"\r\n  min_cpu_platform          = \"${var.node_min_cpu_platform}\"\r\n\r\n  scheduling {\r\n    automatic_restart = \"${lookup(var.preemptible_auto_restart, var.node_is_preemptible)}\"\r\n    preemptible       = \"${lookup(var.true_false, var.node_is_preemptible)}\"\r\n  }\r\n\r\n  disk {\r\n    disk_type    = \"${var.node_disk_type}\"\r\n    source_image = \"${var.node_image_id}\"\r\n    boot         = true\r\n    disk_size_gb = \"${var.node_disk_size}\"\r\n  }\r\n\r\n  network_interface {\r\n    # Providing both ID's (network together with subnetwork) is not supported.\r\n    # Giving subnetwork a higher precedence.\r\n    network = \"${var.subnetwork_id == \"\" ? var.network_id : \"\"}\"\r\n\r\n    subnetwork         = \"${var.subnetwork_id}\"\r\n    subnetwork_project = \"${var.subnetwork_project}\"\r\n  }\r\n\r\n  metadata {\r\n    \"stackname\"      = \"${var.stack_name}\"\r\n    \"host-type\"      = \"node\"\r\n    \"env-host-type\"  = \"${var.stack_name}-openshift-${var.node_subtype}\"\r\n    \"sub-host-type\"  = \"compute\"\r\n    \"is-preemptible\" = \"${lookup(var.yes_no, var.node_is_preemptible)}\"\r\n    \"clusterid\"      = \"${var.stack_name}-${var.cluster_name}\"\r\n    \"consul_ready\"   = \"${var.consul_ready}\"\r\n  }\r\n\r\n  # This section might be updated soon on openshift-ansible\r\n  # Tags are used by openshift-ansible on GCE (not byo mode)\r\n  tags = [\r\n    \"${var.cluster_tag}\",\r\n    \"${local.nodetype_id}\",\r\n    \"host-type-node\",\r\n    \"sub-host-type-compute\",\r\n    \"${var.stack_name}-${var.cluster_name}-${local.role}-${var.node_subtype_name}\",\r\n    \"${var.stack_name}\",\r\n  ]\r\n\r\n  metadata {\r\n    startup-script = \"${data.template_file.openshift_node_user_data.rendered}\"\r\n  }\r\n\r\n  service_account {\r\n    email  = \"${var.service_account_email}\"\r\n    scopes = [\"useraccounts-ro\", \"compute-rw\", \"storage-rw\", \"logging-write\", \"monitoring-write\", \"service-management\", \"service-control\"]\r\n  }\r\n\r\n  # 1 if number of nodes > 0, otherwise 0\r\n  count = \"${var.node_count > 0 ? 1 : 0}\"\r\n\r\n  lifecycle {\r\n    create_before_destroy = true\r\n  }\r\n\r\n  allow_stopping_for_update = true\r\n}\r\n```\r\n\r\n### Debug Output\r\nN/A\r\n\r\n### Panic Output\r\nN/A\r\n\r\n### Expected Behavior\r\nI should be able to set allow_stopping_for_update into google_compute_instance_template\r\n\r\n### Actual Behavior\r\nI am not able to set allow_stopping_for_update into google_compute_instance_template and it generate the follwing error when I perform a terraform validate : \r\n```\r\nErrors:\r\n\r\n  * module.ext-a.module.minions-compute.google_compute_instance_template.openshift_node: : invalid or unknown key: allow_stopping_for_update\r\n```\r\n\r\n\r\n\r\n### Steps to Reproduce\r\nPlease list the steps required to reproduce the issue, for example:\r\n1. `terraform validate`\r\n\r\n### Important Factoids\r\nN/A\r\n\r\n### References\r\nI think that the bug has been introduced with the following PR : https://github.com/terraform-providers/terraform-provider-google/pull/1005\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/comments/439619622","html_url":"https://github.com/terraform-providers/terraform-provider-google/issues/1768#issuecomment-439619622","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1768","id":439619622,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTYxOTYyMg==","user":{"login":"hashibot[bot]","id":35615658,"node_id":"MDM6Qm90MzU2MTU2NTg=","avatar_url":"https://avatars2.githubusercontent.com/in/8332?v=4","gravatar_id":"","url":"https://api.github.com/users/hashibot%5Bbot%5D","html_url":"https://github.com/apps/hashibot","followers_url":"https://api.github.com/users/hashibot%5Bbot%5D/followers","following_url":"https://api.github.com/users/hashibot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/hashibot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/hashibot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashibot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/hashibot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/hashibot%5Bbot%5D/repos","events_url":"https://api.github.com/users/hashibot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/hashibot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-11-17T14:07:45Z","updated_at":"2018-11-17T14:07:45Z","author_association":"NONE","body":"I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.\n\nIf you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉  , please reach out to my human friends 👉  hashibot-feedback@hashicorp.com. Thanks!"}}
{"actor":{"display_login":"hashibot"}}