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_compute_router_interface deployment is failing #9780

Labels

Comments

@g-nikolay
Copy link

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 v1.0.3
Provider v3.79.0

Affected Resource(s)

  • google_compute_router_interface

Terraform Configuration Files

resource "google_compute_network" "compute_network" {
  name = "compute-network"
  auto_create_subnetworks = false
  routing_mode = "REGIONAL"
}

resource "google_compute_router_interface" "foobar" {
  name       = "interface-1"
  router     = google_compute_network.compute_network.name
  region     = "us-west1"
  ip_range   = "169.254.1.1/30"
  vpn_tunnel = "tunnel-1"

  depends_on = [
    google_compute_router.compute_router
  ]
}

resource "google_compute_router" "compute_router" {
  name = "compute-router"
  description = "example router description"
  region = "us-west1"
  network = google_compute_network.compute_network.id
  bgp {
    asn = 64517
    advertise_mode = "CUSTOM"
    advertised_groups = ["ALL_SUBNETS"]
    advertised_ip_ranges {
      description = ""
      range = "1.2.3.4"
    }
  }

  depends_on = [
    google_compute_network.compute_network
  ]
}

Debug Output

https://gist.github.com/g-nikolay/1c514436bd0b2f668f4cc4e9a070ac55

Panic Output

Expected Behavior

Actual Behavior

│ Error: Provider produced inconsistent result after apply

│ When applying changes to google_compute_router_interface.foobar, provider "provider["registry.terraform.io/hashicorp/google"]" produced an unexpected new value: Root resource was present, but now
│ absent.

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@g-nikolay g-nikolay added the bug label Aug 11, 2021
@g-nikolay g-nikolay changed the title google_compute_router_interface google_compute_router_interface deployment is failing Aug 11, 2021
@rileykarson
Copy link
Collaborator

Hmm- seems like #9722 may not be entirely innocuous like I suspected, that's the only difference between the URLs in use for google_compute_router and google_compute_router_interface.

@ScottSuarez: Are you still taking a look at #9722?

@ScottSuarez
Copy link
Collaborator

ScottSuarez commented Aug 13, 2021

Just had some time to take a look today. Seems like a simple fix pending no test issues

GoogleCloudPlatform/magic-modules#5092

@rileykarson
Copy link
Collaborator

@g-nikolay: This should be fixed in next week's release but if it's not can you post again here?

@g-nikolay
Copy link
Author

@rileykarson thanks for reply, I'll keep you posted, thanks!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.