]> git.proxmox.com Git - pve-cluster.git/commit
corosync.conf sync: reload after sleep
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 7 Jul 2022 08:21:52 +0000 (10:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Jul 2022 09:34:57 +0000 (11:34 +0200)
commitf64bc7290b1a6a032711e52f983b5ebaacf23d00
tree9325d016bc237dcc9d5065f7c942f2080790f060
parent665156658d8f492406ab4272b461d7ed9d6716d2
corosync.conf sync: reload after sleep

if processing a corosync.conf update is delayed on a single node,
reloading the config too early can have disastrous results (loss of
token and HA fence). artifically delay the reload command by one second
to allow update propagation in most scenarios until a proper solution
(e.g., using broadcasting/querying of locally deployed config versions)
has been developed and fully tested.

reported on the forum:
https://forum.proxmox.com/threads/expanding-cluster-reboots-all-vms.110903/

reported issue can be reproduced by deploying a patched pmxcfs on
non-reloading node that sleeps before writing out a broadcasted
corosync.conf update and adding a node to the cluster, leading to the
following sequence of events:

- corosync config reload command received
- corosync config update written out

which causes that particular node to have a different view of cluster
topology, causing all corosync communication to fail for all nodes until
corosync on the affected node is restarted (the on-disk config is
correct after all, just not in effect).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
data/src/dcdb.c