Open elouanKeryell-Even opened 3 years ago
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
I just had the same issue.
Te same also happens, for example, when changing the url_mask
in the cloud run section of the resource "google_compute_region_network_endpoint_group".
i'm having the same issue, is there any update on this?
I'm running into this issue changing the domains for the SSL.
I've changed the domain from dev.section.domain.com
to dev-section.domain.com
. I'm expecting the SSL to be detached, deleted, recreated, and then attached again. What I get is:
Error: Error when reading or editing ManagedSslCertificate: googleapi: Error 400: The ssl_certificate resource 'projects/PROJECT_ID/global/sslCertificates/appname-load-balancer-cert' is already being used by 'projects/PROJECT_ID/global/targetHttpsProxies/appname-load-balancer-https-proxy', resourceInUseByAnotherResource
Still having this issue
(First off, thanks for everyone's hard work on this project, it's very useful.)
I'm having a related issue attempting to remove network endpoint groups. I've got Terraform that looks something like this:
google_compute_region_network_endpoint_group "neg" {
for_each = toset(var.regions)
...
}
...
module "lb-http" {
...
backends = {
groups = [
for neg_id in var.neg_ids :
{
group = neg_id
}
]
}
}
In attempting to remove 2/3 regions, Terraform tries to destroy the NEGs and then update the lb-http backends list. This results in a similar 400 error "The network_endpoint_group resource
@elouanKeryell-Even @dmanci Did you guys ever find a workaround for this?
@elouanKeryell-Even @dmanci Did you guys ever find a workaround for this?
@sadminriley Our "workaround" was easy because we weren't live in production yet... destroy the load balancer, change the negs, and recreate it. 😄 Otherwise, no we haven't discovered a way to do it without downtime.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
renaming the lb module seemed to "fix" this :D, don't know if it's zero downtime tho
module "application-lb" {
source = "GoogleCloudPlatform/lb-http/google"
version = "7.0.0"
// rename this "loadbalancer_name" if there is an: Error 400 resourceInUseByAnotherResource (might happen when modifying url_maps)
// related github issue (https://github.com/terraform-google-modules/terraform-google-lb-http/issues/159)
name = local.loadbalancer_name
...
}
We are also facing this issue when we remove a neg from the backend block. It tries to destroy the neg before removing it from the backend.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
still busted
@nburns Yeah i've tried just about anyway I can do this outside of gcloud cli edits manually
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
prevent close issue
Nothing yet?
This has been an issue since 2021.
the only fix I've found is manually editing things via gcloud
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Since 2021 ...
still having the issue
Terraform Version
Affected Resource(s)
Terraform Configuration Files
I define a
google_compute_url_map
, which depends on abackend_service
provided by moduleGoogleCloudPlatform/lb-http/google
:Debug Output
terraform plan
: https://gist.github.com/elouanKeryell-Even/a9b7878b8959ab58921bdc1b1456da20terraform apply
: https://gist.github.com/elouanKeryell-Even/5f51462dc8a6c48dad80a9f4b7463a58Panic Output
N/A
Expected Behavior
When I change the name of the
backend_services
(i.e. module variablevar.backend
), this is what I expect to happen:backend_service
with new nameurl_map
to point to newbackend_service
backend_service
Actual Behavior
This is what actually happens:
backend_service
--> fails becauseurl_map
is linked to it:Steps to Reproduce
GoogleCloudPlatform/lb-http/google
and declares anurl_map
linked to thebackend_service
generated by the moduleterraform apply
backend
variable of the moduleterraform apply
Important Factoids
N/A
References