[2.8.0] - load_balancer name is already used #1028
-
Hi everyone ! After upgrade to the last version (2.8.0), I update my kube.tf file than just some commentary was added, I use
No config change in the kube.tf file, I don't know where to search, any idea ? Thanks for you time !! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 20 replies
-
I have the same issue! 👍 Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# module.kube-hetzner.hcloud_load_balancer.cluster[0] will be created
+ resource "hcloud_load_balancer" "cluster" {
+ delete_protection = false
+ id = (known after apply)
+ ipv4 = (known after apply)
+ ipv6 = (known after apply)
+ labels = {
+ "cluster" = "my-k3s"
+ "engine" = "k3s"
+ "provisioner" = "terraform"
}
+ load_balancer_type = "lb11"
+ location = "fsn1"
+ name = "my-k3s"
+ network_id = (known after apply)
+ network_ip = (known after apply)
+ network_zone = (known after apply)
+ algorithm {
+ type = "round_robin"
}
}
# module.kube-hetzner.null_resource.kustomization will be created
+ resource "null_resource" "kustomization" {
+ id = (known after apply)
+ triggers = {
+ "helm_values_yaml" = (sensitive value)
+ "options" = ""
+ "versions" = <<-EOT
v1.27
v1.27.3
N/A
N/A
N/A
N/A
v1.14.0
EOT
}
}
Plan: 2 to add, 0 to change, 0 to destroy.
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: tf.plan
To perform exactly these actions, run the following command to apply:
terraform apply "tf.plan"
terraform apply "tf.plan"
module.kube-hetzner.hcloud_load_balancer.cluster[0]: Creating...
╷
│ Error: name is already used (uniqueness_error)
│
│ with module.kube-hetzner.hcloud_load_balancer.cluster[0],
│ on .terraform/modules/kube-hetzner/init.tf line 1, in resource "hcloud_load_balancer" "cluster":
│ 1: resource "hcloud_load_balancer" "cluster" { |
Beta Was this translation helpful? Give feedback.
-
@K-MeLeOn @janis-ax FYI folks, this issue is now fixed in v2.8.2. Thanks again for reporting it. |
Beta Was this translation helpful? Give feedback.
-
Nice ! [Version 2.8.2] |
Beta Was this translation helpful? Give feedback.
-
So I don't know what happened here, but it's still a mess. I've tried to upgrade multiple times now and I always get stuck at the load balancer. Terraform creates the new load-balancer but it stays disconnected. I finally could get my old setup working again. Somehow hcloud-cloud-controller-manager had |
Beta Was this translation helpful? Give feedback.
@K-MeLeOn @janis-ax FYI folks, this issue is now fixed in v2.8.2. Thanks again for reporting it.