Wen restarting the LRM (e.g. on a update) we get an new pid and thus
have to wait for our own lock to timeout.
We can (and should) do that as there are no services or all services
are freezed. If they are freezed only our LRM may touch them so we
we can unfreeze them faster with this patch.
The expected log of the restart-lrm test does not change much as the
test system does not need to wait for a timeout.
This let's the LRM start working directly after a restart,
especially usefull on package updates.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
}
$shutdown = 1;
+
+ # restart with no or freezed services, release the lock
+ $haenv->release_ha_agent_lock();
}
}
} else {
info 126 node3/lrm: exit (loop end)
info 126 node3/lrm: status change startup => wait_for_agent_lock
info 160 node1/crm: service 'vm:103': state changed from 'freeze' to 'started'
+info 165 node3/lrm: got lock 'ha_agent_node3_lock'
info 165 node3/lrm: status change wait_for_agent_lock => active
info 720 hardware: exit simulation - done