Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compute_instance_group import works partially and fails to persist state #2504

Closed
yhuang opened this issue Nov 20, 2018 · 4 comments · Fixed by GoogleCloudPlatform/magic-modules#1741
Labels

Comments

@yhuang
Copy link

yhuang commented Nov 20, 2018

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
  • 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.

Terraform Version

Terraform v0.11.10

  • provider.google v1.19.1

Affected Resource(s)

  • google_compute_instance_group

Debug Output

2018/11/20 20:43:24 [INFO] Terraform version: 0.11.10  17850e9a55d33c43d7c31fd6ac122ba97a51d899
2018/11/20 20:43:24 [INFO] Go runtime version: go1.11.1
2018/11/20 20:43:24 [INFO] CLI args: []string{"/usr/local/bin/hashicorp/terraform", "import", "-lock-timeout=30s", "--var-file=/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/../../../../envars/common.tfvars", "--var-file=/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/../../../../envars/prod.tfvars", "--var-file=terraform.tfvars", "google_compute_instance_group.judgement_fe_instance_group_c", "us-central1-c/judgement-fe-instance-group-c"}
2018/11/20 20:43:24 [DEBUG] Attempting to open CLI config file: /home/vagrant/.terraformrc
2018/11/20 20:43:24 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/11/20 20:43:24 [INFO] CLI command args: []string{"import", "-lock-timeout=30s", "--var-file=/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/../../../../envars/common.tfvars", "--var-file=/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/../../../../envars/prod.tfvars", "--var-file=terraform.tfvars", "google_compute_instance_group.judgement_fe_instance_group_c", "us-central1-c/judgement-fe-instance-group-c"}
2018/11/20 20:43:26 [INFO] command: backend initialized: *gcs.Backend
2018/11/20 20:43:26 [DEBUG] checking for provider in "."
2018/11/20 20:43:26 [DEBUG] checking for provider in "/usr/local/bin/hashicorp"
2018/11/20 20:43:26 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2018/11/20 20:43:26 [DEBUG] found provider "terraform-provider-google_v1.19.1_x4"
2018/11/20 20:43:26 [DEBUG] found provider "terraform-provider-template_v1.0.0_x4"
2018/11/20 20:43:26 [DEBUG] found valid plugin: "google", "1.19.1", "/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/.terraform/plugins/linux_amd64/terraform-provider-google_v1.19.1_x4"
2018/11/20 20:43:26 [DEBUG] found valid plugin: "template", "1.0.0", "/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/.terraform/plugins/linux_amd64/terraform-provider-template_v1.0.0_x4"
2018/11/20 20:43:26 [DEBUG] checking for provisioner in "."
2018/11/20 20:43:26 [DEBUG] checking for provisioner in "/usr/local/bin/hashicorp"
2018/11/20 20:43:26 [DEBUG] checking for provisioner in ".terraform/plugins/linux_amd64"
2018/11/20 20:43:26 [INFO] command: backend *gcs.Backend is not enhanced, wrapping in local
provider provider.google
2018/11/20 20:43:28 [DEBUG] resource module.set_hostname_script.data.template_file.set_hostname_script using provider provider.template
2018/11/20 20:43:28 [DEBUG] resource module.included_snippets.data.template_file.included_snippets using provider provider.template
2018/11/20 20:43:28 [DEBUG] resource module.attach_and_format_disk_script.data.template_file.attach_and_format_disk_script using provider provider.template
2018/11/20 20:43:28 [DEBUG] resource google_compute_instance.judgement_main using provider provider.google
2018/11/20 20:43:28 [DEBUG] resource google_compute_instance_group.judgement_fe_instance_group_c using provider provider.google
2018/11/20 20:43:28 [DEBUG] resource module.cloud_dns.data.google_dns_managed_zone.ptr using provider provider.google
2018/11/20 20:43:28 [DEBUG] resource module.base_grains_partial.data.template_file.base_grains_partial using provider provider.template
2018/11/20 20:43:28 [DEBUG] resource data.template_file.install_grains using provider provider.template
2018/11/20 20:43:28 [DEBUG] resource module.cloud_dns.data.google_dns_managed_zone.a using provider provider.google
2018/11/20 20:43:28 [DEBUG] resource module.cloud_dns.google_dns_record_set.a using provider provider.google
2018/11/20 20:43:28 [DEBUG] resource google_compute_instance_group.judgement_fe_instance_group_b using provider provider.google
2018/11/20 20:43:28 [DEBUG] resource google_compute_instance_group.judgement_be_instance_group_b using provider provider.google
2018/11/20 20:43:28 [DEBUG] resource google_compute_instance_group.judgement_be_instance_group_c using provider provider.google
2018/11/20 20:43:28 [TRACE] Graph after step *terraform.ProviderTransformer:

