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

BackendService crash from blank IAP value in 2.4.0 #3441

Closed
spil-jiel opened this issue Apr 16, 2019 · 3 comments · Fixed by GoogleCloudPlatform/magic-modules#1667
Closed

Comments

@spil-jiel
Copy link

spil-jiel commented Apr 16, 2019

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.11

  • provider.google v2.4.0

Affected Resource(s)

  • google_project_iam_member
  • google_compute_region_instance_group_manager
  • google_compute_backend_service
  • google_compute_instance_template

Terraform Configuration Files

We use classical configuration files, such has:

terraform {
    backend "gcs" {
        prefix = "project1"
    }
}

provider "google" {
    credentials = "${file("../../account.json")}"
    region      = "europe-west1"
    project     = "project1"
}

(...)
module "memcached_old_services" {
    source         = "../../resources/generic-instance-group"
    name           = "memcached-old-services"
    role           = "memcached"
    cluster        = "memcached-old-services"
    instance_count = 2
    subnet_name    = "${data.terraform_remote_state.infra_prd.portal_services_stg_subnet}"
    project_name   = "project1"
    project_number = "${data.google_project.spil_portal_services_stg.number}"
}

(...)
resource "google_service_account" "container_engine" {
  account_id = "container-engine"
  display_name = "container-engine"
}

resource "google_project_iam_member" "container_engine_compute" {
  role        = "roles/compute.admin"
  project     = "project1"
  member      = "serviceAccount:${google_service_account.container_engine.email}"
}

resource "google_project_iam_member" "container_engine_container" {
  role        = "roles/container.admin"
  project     = "project1"
  member      = "serviceAccount:${google_service_account.container_engine.email}"
}

Panic Output

