threefoldtech / test_feedback

Apache License 2.0
3 stars 0 forks source link

[Bug 🐞]: VM Deployment failure on node with ID 4000 #394

Closed weynandkuijpers closed 1 year ago

weynandkuijpers commented 1 year ago

What happened?

Terraform script to deploy a VM on node 4000 / 5453 results in error message: image

What did you expect?

Deployed VM according to the specified parameters.

What browsers are you seeing the problem on?

No response

ZOS info

No response

Dashboard info

No response

weblets info

No response

Relevant log output

Nice variable "MNEMONICS" {
  type        = string
  description = "The mnemonic phrase used to generate the seed for the node."
}

variable "NETWORK" {
  type        = string
  default     = "main"
  description = "The network to connect the node to."
}

variable "SSH_KEY" {
  type = string
}

terraform {
  required_providers {
    grid = {
      source = "threefoldtech/grid"
    }
  }
}

provider "grid" {
    mnemonics = "${var.MNEMONICS}"
    network = "${var.NETWORK}"  
}

resource "grid_network" "net1" {
    nodes = [5354]
    ip_range = "10.32.0.0/16"
    name = "internal"
    description = "Internal subnet"
    add_wg_access = true
}
resource "grid_deployment" "d1" {
  node = 5354
  network_name = grid_network.net1.name
  disks {
    name = "data"
    size = 500
  }
    vms {
    name = "Nextcloud_Commercial_1"
    description ="Nextcloud Commercial 1"
    flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04-lts.flist"
    cpu = 4
    publicip = true
    publicip6 = false
    memory = 4096
    mounts {
        disk_name = "data"
        mount_point = "/data"
    }
    planetary = true
    env_vars = {
      SSH_KEY = "${var.SSH_KEY}"
    }
  }
}
output "wg_config" {
value = grid_network.net1.access_wg_config
}
output "node1_vm1_ip" {
value = grid_deployment.d1.vms[0].ip
}
output "public_ip" {
value = grid_deployment.d1.vms[0].computedip
}
output "public_ip6" {
value = grid_deployment.d1.vms[0].computedip6
}
output "ygg_ip" {
value = grid_deployment.d1.vms[0].ygg_ip
}
coesensbert commented 1 year ago

tfchain.grid.tf has 12 TFchain public nodes behind it spread across 4 servers (2 locations). Just checked all of them and all are in sync with correct time (ntp). Not sure where this is coming from.

ramezsaeed commented 1 year ago

Maybe you need to check your local machine time, and make sure ntp service is running.

coesensbert commented 1 year ago

@weynandkuijpers any progress after making sure your client has the correct time?

xmonader commented 1 year ago

closing, please reopen if you didn't manage to resolve it @weynandkuijpers