]> git.proxmox.com Git - pve-ha-manager.git/commit
cleanup manager status on start
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Jul 2016 09:17:47 +0000 (11:17 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 22 Jul 2016 09:20:49 +0000 (11:20 +0200)
commit6ee64cfc4b67843ec2b837dc8bacfbcc5a3544a1
tree74f374c53a10879612e9e9b2ad357ef00fc50dcd
parentb6056542c40054233572875b6223ae096aa059d9
cleanup manager status on start

Cleanup the manager state in a general way if we get promoted to
manager. This safes us code as instead of having to check all
deprecated entries and delete them, each one extra, we just safe the
state part needed to change master without loosing any result of the
manager status and just delete the rest.
This would include the following keys:
* service status: as it may contain unprocessed results
* manager_node: this is set only once before this cleanup so do not
  delete it.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm