scaleway / terraform-provider-scaleway

Terraform Scaleway provider
https://www.terraform.io/docs/providers/scaleway/
Mozilla Public License 2.0
199 stars 125 forks source link

Timeout error while creating scaleway_baremetal_server after 1 hour #2796

Open alphonse-rms opened 2 weeks ago

alphonse-rms commented 2 weeks ago

Community Note

Terraform Version

1.6.5

Provider Version

2.47.0

Affected Resource(s)

Terraform Configuration Files

resource "scaleway_baremetal_server" "alpha" {
  name        = var.node_name
  zone        = var.default_zone
  project_id  = var.project_id
  offer       = data.scaleway_baremetal_offer.node_sku.offer_id
  os          = data.scaleway_baremetal_os.ubuntu_24.os_id
  ssh_key_ids = [for name, ssh_key in data.scaleway_account_ssh_key.users : ssh_key.id]

  options {
    id = data.scaleway_baremetal_option.private_net.option_id
  }
  private_network {
    id = data.scaleway_vpc_private_network.private_net.id
  }

  tags = var.node_tags
}

Expected Behavior

Terraform apply command should wait until the server is created

Actual Behavior

β•·
β”‚ Error: scaleway-sdk-go: waiting for server installation failed: timeout after 1h2m0s
β”‚ 
β”‚   with scaleway_baremetal_server.alpha,
β”‚   on main.tf line 1, in resource "scaleway_baremetal_server" "alpha":
β”‚    1: resource "scaleway_baremetal_server" "alpha" {
β”‚ 
β•΅

Steps to Reproduce

  1. terraform apply