]> git.proxmox.com Git - pve-ha-manager.git/commit
fix #1339: remove more locks from services IF the node got fenced
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Nov 2019 13:05:30 +0000 (14:05 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Nov 2019 13:13:05 +0000 (14:13 +0100)
commit32ea51ddbedba8b04f0a95217c646fb7d6b2d0b7
tree8f92f70a4701ef38e9f20ad3bac1ce6dd2020fcb
parent6225c47c96015075e5a2b1c7719b0eb293cf9358
fix #1339: remove more locks from services IF the node got fenced

Remove further locks from a service after it was recovered from a
fenced node. This can be done due to the fact that the node was
fenced and thus the operation it was locked for was interrupted
anyway. We note in the syslog that we removed a lock.

Mostly we disallow the 'create' lock, as here is the only case where
we know that the service was not yet in a runnable state before.

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