This series can be split in two parts. The first two fixing the relocation of resources and also the migration from HA managed CTs, as there is no live migration possible we do a relocate, meaning we stop and then start the CT on the other node.
The second two commits make updating the ha-manager package easier or at least faster. The current cluster resource manager (CRM) releases its' lock on a shutdown request so that another node can directly step up and continue the manager work witouth waiting for the lock to expire. This means we can reduce the delay from 2 minutes to a few seconds where no cluster related actions are executed. More details in the patches and code. Thomas Lamprecht (4): resource agents: generate parameters inside resource classes resource agents: fix relocate CRM: release lock on shutdown request TestHardware: call CRM shutdown request and add lock release tests src/PVE/HA/CRM.pm | 8 ++++ src/PVE/HA/Env.pm | 9 ++++ src/PVE/HA/Env/PVE2.pm | 37 ++++++--------- src/PVE/HA/Manager.pm | 9 +++- src/PVE/HA/Resources.pm | 82 +++++++++++++++++++++++++++++---- src/PVE/HA/Sim/Env.pm | 9 ++++ src/PVE/HA/Sim/TestHardware.pm | 20 ++++++-- src/test/test-reboot2/README | 2 + src/test/test-reboot2/cmdlist | 4 ++ src/test/test-reboot2/hardware_status | 5 ++ src/test/test-reboot2/log.expect | 35 ++++++++++++++ src/test/test-reboot2/manager_status | 1 + src/test/test-reboot2/service_config | 3 ++ src/test/test-shutdown3/log.expect | 58 +++++++++++++++++++++++ src/test/test-shutdown4/README | 4 ++ src/test/test-shutdown4/cmdlist | 4 ++ src/test/test-shutdown4/hardware_status | 5 ++ src/test/test-shutdown4/log.expect | 45 ++++++++++++++++++ src/test/test-shutdown4/manager_status | 1 + src/test/test-shutdown4/service_config | 3 ++ 20 files changed, 303 insertions(+), 41 deletions(-) create mode 100644 src/test/test-reboot2/README create mode 100644 src/test/test-reboot2/cmdlist create mode 100644 src/test/test-reboot2/hardware_status create mode 100644 src/test/test-reboot2/log.expect create mode 100644 src/test/test-reboot2/manager_status create mode 100644 src/test/test-reboot2/service_config create mode 100644 src/test/test-shutdown3/log.expect create mode 100644 src/test/test-shutdown4/README create mode 100644 src/test/test-shutdown4/cmdlist create mode 100644 src/test/test-shutdown4/hardware_status create mode 100644 src/test/test-shutdown4/log.expect create mode 100644 src/test/test-shutdown4/manager_status create mode 100644 src/test/test-shutdown4/service_config -- 2.1.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel