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

Always timeout around 10 minutes or less #1115

Open
TKinslayer opened this issue Sep 28, 2024 · 0 comments
Open

Always timeout around 10 minutes or less #1115

TKinslayer opened this issue Sep 28, 2024 · 0 comments

Comments

@TKinslayer
Copy link

When creating more than one VMs with Terraform (either rc1, rc2 or rc4), I always get timeout before it can finish the last VMs I want to deploy while getting an

Here is an example of the error I get :

Error: error updating VM: 596 Connection timed out, error status: (params: map[agent:1 balloon:0 bios:seabios cicustom: cipassword: ciupgrade:1 cores:2 cpu:host delete:ide2,

I already added the required parameters to extend the timeout both in the provider section

provider "proxmox" {
    pm_tls_insecure = true
    pm_api_url = [PROXMOX-IP-ADDRESS]
    pm_api_token_secret = [PROXMOX-API-TOKEN]
    pm_api_token_id = [PROXMOX-TOKEN-ID]
    pm_timeout = 5000
    pm_parallel = 2
}

And also inside the main.tf file :

timeouts {
        create = "2h"
        update = "2h"
        delete = "1h"
}

I even went into the Proxmox event manager (the perl5 config files) to extend the custom timeout period, but to no avail.

It can happen with 1 VM and I get timed out after 2 minutes (and sometimes not), but it happen more often with deployment of 4 to 10 VMs. Then... something odd happens. When I want to deploy 4 or 5 VM in one deployment file, it will fail at the 4th or 5th. But when I want to deploy 9, it will fail at the 8th or 9th. It's a bit weird.

Has anyone been confronted with the same problem and found a solution/fix, or is it a bug to be fixed ?

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

1 participant