Closed thecaffeinatedengineer closed 1 year ago
Followed instructions here and ended up deleting and creating another project
Had the same problem - turned out that my ssh keys required a passphrase (and docs clearly state they shoud not ;) ). creating a new key pair without passphrase and using them in my kube.tf fixed it.
Description
When I run terraform
terraform apply -auto-approve
, it creates all 10 servers, private network and the firewall.However it's not creating the volume and the load balancer. Hetzner Support already increased my limit so it shouldn't be the issue. I have destroyed and tried several times, I still get the same issue.
Not sure if this is a bug or something to do with my config. Previously when I had limits, it would eventually show the resource error.
When I eventually cancel, these are the logs I see:
Interrupt received. Please wait for Terraform to exit or data loss may occur. Gracefully shutting down...
Stopping operation... ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: execution halted │ │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.agents["4-0-storage-small-nbg1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/yf5xv6x4vfq3slrexbru -o ConnectTimeout=2 -p 22 root@195.201.143.139 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.agents["2-0-agent-small-hel1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/0f132oun82wg5o50rky5 -o ConnectTimeout=2 -p 22 root@135.181.104.103 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.agents["0-0-agent-small-fsn1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/f8ix9kor3f2x6zrnybpk -o ConnectTimeout=2 -p 22 root@116.202.108.65 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.agents["3-0-storage-small-fsn1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/zrx3npf3olnxdnfzg69z -o ConnectTimeout=2 -p 22 root@49.13.56.29 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.control_planes["2-0-control-plane-hel1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/b9ylg22bih0fur21ha5t -o ConnectTimeout=2 -p 22 root@65.109.15.231 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.agents["6-0-logging-small-fsn1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/h4hnvxegg47sxb3nm40f -o ConnectTimeout=2 -p 22 root@142.132.176.115 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.agents["5-0-storage-small-hel1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/fneiqq8hxdzrqierotud -o ConnectTimeout=2 -p 22 root@65.109.225.120 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.control_planes["0-0-control-plane-fsn1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/smbayajxn341qlhzbfmb -o ConnectTimeout=2 -p 22 root@49.13.62.89 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.control_planes["1-0-control-plane-nbg1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/0tini0auoy0fxhmu07i5 -o ConnectTimeout=2 -p 22 root@128.140.45.97 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.kube-hetzner.module.agents["1-0-agent-small-nbg1"].hcloud_server.server, │ on .terraform/modules/kube-hetzner/modules/host/main.tf line 63, in resource "hcloud_server" "server": │ 63: provisioner "local-exec" { │ │ Error running command 'until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i │ /tmp/tilonhsawwe06dm8ecfc -o ConnectTimeout=2 -p 22 root@168.119.234.179 true 2> /dev/null │ do │ echo "Waiting for MicroOS to become available..." │ sleep 3 │ done │ ': signal: interrupt. Output: Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │ Waiting for MicroOS to become available... │
Kube.tf file
Screenshots
Platform
Mac