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

Google cloud wants to mod target pools on every plan/apply #13168

Closed
Markbnj opened this issue Mar 29, 2017 · 4 comments
Closed

Google cloud wants to mod target pools on every plan/apply #13168

Markbnj opened this issue Mar 29, 2017 · 4 comments

Comments

@Markbnj
Copy link

Markbnj commented Mar 29, 2017

Terraform Version

Terraform v0.9.2

Affected Resource(s)

  • google_compute_target_pool

Terraform Configuration Files

resource "google_compute_target_pool" "jabber-target-pool" {
  name = "jabber-target-pool"

  instances = ["${module.jabber-nodeset.self_links}"]
  health_checks = ["${google_compute_http_health_check.jabber-health-check.name}"]
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

Terraform plan reports the need for modifications to a target pool. The modifications appear to be a reordering, and so it's likely they are unnecessary. Here is the plan for the target pool:

~ module.jabber-prod.google_compute_target_pool.jabber-target-pool
    instances.0: "us-central1-a/jabber1" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber1"
    instances.1: "us-central1-a/jabber2" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber2"
    instances.2: "us-central1-a/jabber3" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber3"

The modifications were applied:

module.jabber-prod.google_compute_target_pool.jabber-target-pool: Modifying... (ID: jabber-target-pool)
  instances.0: "us-central1-a/jabber1" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber1"
  instances.1: "us-central1-a/jabber2" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber2"
  instances.2: "us-central1-a/jabber3" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber3"
...
module.jabber-prod.google_compute_target_pool.jabber-target-pool: Modifications complete (ID: jabber-target-pool)

At this point we expect the plan to no longer show the pending modifications.

Actual Behavior

However after applying successfully plan still shows the modifications as pending:

~ module.jabber-prod.google_compute_target_pool.jabber-target-pool                                                                                                                                   [18/6584]
    instances.0: "us-central1-a/jabber1" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber1"
    instances.1: "us-central1-a/jabber2" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber2"
    instances.2: "us-central1-a/jabber3" => "https://www.googleapis.com/compute/v1/projects/.../instances/jabber3"

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
  2. terraform plan

References

This feels like the same root issue we reported recently for google_compute_instance_groups and which was fixed in 0.9.2

@danawillow
Copy link
Contributor

Duplicate of #9121 (there's a workaround in there if you'd like to give that a try; I know it's not perfect but it at least will get your config working)

@Markbnj
Copy link
Author

Markbnj commented Mar 30, 2017 via email

@danawillow
Copy link
Contributor

No worries! Glad I could help on that one :)

@ghost
Copy link

ghost commented Apr 14, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants