mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-04 21:14:05 +00:00
* fix(vm): wait for VMs to actually stop when sending a shutdown command Due to how a Proxmox cluster reacts to a VM shutdown command when running in HA mode, the VM might still be running when the shutdown API calls returns. This commit adds a loop that actively waits for the VM's status to change to "stopped" (while also accounting for the shutdown timeout) after the call's return. * chore(refactoring): extracted VM state change wait loop into a separate function * fix(vm): wait for VMs to actually start after requesting it from the cluster This commit forces the plugin to wait for a VM to actually run after requesting it to be started. This avoids problems with Proxmox's High Availability mode, where a start request may not be immediately honoured by the cluster. * fix: linter errors * fix: use `vmAPI.WaitForVMState` --------- Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> |
||
---|---|---|
.. | ||
cluster/firewall | ||
firewall | ||
validator | ||
certificate_test.go | ||
certificate.go | ||
container_test.go | ||
container.go | ||
dns_test.go | ||
dns.go | ||
file_test.go | ||
file.go | ||
group_test.go | ||
group.go | ||
hosts_test.go | ||
hosts.go | ||
pool_test.go | ||
pool.go | ||
role_test.go | ||
role.go | ||
time_test.go | ||
time.go | ||
user_test.go | ||
user.go | ||
vm_test.go | ||
vm.go |