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

Backend Service cannot reconsolidate state #462

Closed
gaba-xyz opened this issue Sep 26, 2017 · 1 comment · Fixed by #522
Closed

Backend Service cannot reconsolidate state #462

gaba-xyz opened this issue Sep 26, 2017 · 1 comment · Fixed by #522
Labels

Comments

@gaba-xyz
Copy link
Contributor

When attempting to create a backend service, it is attempting to update said resource after creation. Root cause seems to be that it is unable to consolidate the state from the provider with the local state.

Terraform Version

Terraform v0.10.6

Affected Resource(s)

  • google_compute_backend_service

Terraform Configuration Files

resource "google_compute_backend_service" "public" {
  name        = "backend-service"
  description = "Some description"
  port_name   = "http"
  protocol    = "HTTP"

  backend {
    balancing_mode  = "UTILIZATION"
    capacity_scaler = 1
    max_utilization = 0.8
    group           = "${google_compute_instance_group_manager.web.instance_group}"
  }

  health_checks = ["${google_compute_http_health_check.default.self_link}"]
}

Expected Behavior

After running terraform apply and without making any further changes to the resources then terrafom should report that there are no changes to be made when doing terraform plan.

Actual Behavior

Running terraform plan after doing a terraform apply. Will produce the following output:

  ~ module.swarm_cluster_eu1.google_compute_backend_service.public
      backend.242332812.balancing_mode:        "" => "UTILIZATION"
      backend.242332812.capacity_scaler:       "" => "1"
      backend.242332812.description:           "" => ""
      backend.242332812.group:                 "" => "https://www.googleapis.com/compute/beta/projects/foobar/zones/europe-west1-b/instanceGroups/web"
      backend.242332812.max_rate:              "" => ""
      backend.242332812.max_rate_per_instance: "" => ""
      backend.242332812.max_utilization:       "" => "0.8"
      backend.797817009.balancing_mode:        "UTILIZATION" => ""
      backend.797817009.capacity_scaler:       "1" => "0"
      backend.797817009.description:           "" => ""
      backend.797817009.group:                 "https://www.googleapis.com/compute/v1/projects/foobar/zones/europe-west1-b/instanceGroups/web" => ""
      backend.797817009.max_rate:              "0" => "0"
      backend.797817009.max_rate_per_instance: "0" => "0"
      backend.797817009.max_utilization:       "0.8" => "0"
@danawillow danawillow added the bug label Sep 26, 2017
luis-silva pushed a commit to luis-silva/terraform-provider-google that referenced this issue May 21, 2019
@ghost
Copy link

ghost commented Mar 30, 2020

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 Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants