]> git.proxmox.com Git - pve-ha-manager.git/commit - src/PVE/HA/Manager.pm
resource agents: fix relocate
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 13 Jan 2016 14:15:31 +0000 (15:15 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 15 Jan 2016 07:29:46 +0000 (08:29 +0100)
commitc0255b2cfb7ee15a25c81f02c190fea41bbc14d2
tree64b0e7b961d0ec6562a71a52410a70028e10e67a
parentb865e4cb3d86d7e5f4224773468303425702c986
resource agents: fix relocate

Previously a relocate from a running VM wasn't possible as we always
tried to migrate online, this patch fixes that.

Also only VMs may migrate online for now Container will always get relocated.

This avoids also confusion from the 'migrate (running)' log message
in case of CTs as the always get relocated.

Fixes test test-shutdown3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Env/PVE2.pm
src/PVE/HA/Manager.pm
src/PVE/HA/Resources.pm
src/test/test-shutdown3/log.expect [new file with mode: 0644]