]> git.proxmox.com Git - pve-ha-manager.git/commit
fix #4984: manager: add service to migration-target usage only if online
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 5 Oct 2023 14:05:45 +0000 (16:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Oct 2023 10:22:53 +0000 (12:22 +0200)
commitc7843a315de203f9a44e2d2569f157711324ad56
tree6deb7ab61ccc0898caf49422e5a6881eb12739df
parent4cb3b2cf9baaf069b1fa505ba6c4fe5f7f3659ec
fix #4984: manager: add service to migration-target usage only if online

Otherwise, when using the 'basic' plugin, this would lead to
auto-vilification of the $target node in the Perl hash tracking the
usage and it would wrongly be considered online when selecting the
recovery node.

The 'static' plugin was not affected, because it would check and warn
before adding usage to a node that was not registered with add_node()
first. Doing the same in the 'basic' plugin will be done by another
patch.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
 [ TL: shorten commit message subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm