]> git.proxmox.com Git - pve-ha-manager.git/commit
manager: clear stale maintenance node caused by simultaneous cluster shutdown
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 12 Jun 2023 15:27:11 +0000 (17:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Jun 2023 06:33:52 +0000 (08:33 +0200)
commit17c6cbeab9ab48f2e26b1ecb64ca298d80725e1f
treec08346c91343df1af92ed5062009666abbd76d5c
parenta1b9918d3031cdaa6a67632f2f432fd7292a4a63
manager: clear stale maintenance node caused by simultaneous cluster shutdown

Currently, the maintenance node for a service is only cleared when the
service is started on another node. In the edge case of a simultaneous
cluster shutdown however, it might be that the service never was
started anywhere else after the maintenance node was recorded, because
the other nodes were already in the process of being shut down too.

If a user ends up in this edge case, it would be rather surprising
that the service would be automatically migrated back to the
"maintenance node" which actually is not in maintenance mode anymore
after a migration away from it.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/HA/Manager.pm
src/test/test-stale-maintenance-node/log.expect