You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
gcloud compute routes list --filter '(destRange="0.0.0.0/0")' should return nothing attached to the newly created network
Actual Behavior
The default route is not being deleted.
Steps to Reproduce
terraform apply the snippet above
gcloud compute routes list --filter '(destRange="0.0.0.0/0")' or look at the Routes via the Web UI
Important Factoids
Looks like the problem is pretty straightforward
The filter network that we're getting from the upstream google client is incorrect
With the bad filter, we're not getting the correct response to find the default route and try to delete it.
DEBUG shows this as the base URL for the network we get inside the provider: https://compute.googleapis.com/compute/v1
Actual URL in the Google resource via gcloud is https://www.googleapis.com/compute/v1
This can all be re-created with gcloud as well (first is the bad filter, second is the working): Bad filter gcloud compute routes list --filter '(network=https://compute.googleapis.com/compute/v1/projects/REDACTED/global/networks/vpc-network) AND (destRange="0.0.0.0/0")' Good Filter gcloud compute routes list --filter '(network=https://www.googleapis.com/compute/v1/projects/REDACTED/global/networks/vpc-network) AND (destRange="0.0.0.0/0")'
If this is an upstream issue, stripping the base URL is an option for the filter as well - gcloud compute routes list --filter '(network=compute/v1/projects/REDACTED/global/networks/vpc-network) AND (destRange="0.0.0.0/0")'
#0000
The text was updated successfully, but these errors were encountered:
@frankdice looks like the recent code change introduced that bug. I see its working as expected (default routes are being deleted) in the provider version 0.33, please use that version in the mean time while we work on the issue.
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
locked as resolved and limited conversation to collaborators
Oct 5, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
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 tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v0.13.1
andTerraform v0.12.23
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Default route should be deleted.
gcloud compute routes list --filter '(destRange="0.0.0.0/0")'
should return nothing attached to the newly created networkActual Behavior
The default route is not being deleted.
Steps to Reproduce
terraform apply
the snippet abovegcloud compute routes list --filter '(destRange="0.0.0.0/0")'
or look at the Routes via the Web UIImportant Factoids
Looks like the problem is pretty straightforward
https://compute.googleapis.com/compute/v1
https://www.googleapis.com/compute/v1
This can all be re-created with gcloud as well (first is the bad filter, second is the working):
Bad filter
gcloud compute routes list --filter '(network=https://compute.googleapis.com/compute/v1/projects/REDACTED/global/networks/vpc-network) AND (destRange="0.0.0.0/0")'
Good Filter
gcloud compute routes list --filter '(network=https://www.googleapis.com/compute/v1/projects/REDACTED/global/networks/vpc-network) AND (destRange="0.0.0.0/0")'
If this is an upstream issue, stripping the base URL is an option for the filter as well -
gcloud compute routes list --filter '(network=compute/v1/projects/REDACTED/global/networks/vpc-network) AND (destRange="0.0.0.0/0")'
The text was updated successfully, but these errors were encountered: