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

fix(vm): fixed startup / shutdown behaviour on HA clusters #508

Merged
merged 7 commits into from
Aug 21, 2023

Commits on Aug 20, 2023

  1. 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.
    tseeker committed Aug 20, 2023
    Configuration menu
    Copy the full SHA
    d6f04dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e32977 View commit details
    Browse the repository at this point in the history
  3. 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.
    tseeker committed Aug 20, 2023
    Configuration menu
    Copy the full SHA
    f33cd20 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9c9cdaf View commit details
    Browse the repository at this point in the history
  5. fix: linter errors

    bpg committed Aug 20, 2023
    Configuration menu
    Copy the full SHA
    6b66b64 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. fix: use vmAPI.WaitForVMState

    bpg committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    d834138 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07de66b View commit details
    Browse the repository at this point in the history