terraform-provider-proxmox: v3.0.1-rc3: IP not found and agent_timeout not being used
Contrary to the PR https://github.com/Telmate/terraform-provider-proxmox/pull/1016 and to what the documentation https://registry.terraform.io/providers/telmate/proxmox/3.0.1-rc3/docs/resources/vm_qemu says, agent_timeout is not being used, which results in VMs being created and then the following error:
I do use agent_timeout in the module:
but it’s not being shown in the plan output:
The only difference with previous templates I tried to clone is that there is now SSH installed. I am not sure why it cannot find the IP address as it shows it in the GUI. I would expect agent_timeout to help, as the error suggests, but it does not do anything unfortunately. It also sometimes work on one VM or the other, pretty randomly as it seems, so doing multiple terraform apply helps, kinda.
Here is the full output with TF_VAR_LOG=DEBUG:
To reproduce:
- create a windows template with SSH server installed and clone it (linked clone) with terraform
- create a VM from a template with terraform and use
agent_timeout
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26
Commits related to this issue
- Merge branch 'Telmate:master' into #1106 — committed to Tinyblargon/terraform-provider-proxmox by Tinyblargon 2 years ago
- Merge branch 'master' into #1106 — committed to Tinyblargon/terraform-provider-proxmox by Tinyblargon 2 years ago
- Merge pull request #1276 from Tinyblargon/#1106-3 fix: agent_timeout never set — committed to Telmate/terraform-provider-proxmox by Tinyblargon 2 years ago
Found the commit that most likely broke it. Ironically it separated the logic so it would be easier to test.
https://github.com/Telmate/terraform-provider-proxmox/commit/18095e5a3ee23b44029b22693b687eb6e9dac6ad#diff-104365919f693375882979581d9f36f5266991eef361948e56c220931fe886ddL1916
@arty-hlr it should be fixed so they are ignored.
@arty-hlr when you compile the branch, the compiled binary has to be renamed to
linux_amd64, then you can put at.terraform/providers/terraform.local/local/proxmox/1.0.0/linux_amd64inside your terraform project developer.md has more information about this.