data.template_file.custom_grains_partial - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
data.template_file.install_grains - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
google_compute_instance.judgement_main - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_be_instance_group_b - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_be_instance_group_c - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_fe_instance_group_b - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_fe_instance_group_c - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c) - *terraform.graphNodeImportState
  provider.google - *terraform.NodeApplyableProvider
module.attach_and_format_disk_script.data.template_file.attach_and_format_disk_script - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
module.base_grains_partial.data.template_file.base_grains_partial - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
module.cloud_dns.data.google_dns_managed_zone.a - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.data.google_dns_managed_zone.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.google_dns_record_set.a - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.google_dns_record_set.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.included_snippets.data.template_file.included_snippets - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
module.set_hostname_script.data.template_file.set_hostname_script - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
provider.google - *terraform.NoviderTransformer:

data.template_file.custom_grains_partial - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
data.template_file.install_grains - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
google_compute_instance.judgement_main - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_be_instance_group_b - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_be_instance_group_c - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_fe_instance_group_b - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_fe_instance_group_c - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c) - *terraform.graphNodeImportState
  provider.google - *terraform.NodeApplyableProvider
module.attach_and_format_disk_script.data.template_file.attach_and_format_disk_script - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
module.base_grains_partial.data.template_file.base_grains_partial - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
module.cloud_dns.data.google_dns_managed_zone.a - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.data.google_dns_managed_zone.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.google_dns_record_set.a - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.google_dns_record_set.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.included_snippets.data.template_file.included_snippets - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
module.set_hostname_script.data.template_file.set_hostname_script - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
provider.google - *terraform.NodeApplyableProvider
provider.google (close) - *terraform.graphNodeCloseProvider
  google_compute_instance.judgement_main - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_be_instance_group_b - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_be_instance_group_c - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_b - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_c - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c) - *terraform.graphNodeImportState
  module.cloud_dns.data.google_dns_managed_zone.a - *terraform.NodeAbstractResource
  module.cloud_dns.data.google_dns_managed_zone.ptr - *terraform.NodeAbstractResource
  module.cloud_dns.google_dns_record_set.a - *terraform.NodeAbstractResource
  module.cloud_dns.google_dns_record_set.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
provider.template - *terraform.NodeApplyableProvider
provider.template (close) - *terraform.graphNodeCloseProvider
  data.template_file.custom_grains_partial - *terraform.NodeAbstractResource
  data.template_file.install_grains - *terraform.NodeAbstractResource
  module.attach_and_format_disk_script.data.template_file.attach_and_format_disk_script - *terraform.NodeAbstractResource
  module.base_grains_partial.data.template_file.base_grains_partial - *terraform.NodeAbstractResource
  module.included_snippets.data.template_file.included_snippets - *terraform.NodeAbstractResource
  module.set_hostname_script.data.template_file.set_herraform.NodeApplyableProvider
module.cloud_dns.google_dns_record_set.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.included_snippets.data.template_file.included_snippets - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
module.set_hostname_script.data.template_file.set_hostname_script - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
provider.google - *terraform.NodeApplyableProvider
provider.google (close) - *terraform.graphNodeCloseProvider
  google_compute_instance.judgement_main - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_be_instance_group_b - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_be_instance_group_c - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_b - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_c - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c) - *terraform.graphNodeImportState
  module.cloud_dns.data.google_dns_managed_zone.a - *terraform.NodeAbstractResource
  module.cloud_dns.data.google_dns_managed_zone.ptr - *terraform.NodeAbstractResource
  module.cloud_dns.google_dns_record_set.a - *terraform.NodeAbstractResource
  module.cloud_dns.google_dns_record_set.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
provider.template - *terraform.NodeApplyableProvider
provider.template (close) - *terraform.graphNodeCloseProvider
  data.template_file.custom_grains_partial - *terraform.NodeAbstractResource
  data.template_file.install_grains - *terraform.NodeAbstractResource
  module.attach_and_format_disk_script.data.template_file.attach_and_format_disk_script - *terraform.NodeAbstractResource
  module.base_grains_partial.data.template_file.base_grains_partial - *terraform.NodeAbstractRed_zone.a - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.data.google_dns_managed_zone.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.google_dns_record_set.a - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.cloud_dns.google_dns_record_set.ptr - *terraform.NodeAbstractResource
  provider.google - *terraform.NodeApplyableProvider
module.included_snippets.data.template_file.included_snippets - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
module.set_hostname_script.data.template_file.set_hostname_script - *terraform.NodeAbstractResource
  provider.template - *terraform.NodeApplyableProvider
provider.google - *terraform.NodeApplyableProvider
provider.google (close) - *terraform.graphNodeCloseProvider
  google_compute_instance.judgement_main - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_be_instance_group_b - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_be_instance_group_c - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_b - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_c - *terraform.NodeAbstractResource
  google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c) - *terraform.graphNodeImportState
  module.cloud_dns.data.google_dns_managed_zone.a - *terraform.NodeAbstractResource
  module.cloud_dns.data.google_dns_managed_zone.ptr - *terraform.NodeAbstractResource
  module.cloud_dns.google_dns_record_set.a - *terraform.NodeAbstractResource
  module.cloud_dns.google_dns_record_set.ptr - *terraform.NodeAbstractResource
provider.template - *terraform.NodeApplyableProvider
provider.template (close) - *terraform.graphNodeCloseProvider
  data.template_file.custom_grains_partial - *terraform.NodeAbstractResource
  data.template_file.install_grains - *terraform.NodeAbstractResource
  module.attach_and_format_disk_script.data.template_file.attach_and_format_disk_script - *terraform.NodeAbstractResource
  module.base_grains_partial.data.template_file.base_grains_partial - *terraform.NodeAbstractResource
  module.included_snippets.data.template_file.included_snippets - *terraform.NodeAbstractResource
  module.set_hostname_script.data.template_file.set_hostname_script - *terraform.NodeAbstractResource
root - terraform.graphNodeRoot
  provider.google (close) - *terraform.graphNodeCloseProvider
  provider.template (close) - *terraform.graphNodeCloseProvider
2018/11/20 20:43:28 [DEBUG] Starting graph walk: walkImport
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "module.cloud_dns.google_dns_record_set.a"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c)"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "data.template_file.custom_grains_partial"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "module.attach_and_format_disk_script.data.template_file.attach_and_format_disk_script"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "google_compute_instance.judgement_main"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "google_compute_instance_group.judgement_fe_instance_group_c"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "module.included_snippets.data.template_file.included_snippets"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "data.template_file.install_grains"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "module.cloud_dns.data.google_dns_managed_zone.a"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "google_compute_instance_group.judgement_be_instance_group_b"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "google_compute_instance_group.judgement_be_instance_group_c"
2018/11/20 20:43:28 [TRACE] dag/walk: added new vertex: "prov2018-11-20T20:43:28.457Z [DEBUG] plugin: waiting for RPC address: path=/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/.terraform/plugins/linux_amd64/terraform-provider-google_v1.19.1_x4
2018/11/20 20:43:28 [TRACE] dag/walk: walking "provider.template"
2018/11/20 20:43:28 [TRACE] vertex 'root.provider.template': walking
2018/11/20 20:43:28 [TRACE] vertex 'root.provider.template': evaluating
2018/11/20 20:43:28 [TRACE] [walkImport] Entering eval tree: provider.template
2018/11/20 20:43:28 [TRACE] root: eval: *terraform.EvalSequence
2018/11/20 20:43:28 [TRACE] root: eval: *terraform.EvalInitProvider
2018-11-20T20:43:28.463Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: plugin address: timestamp=2018-11-20T20:43:28.463Z address=/tmp/plugin050783000 network=unix
2018-11-20T20:43:28.468Z [DEBUG] plugin: waiting for RPC address: path=/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/.terraform/plugins/linux_amd64/terraform-provider-template_v1.0.0_x4
2018-11-20T20:43:28.471Z [DEBUG] plugin.terraform-provider-template_v1.0.0_x4: 2018/11/20 20:43:28 [DEBUG] plugin: plugin address: unix /tmp/plugin448366511
google_compute_instance_group.judgement_fe_instance_group_c: Importing from ID "us-central1-c/judgement-fe-instance-group-c"...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Authenticating using DefaultClient
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating GCE client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating GCE Beta client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating GKE client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating GKE Beta client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud DNS client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud DNS Beta client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud KMS Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Stackdriver Logging client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Storage Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google SqlAdmin Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Pubsub Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Dataflow Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Redis Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud ResourceManager Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud ResourceManager V Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Runtimeconfig Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud IAM Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Service Management Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Service Usage Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Billing Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Build Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud BigQuery Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud CloudFunctions Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Source Repo Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Spanner Client...
2018-11-20T20:43:28.474Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud Dataproc Client...
2018-11-20T20:43:28.475Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Google Cloud IoT Core Client...
2018-11-20T20:43:28.475Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating App Engine Client...
2018-11-20T20:43:28.475Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [INFO] Instantiating Cloud Composer Client...
2018/11/20 20:43:28 [TRACE] [walkImport] Exiting eval tree: provider.google
2018/11/20 20:43:28 [TRACE] dag/walk: walking "module.cloud_dns.google_dns_record_set.a"
2018/11/20 20:43:28 [TRACE] vertex 'root.module.cloud_dns.google_dns_record_set.a': walking
2018/11/20 20:43:28 [TRACE] dag/walk: walking "google_compute_instance.judgement_main"
2018/11/20 20:43:28 [TRACE] vertex 'root.google_compute_instance.judgement_main': walking
2018/11/20 20:43:28 [TRACE] dag/walk: walking "google_compute_instance_group.judgement_fe_instance_group_b"
2018/11/20 20:43:28 [TRACE] vertex 'root.google_compute_instance_group.judgement_fe_instance_group_b': walking
2018/11/20 20:43:28 [TRACE] dag/walk: walking "google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c)"
2018/11/20 20:43:28 [TRACE] vertex 'root.google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c)': walking
2018/11/20 20:43:28 [TRACE] vertex 'root.google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c)': evaluating
2018/11/20 20:43:28 [TRACE] [walkImport] Entering eval tree: google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c)
2018/11/20 20:43:28 [TRACE] root: eval: *terraform.EvalSequence
2018/11/20 20:43:28 [TRACE] root: eval: *terraform.EvalGetProvider
2018/11/20 20:43:28 [TRACE] root: eval: *terraform.EvalImportState
2018/11/20 20:43:28 [TRACE] dag/walk: walking "google_compute_instance_group.judgement_fe_instance_group_c"
2018/11/20 20:43:28 [TRACE] vertex 'root.google_compute_instancegoogle_compute_instance_group.judgement_fe_instance_group_c: Import complete!
  Imported google_compute_instance_group (ID: us-central1-c/judgement-fe-instance-group-c)
google_compute_instance_group.judgement_fe_instance_group_c: Refreshing state... (ID: us-central1-c/judgement-fe-instance-group-c)
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [DEBUG] Google API Request Details:
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: ---[ REQUEST ]---------------------------------------
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: GET /compute/v1/projects/terraform-admin/zones/us-central1-c/instanceGroups/judgement-fe-instance-group-c?alt=json HTTP/1.1
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Host: www.googleapis.com
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: User-Agent: google-api-go-client/0.5 Terraform/0.11.7 (+https://www.terraform.io)
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Accept-Encoding: gzip
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:
2018-11-20T20:43:28.479Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: -----------------------------------------------------

Error: google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c): 1 error(s) occurred:

* import google_compute_instance_group.judgement_fe_instance_group_c result: us-central1-c/judgement-fe-instance-group-c: import google_compute_instance_group.judgement_fe_instance_group_c (id: us-central1-c/judgement-fe-instance-group-c): Terraform detected a resource with this ID doesn't
exist. Please verify the ID is correct. You cannot import non-existent
resources using Terraform import.


2018-11-20T20:43:28.969Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [DEBUG] Google API Response Details:
2018-11-20T20:43:28.969Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: ---[ RESPONSE ]--------------------------------------
2018-11-20T20:43:28.969Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: HTTP/2.0 404 Not Found
2018-11-20T20:43:28.969Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
2018-11-20T20:43:28.969Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Cache-Control: private, max-age=0
2018-11-20T20:43:28.969Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Content-Type: application/json; charset=UTF-8
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Date: Tue, 20 Nov 2018 20:43:28 GMT
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Expires: Tue, 20 Nov 2018 20:43:28 GMT
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Server: GSE
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Vary: Origin
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: Vary: X-Origin
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: X-Content-Type-Options: nosniff
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: X-Frame-Options: SAMEORIGIN
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: X-Xss-Protection: 1; mode=block
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: {
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:  "error": {
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:   "errors": [
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:    {
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:     "domain": "global",
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:     "reason": "notFound",
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:     "message": "The resource 'projects/terraform-admin/zones/us-central1-c/instanceGroups/judgement-fe-instance-group-c' was not found"
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:    }
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:   ],
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:   "code": 404,
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:   "message": "The resource 'projects/terraform-admin/zones/us-central1-c/instanceGroups/judgement-fe-instance-group-c' was not found"
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:  }
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: }
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4:
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: -----------------------------------------------------
2018-11-20T20:43:28.970Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:28 [WARN] Removing Instance Group "judgement-fe-instance-group-c" because it's gone
2018/11/20 20:43:28 [TRACE] root: eval: *terraform.EvalImportStateVerify
2018/11/20 20:43:28 [ERROR] root: eval: *terraform.EvalImportStateVerify, err: import google_compute_instance_group.judgement_fe_instance_group_c (id: us-central1-c/judgement-fe-instance-group-c): Terraform detected a resource with this ID doesn't
exist. Please verify the ID is correct. You cannot import non-existent
resources using Terraform import.
2018/11/20 20:43:28 [ERROR] root: eval: *terraform.EvalSequence, err: import google_compute_instance_group.judgement_fe_instance_group_c (id: us-central1-c/judgement-fe-instance-group-c): Terraform detected a resource with this ID doesn't
ex2018/11/20 20:43:29 [DEBUG] plugin: waiting for all plugin processes to complete...
2018-11-20T20:43:29.149Z [DEBUG] plugin: plugin process exited: path=/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/.terraform/plugins/linux_amd64/terraform-provider-template_v1.0.0_x4
2018-11-20T20:43:29.149Z [DEBUG] plugin.terraform-provider-google_v1.19.1_x4: 2018/11/20 20:43:29 [ERR] plugin: plugin server: accept unix /tmp/plugin050783000: use of closed network connection
2018-11-20T20:43:29.149Z [DEBUG] plugin: plugin process exited: path=/home/vagrant/workspace/cloud_master-mold/tf-base/zones/front-end/ephemeral/judgement/.terraform/plugins/linux_amd64/terraform-provider-google_v1.19.1_x4

Expected Behavior

google_compute_instance_group imported

Actual Behavior

google_compute_instance_group.judgement_fe_instance_group_c: Importing from ID "us-central1-c/judgement-fe-instance-group-c"...
google_compute_instance_group.judgement_fe_instance_group_c: Import complete!
Imported google_compute_instance_group (ID: us-central1-c/judgement-fe-instance-group-c)
google_compute_instance_group.judgement_fe_instance_group_c: Refreshing state... (ID: us-central1-c/judgement-fe-instance-group-c)

Error: google_compute_instance_group.judgement_fe_instance_group_c (import id: us-central1-c/judgement-fe-instance-group-c): 1 error(s) occurred:

  • import google_compute_instance_group.judgement_fe_instance_group_c result: us-central1-c/judgement-fe-instance-group-c: import google_compute_instance_group.judgement_fe_instance_group_c (id: us-central1-c/judgement-fe-instance-group-c): Terraform detected a resource with this ID doesn't
    exist. Please verify the ID is correct. You cannot import non-existent
    resources using Terraform import.

Steps to Reproduce

Following the instruction documented on [Terraform's page for the compute_instance_group resource]
(https://www.terraform.io/docs/providers/google/r/compute_instance_group.html), the import was triggered via the CLI:

terraform import google_compute_instance_group.<resource_id> <zone>/<resource_name>
@ghost ghost added the bug label Nov 20, 2018
@danawillow
Copy link
Contributor

@yhuang and I talked about having him attempt this, so assigning to hashibot to claim it.

Jimmy, if you decide not to work on it feel free to comment and I can unassign it so our bug onduty picks it up.

@danawillow
Copy link
Contributor

Hey @yhuang, you still planning on working on this or should we have someone from our side take a look?

@yhuang
Copy link
Author

yhuang commented Dec 17, 2018

@danawillow : I have not been able to do much with this issue, so please do have someone on your side move forward with this issue. Thank you for checking.

@ghost
Copy link

ghost commented Jun 8, 2019

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.

If 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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants