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

Feature Request: Operation Timeouts #23

Open
pythoninthegrass opened this issue Dec 9, 2023 · 2 comments
Open

Feature Request: Operation Timeouts #23

pythoninthegrass opened this issue Dec 9, 2023 · 2 comments

Comments

@pythoninthegrass
Copy link

When setting up multipass VMs, if my cloud-config is too ambitious (e.g., installs a number of packages) Terraform times out while each VM is running. They still get created, but I don't get the outputs and suspect the state might be off.

Any chance custom operation timeouts can be added? Something like this:

resource "multipass_instance" "multipass_vm" {
  count  = var.instance_count
  cloudinit_file  = var.user_data
  name   = "${var.name_prefix}-${var.name}-${count.index + 1}"
  cpus   = var.cpus
  memory = var.memory
  disk   = var.disks
  image  = var.image_name

  timeouts {
    create = "10m"
    delete = "5m"
  }
}

Appreciate your work! This is a game changer for my dev environment 🔥

@larstobi
Copy link
Owner

Thanks for your suggestion! Will see what I can do.

What platform are you on? MacOS? If so, do you perhaps think that your problem with hangs could actually be this: canonical/multipass#2387

@pythoninthegrass
Copy link
Author

pythoninthegrass commented Dec 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants