]> git.proxmox.com Git - pve-ha-manager.git/commit
manager: ensure node-request state transferred to new active CRM
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Apr 2023 12:24:23 +0000 (14:24 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Apr 2023 12:10:18 +0000 (14:10 +0200)
commit26bbff0d552f17b8d28d5d452130c34d1632385a
treea5834d8bc50a3f76cee2c0dd6f9b020ad09c9716
parent6925144443f89b9ca2861ff8bd152ee8f6b30814
manager: ensure node-request state transferred to new active CRM

We do not just take the full CRM status of the old master if a new
one gets active, we only take over the most relevant parts like node
state. But the relative new node_request object entry is also
important, as without that a maintenance state request may get lost
if a new CRM becomes the active master.

Simply copy it over on initial manager construction, if it exists.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm
src/test/test-crm-maintenance-request3/log.expect