(...)
2019-04-16T14:22:01.053+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 2019/04/16 14:22:01 [DEBUG]: Retrieved policy for project "spil-infra-prd": &{AuditConfigs:[] Bindings:[0xc0003d1a40 0xc0003d1aa0 0xc0003d1b00 0xc0003d1b60 0xc0003d1bc0 0xc0003d1c20 0xc0003d1c80 0xc0003d1ce0 0xc0003d1da0 0xc0003d1e00 0xc0003d1ec0 0xc0003d1f20 0xc0003d1f80 0xc000c7c000 0xc000c7c060 0xc000c7c0c0 0xc000c7c120 0xc000c7c180 0xc000c7c1e0 0xc000c7c240 0xc000c7c300 0xc000c7c360 0xc000c7c3c0 0xc000c7c420 0xc000c7c480 0xc000c7c4e0 0xc000c7c540 0xc000c7c5a0 0xc000a189c0 0xc000a18a20 0xc000a18000 0xc000a18060 0xc000a18120 0xc000a18180 0xc000a18420 0xc000a18480 0xc000a186c0 0xc000a18720] Etag:BwWGA0w0L3Q= Version:1 ServerResponse:{HTTPStatusCode:200 Header:map[X-Frame-Options:[SAMEORIGIN] Server-Timing:[gfet4t7; dur=287] Date:[Tue, 16 Apr 2019 12:22:00 GMT] Server:[ESF] Cache-Control:[private] X-Xss-Protection:[1; mode=block] Content-Type:[application/json; charset=UTF-8] Vary:[Origin X-Origin Referer] X-Content-Type-Options:[nosniff] Alt-Svc:[quic=":443"; ma=2592000; v="46,44,43,39"]]} ForceSendFields:[] NullFields:[]}
2019-04-16T14:22:01.053+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 2019/04/16 14:22:01 [DEBUG] Google API Request Details:
2019-04-16T14:22:01.053+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: ---[ REQUEST ]---------------------------------------
2019-04-16T14:22:01.053+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: GET /compute/beta/projects/project1/global/instanceTemplates/spil-memcached-gateway-new-template20190409142429241600000001?alt=json&prettyPrint=false HTTP/1.1
2019-04-16T14:22:01.053+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Host: www.googleapis.com
2019-04-16T14:22:01.054+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: User-Agent: google-api-go-client/0.5 Terraform/0.11.9 (+https://www.terraform.io) terraform-provider-google/2.4.0
2019-04-16T14:22:01.054+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Accept-Encoding: gzip
2019-04-16T14:22:01.054+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 
2019-04-16T14:22:01.054+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 
2019-04-16T14:22:01.054+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: -----------------------------------------------------
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 2019/04/16 14:22:01 [DEBUG] Google API Response Details:
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: ---[ RESPONSE ]--------------------------------------
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: HTTP/2.0 200 OK
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Alt-Svc: quic=":443"; ma=2592000; v="46,44,43,39"
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Cache-Control: private, max-age=0, must-revalidate, no-transform
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Content-Type: application/json; charset=UTF-8
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Date: Tue, 16 Apr 2019 12:22:01 GMT
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Etag: "OcrtUB1Tfb0JUf2j4ooOdBXNmsQ=/6f6S_eKRoa3fKlXArGfMaVw2R2Y="
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Expires: Tue, 16 Apr 2019 12:22:01 GMT
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Server: GSE
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Vary: Origin
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: Vary: X-Origin
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: X-Content-Type-Options: nosniff
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: X-Frame-Options: SAMEORIGIN
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: X-Xss-Protection: 1; mode=block
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: {
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "kind": "compute#backendService",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "id": "7591536508174746592",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "creationTimestamp": "2018-08-30T07:19:59.428-07:00",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "name": "spil-gms-stg-lb-manual-backend-301",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "description": "",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "selfLink": "https://www.googleapis.com/compute/v1/projects/project1/global/backendServices/spil-gms-stg-lb-manual-backend-301",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "backends": [
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:   {
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "description": "",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "group": "https://www.googleapis.com/compute/v1/projects/project1/zones/europe-west1-b/instanceGroups/gke-portal-services-stg-default-pool-1586a377-grp",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "balancingMode": "RATE",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "maxRatePerInstance": <our_value>,
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "capacityScaler": <our_value>
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:   },
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:   {
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "description": "",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "group": "https://www.googleapis.com/compute/v1/projects/project1/zones/europe-west1-c/instanceGroups/gke-portal-services-stg-default-pool-5078fa5a-grp",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "balancingMode": "RATE",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "maxRatePerInstance": <our_value>,
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "capacityScaler": <our_value>
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:   },
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:   {
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "description": "",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "group": "https://www.googleapis.com/compute/v1/projects/project1/zones/europe-west1-d/instanceGroups/gke-portal-services-stg-default-pool-8f9f9312-grp",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "balancingMode": "RATE",
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "maxRatePerInstance": <our_value>,
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:    "capacityScaler": <our_value>
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:   }
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  ],
2019-04-16T14:22:01.107+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "healthChecks": [
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: "https://www.googleapis.com/compute/v1/projects/project1/global/healthChecks/spil-gms-prd-health-301"
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  ],
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "timeoutSec": 30,
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "port": 80,
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "protocol": "HTTP",
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "fingerprint": "MThHkavROCI=",
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "portName": "http301",
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "enableCDN": false,
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "sessionAffinity": "NONE",
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "affinityCookieTtlSec": <our_value>,
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "loadBalancingScheme": "EXTERNAL",
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  "connectionDraining": {
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:   "drainingTimeoutSec": <our_value>
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4:  }
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: }
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 
2019-04-16T14:22:01.108+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: -----------------------------------------------------
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: �[0m�[1mgoogle_project_iam_member.serviceaccount_iam_editor: Refreshing state... (ID: project1/roles/editor/s...l-services-stg.iam.gserviceaccount.com)�[0m
�[0m�[1mgoogle_container_cluster.portal_services_stg_container_cluster: Refreshing state... (ID: portal-services-stg-container-cluster)�[0m
�[0m�[1mgoogle_compute_region_instance_group_manager.instance_manager: Refreshing state... (ID: project1/europe-west1/spil-memcached-old-services-manager)�[0m
�[0m�[1mgoogle_project_iam_member.log_writer_deletion: Refreshing state... (ID: spil-infra-prd/roles/pubsub.publisher/s...gcp-sa-logging.iam.gserviceaccount.com)�[0m
�[0m�[1mgoogle_compute_region_instance_group_manager.instance_manager: Refreshing state... (ID: spil-old-services-manager)�[0m
�[0m�[1mkubernetes_secret.service_widget_versions_secret: Refreshing state... (ID: default/service-widget-versions-serviceaccount)�[0m
�[0m�[1mgoogle_project_iam_member.log_writer_creation: Refreshing state... (ID: spil-infra-prd/roles/pubsub.publisher/s...gcp-sa-logging.iam.gserviceaccount.com)�[0m
�[0m�[1mgoogle_compute_region_instance_group_manager.instance_manager: Refreshing state... (ID: spil-spapi-manager)�[0m
panic: interface conversion: interface {} is nil, not map[string]interface {}
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: goroutine 1092 [running]:
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: github.com/terraform-providers/terraform-provider-google/google.resourceComputeBackendServiceDecoder(...)
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google/google/resource_compute_backend_service.go:1483
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: github.com/terraform-providers/terraform-provider-google/google.resourceComputeBackendServiceRead(0xc0001c2000, 0x19dada0, 0xc0006de340, 0xc0001c2000, 0x0)
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google/google/resource_compute_backend_service.go:580 +0x18d1
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc0004936c0, 0xc0005d2140, 0x19dada0, 0xc0006de340, 0xc00069d5b0, 0x4c1f01, 0x17ca300)
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:352 +0x160
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc0002077a0, 0xc0005d2050, 0xc0005d2140, 0xc000136380, 0xc0008a1bf0, 0x7f25d480d6c0)
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:308 +0x92
2019-04-16T14:22:01.109+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0xc000325c20, 0xc000748000, 0xc000748230, 0x0, 0x0)
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:549 +0x4e
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: reflect.Value.call(0xc00014a960, 0xc00000c858, 0x13, 0x1d26b0f, 0x4, 0xc0008a1f18, 0x3, 0x3, 0xc0003ea800, 0xc000580420, ...)
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/goenv/versions/1.11.5/src/reflect/value.go:447 +0x454
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: reflect.Value.Call(0xc00014a960, 0xc00000c858, 0x13, 0xc0004e0f18, 0x3, 0x3, 0x0, 0x0, 0xc0004e0fc0)
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/goenv/versions/1.11.5/src/reflect/value.go:308 +0xa4
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: net/rpc.(*service).call(0xc0006b7200, 0xc00051a5f0, 0xc00015e2e0, 0xc00015e2f0, 0xc00017a600, 0xc000a02620, 0x17ca2c0, 0xc000748000, 0x16, 0x17ca300, ...)
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/goenv/versions/1.11.5/src/net/rpc/server.go:384 +0x14e
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: created by net/rpc.(*Server).ServeCodec
2019-04-16T14:22:01.110+0200 [DEBUG] plugin.terraform-provider-google_v2.4.0_x4: 	/opt/goenv/versions/1.11.5/src/net/rpc/server.go:481 +0x47e
2019-04-16T14:22:01.115+0200 [DEBUG] plugin: plugin process exited: path=/home/jiel/git/terraform/projects/project1/.terraform/plugins/linux_amd64/terraform-provider-google_v2.4.0_x4
2019/04/16 14:22:01 [ERROR] root.rabbitmq-gms-stg: eval: *terraform.EvalRefresh, err: google_compute_instance_template.instance_template: unexpected EOF
2019/04/16 14:22:01 [ERROR] root.consul_new: eval: *terraform.EvalRefresh, err: google_compute_instance_template.instance_template: unexpected EOF
2019/04/16 14:22:01 [ERROR] root.consul_new: eval: *terraform.EvalSequence, err: google_compute_instance_template.instance_template: unexpected EOF
2019/04/16 14:22:01 [ERROR] root.tracker: eval: *terraform.EvalRefresh, err: google_project_iam_member.default_serviceaccount_iam_imageuser: unexpected EOF
2019/04/16 14:22:01 [ERROR] root.tracker: eval: *terraform.EvalSequence, err: google_project_iam_member.default_serviceaccount_iam_imageuser: unexpected EOF
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.tracker.google_project_iam_member.default_serviceaccount_iam_imageuser
2019/04/16 14:22:01 [ERROR] root.rabbitmq-gms-stg: eval: *terraform.EvalSequence, err: google_compute_instance_template.instance_template: unexpected EOF
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.rabbitmq-gms-stg.google_compute_instance_template.instance_template
2019/04/16 14:22:01 [TRACE] root.memcached_gateway_new: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] root.memcached_gateway_new: eval: *terraform.EvalGetProvider
2019/04/16 14:22:01 [ERROR] root.consul_new: eval: *terraform.EvalRefresh, err: google_project_iam_member.serviceaccount_iam_editor: unexpected EOF
2019/04/16 14:22:01 [TRACE] root.memcached_gateway_new: eval: *terraform.EvalReadState
2019/04/16 14:22:01 [ERROR] root.consul_new: eval: *terraform.EvalSequence, err: google_project_iam_member.serviceaccount_iam_editor: unexpected EOF
2019/04/16 14:22:01 [TRACE] root: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.rabbitmq-gms-stg.google_compute_region_instance_group_manager.instance_manager"
2019/04/16 14:22:01 [TRACE] root: eval: *terraform.EvalGetProvider
2019/04/16 14:22:01 [TRACE] root.memcached_gateway_new: eval: *terraform.EvalRefresh
2019/04/16 14:22:01 [TRACE] root: eval: *terraform.EvalReadState
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.rabbitmq-gms-stg.output.tags"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.rabbitmq-gms-stg.output.instance_group"
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.consul_new.google_project_iam_member.serviceaccount_iam_editor
2019/04/16 14:22:01 [ERROR] root.memcached_gateway_new: eval: *terraform.EvalRefresh, err: google_project_iam_member.serviceaccount_iam_editor: connection is shut down
2019/04/16 14:22:01 [ERROR] root.rabbitmq-gms-stg: eval: *terraform.EvalRefresh, err: google_project_iam_member.serviceaccount_iam_editor: unexpected EOF
2019/04/16 14:22:01 [TRACE] root.microservice_service_widget_versions: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.rabbitmq_gms_lb_stg.var.backend"
2019/04/16 14:22:01 [TRACE] root.microservice_service_widget_versions: eval: *terraform.EvalInterpolate
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.rabbitmq_gms_lb_stg.google_compute_region_backend_service.loadbalancer"
2019/04/16 14:22:01 [TRACE] root: eval: *terraform.EvalRefresh
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.rabbitmq_gms_lb_stg.google_compute_forwarding_rule.forwarding_rule"
2019/04/16 14:22:01 [ERROR] root.rabbitmq-gms-stg: eval: *terraform.EvalSequence, err: google_project_iam_member.serviceaccount_iam_editor: unexpected EOF
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.rabbitmq-gms-stg.google_project_iam_member.serviceaccount_iam_editor
2019/04/16 14:22:01 [ERROR] root: eval: *terraform.EvalRefresh, err: google_compute_backend_service.gms_stg_lb_manual_backend_301_backend_services: unexpected EOF
2019/04/16 14:22:01 [ERROR] root: eval: *terraform.EvalSequence, err: google_compute_backend_service.gms_stg_lb_manual_backend_301_backend_services: unexpected EOF
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: google_compute_backend_service.gms_stg_lb_manual_backend_301_backend_services
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: terraform.EvalNoop
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: *terraform.EvalOpFilter
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: *terraform.EvalWriteOutput
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: *terraform.EvalInterpolate
2019/04/16 14:22:01 [TRACE] root.microservice_service_widget_versions: eval: *terraform.EvalCountCheckComputed
2019/04/16 14:22:01 [TRACE] root.microservice_service_widget_versions: eval: *terraform.EvalIf
2019/04/16 14:22:01 [TRACE] root.microservice_service_widget_versions: eval: *terraform.EvalCountFixZeroOneBoundary
2019/04/16 14:22:01 [ERROR] root.tracker: eval: *terraform.EvalRefresh, err: google_compute_instance_template.instance_template: unexpected EOF
2019/04/16 14:22:01 [ERROR] root.tracker: eval: *terraform.EvalSequence, err: google_compute_instance_template.instance_template: unexpected EOF
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.tracker.google_compute_instance_template.instance_template
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.microservice_service_widget_versions.kubernetes_secret.service_widget_versions_secret
2019/04/16 14:22:01 [ERROR] root.tracker: eval: *terraform.EvalRefresh, err: google_project_iam_member.serviceaccount_iam_editor: unexpected EOF
2019/04/16 14:22:01 [TRACE] root.old_services: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] root.old_services: eval: terraform.EvalNoop
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.consul_new.google_compute_instance_template.instance_template
2019/04/16 14:22:01 [TRACE] root.pubsub: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] root.pubsub: eval: *terraform.EvalInterpolate
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker.google_compute_region_instance_group_manager.instance_manager"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.consul_new.output.tags"
2019/04/16 14:22:01 [DEBUG] Interpolating computed list element attribute tags (2)
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker.output.instance_group"
2019/04/16 14:22:01 [TRACE] root.old_services: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] root.old_services: eval: *terraform.EvalInterpolate
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker_lb.var.backend"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker_lb.google_compute_backend_service.loadbalancer"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker_lb.google_compute_url_map.url_map"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker_lb.google_compute_target_http_proxy.http_proxy"
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: *terraform.EvalCountCheckComputed
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker_lb.google_compute_global_forwarding_rule.forwarding_rule_v4"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker.output.tags"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.consul_new.google_compute_region_instance_group_manager.instance_manager"
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: *terraform.EvalIf
2019/04/16 14:22:01 [TRACE] root.memcached_old_services: eval: *terraform.EvalCountFixZeroOneBoundary
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.tracker_lb.google_compute_global_forwarding_rule.forwarding_rule_v6"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.consul_new.output.instance_group"
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "google_compute_url_map.gms_stg_lb_manual_301_url_map"
2019/04/16 14:22:01 [ERROR] root.tracker: eval: *terraform.EvalSequence, err: google_project_iam_member.serviceaccount_iam_editor: unexpected EOF
2019/04/16 14:22:01 [TRACE] dag/walk: upstream errored, not walking "module.consul_http_lb.var.backend"
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.tracker.google_project_iam_member.serviceaccount_iam_editor
2019/04/16 14:22:01 [TRACE] root.pubsub: eval: *terraform.EvalCountCheckComputed
2019/04/16 14:22:01 [TRACE] [walkRefresh] Exiting eval tree: module.memcached_old_services.google_compute_region_instance_group_manager.instance_manager
2019/04/16 14:22:01 [TRACE] root.spapi: eval: *terraform.EvalSequence
2019/04/16 14:22:01 [TRACE] vertex 'root.module.memcached_old_services.google_compute_region_instance_group_manager.instance_manager': expanding/walking dynamic subgraph
2019/04/16 14:22:01 [TRACE] root.spapi: eval: *terraform.EvalInterpolate
2019/04/16 14:22:01 [TRACE] Graph after step *terraform.ResourceCountTransformer:

Expected Behavior

Using the Google provider in version v.2.3.0 successfully creates all the resources needed.

Actual Behavior

We have multiple errors when trying to plan or apply a change:

Error refreshing state: 16 error(s) occurred:

* module.pubsub.google_project_iam_member.log_writer_creation: 1 error(s) occurred:

2019-04-16T14:22:04.005+0200 [DEBUG] plugin.terraform-provider-google-beta_v2.4.0_x4: 2019/04/16 14:22:04 [ERR] plugin: plugin server: accept unix /tmp/plugin877983686: use of closed network connection
* module.pubsub.google_project_iam_member.log_writer_creation: google_project_iam_member.log_writer_creation: connection is shut down
2019-04-16T14:22:04.005+0200 [DEBUG] plugin.terraform-provider-kubernetes_v1.5.2_x4: 2019/04/16 14:22:04 [ERR] plugin: plugin server: accept unix /tmp/plugin176431884: use of closed network connection
* module.spapi.google_compute_region_instance_group_manager.instance_manager: 1 error(s) occurred:

* module.spapi.google_compute_region_instance_group_manager.instance_manager: google_compute_region_instance_group_manager.instance_manager: connection is shut down
* module.tracker.google_project_iam_member.default_serviceaccount_iam_imageuser: 1 error(s) occurred:

* module.tracker.google_project_iam_member.default_serviceaccount_iam_imageuser: google_project_iam_member.default_serviceaccount_iam_imageuser: unexpected EOF
* module.tracker.google_project_iam_member.serviceaccount_iam_editor: 1 error(s) occurred:

* module.tracker.google_project_iam_member.serviceaccount_iam_editor: google_project_iam_member.serviceaccount_iam_editor: unexpected EOF
* module.tracker.google_project_iam_member.default_serviceaccount_iam_networkuser: 1 error(s) occurred:
2019-04-16T14:22:04.009+0200 [DEBUG] plugin: plugin process exited: path=/home/jiel/git/terraform/projects/project1/.terraform/plugins/linux_amd64/terraform-provider-kubernetes_v1.5.2_x4

2019-04-16T14:22:04.010+0200 [DEBUG] plugin: plugin process exited: path=/home/jiel/git/terraform/projects/project1/.terraform/plugins/linux_amd64/terraform-provider-google-beta_v2.4.0_x4
* module.tracker.google_project_iam_member.default_serviceaccount_iam_networkuser: google_project_iam_member.default_serviceaccount_iam_networkuser: unexpected EOF
* module.pubsub.google_project_iam_member.log_writer_deletion: 1 error(s) occurred:

* module.pubsub.google_project_iam_member.log_writer_deletion: google_project_iam_member.log_writer_deletion: connection is shut down

Steps to Reproduce

  1. Get the last provider version 2.4.0
  2. terraform apply
  3. Getting Error refreshing state: 16 error(s) occurred
  4. Pin the previous version in terraform, for provider "google" (version = "=2.3.0")
  5. terraform apply
  6. Works, no errors
@ghost ghost added bug crash labels Apr 16, 2019
@rileykarson rileykarson changed the title Getting errors with new version 2.4.0 BackendService crash from blank IAP value in 2.4.0 Apr 16, 2019
@rileykarson
Copy link
Collaborator

rileykarson commented Apr 16, 2019

Looking at the logs, this is happening because we're seeing a nil iap value returned from the API. Out of curiosity, were these resources created with a prior provider version?

I suspect that I didn't capture some API behaviour correctly while updating this resource- in the case that iap is unset, if no iap value is sent to the server like old provider versions did, the server returns a nil value. If an empty object is sent like 2.4.0 does, the server returns an empty object as a value (and that's probably why our tests didn't catch this).

@spil-jiel
Copy link
Author

Those resources were indeed created with a prior provider version.

@ghost
Copy link

ghost commented May 19, 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 May 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants