]> git.proxmox.com Git - pve-ha-manager.git/commit
do simple fallback if node comes back online from maintenance
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Nov 2019 16:48:42 +0000 (17:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Nov 2019 18:48:34 +0000 (19:48 +0100)
commit2167dd1e6093362ccfbd3ad55c4c4bd0dcebc73d
treeb883db26744c12ae9826d746cfd15739d8410912
parent99278e06a8f1fc9266e24538ee0c1c914cdb68f8
do simple fallback if node comes back online from maintenance

We simply remember the node we where on, if moved for maintenance.
This record gets dropped once we move to _any_ other node, be it:
* our previous node, as it came back from maintenance
* another node due to manual migration, group priority changes or
  fencing

The first point is handled explicitly by this patch. In the select
service node we check for and old fallback node, if that one is found
in a online node list with top priority we _always_ move to it - even
if there's no real reason for a move.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm
src/test/test-shutdown-policy-migrate-fail1/log.expect
src/test/test-shutdown-policy3/log.expect