Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout error while creating scaleway_baremetal_server after 1 hour #2796

Open
alphonse-rms opened this issue Nov 5, 2024 · 1 comment
Open
Assignees
Labels
baremetal elastic-metal Elastic-metal issues, bugs and feature requests priority:highest Bugs filled by customers, security issues

Comments

@alphonse-rms
Copy link

Community Note

  • 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 other comments that do not add relevant new information or questions, 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

Terraform Version

1.6.5

Provider Version

2.47.0

Affected Resource(s)

  • scaleway_baremetal_server

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

  • Terraform apply command fails and outputs the following timeout error after 1h2m0s
╷
│ 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" {
│ 
╵
  • The server resource becomes tainted in the tfstate so we have to remove it from the state with terraform state rm scaleway_baremetal_server.alpha and then re-import it terraform import scaleway_baremetal_server.alpha ***/***
  • The actual server is successfully created after several minutes when checking in the Scaleway Console

Steps to Reproduce

  1. terraform apply
@remyleone remyleone added elastic-metal Elastic-metal issues, bugs and feature requests priority:highest Bugs filled by customers, security issues labels Nov 12, 2024
@Laure-di
Copy link
Contributor

Laure-di commented Dec 3, 2024

The timeout for server installation has been increase it should fix the issue. The fix will be include in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
baremetal elastic-metal Elastic-metal issues, bugs and feature requests priority:highest Bugs filled by customers, security issues
Projects
None yet
Development

No branches or pull requests

4 participants