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

[Bug 🐞]: terraform deployment fails to complete #393

Closed
weynandkuijpers opened this issue Apr 28, 2023 · 2 comments
Closed

[Bug 🐞]: terraform deployment fails to complete #393

weynandkuijpers opened this issue Apr 28, 2023 · 2 comments
Milestone

Comments

@weynandkuijpers
Copy link

weynandkuijpers commented Apr 28, 2023

What happened?

depploying Full VM by using a terraform script

Terraform code:

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

provider "grid" {
    mnemonics = "some mnemonic"
    network = "main"
}

resource "grid_network" "net13" {
    nodes = [5453]
    ip_range = "10.2.0.0/16"
    name = "network2"
    description = "newer network"
    add_wg_access = false
}
resource "grid_deployment" "d1" {
  node = 5453
  network_name = grid_network.net13.name
#  ip_range = lookup(grid_network.net13.nodes_ip_range, 5453, "")
  disks {
    name = "data"
    size = 20
    description = "volume holding app data"
  }
  vms {
    name = "nextcloud"
    flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04-lts.flist"
    cpu = 4
    publicip = true
    memory = 8192
    planetary = true
    entrypoint = "/sbin/zinit init"
    mounts {
        disk_name = "data"
        mount_point = "/app"
    }
    env_vars = {
      SSH_KEY ="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAOP0h6VImNcxnIBRMoMfbMfb0xwGHDlaPxZ+nu0CL8ATJekVDHDLMGEPdvACfHBe0sqIw/l6jqoEMR4Dzhjgm4bVEUBVEnG1FvkeNB59sT2DOxDCZuqJvjx2M1bJlH8AR/JQXxUQ+zvfTbavc4/zfCuJm4PYNUsmEt/IQmRwLznGOkoJbwYLhKCC3ykZd0EGpmCWgUUYn0ihaaYkyrliQi5Ny00x0s6jOIJg0CG2Xh5xcrkhOfCZMxZAB+/LGQpZ3tu+Cy5jRf8V/JZ8XQmtYM2GmBUZ1KGcMcsGzrtuudn13JeYLtWJBw6A7Q3Fb7dQSCMLC9UA0uMSZk67M6DFV john@RescuedMac"
	}
  }
}
#output "wg_config" {
#    value = grid_network.net13.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 "ygg_ip" {
      value = grid_deployment.d1.vms[0].ygg_ip
  }

Error message:

grid_network.net13: Creating...
grid_network.net13: Still creating... [10s elapsed]
╷
│ Error: error sending deployment to the node: context deadline exceeded
│ 
│   with grid_network.net13,
│   on main.tf line 14, in resource "grid_network" "net13":
│   14: resource "grid_network" "net13" {

Also - play.grid.tf lead to timeouts.

image

What did you expect?

Normal VM deployment

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

No response

@khaledyoussef24
Copy link

khaledyoussef24 commented May 10, 2023

tried the same deployment on mainnet and deployed successfully but took 1 minute and 26 seconds but on node 1
image

@A-Harby
Copy link

A-Harby commented May 30, 2023

Close as duplicate to #392

@A-Harby A-Harby closed this as completed May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants