mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 16:31:09 +00:00
make startall wait up to 60 seconds for quorum
Previously we waited 10 seconds, in PVE 4 system sometimes need more time to initialize all services so the didn't execute the startall command even if a few seconds later cfs quorum was etablished. This is a background process started from the pve-manager init script, thus waiting doesn't interferes with other processes, so wait long enough. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
b819819b75
commit
efedd8c36f
@ -1234,8 +1234,8 @@ __PACKAGE__->register_method ({
|
||||
|
||||
$rpcenv->{type} = 'priv'; # to start tasks in background
|
||||
|
||||
# wait up to 10 seconds for quorum
|
||||
for (my $i = 10; $i >= 0; $i--) {
|
||||
# wait up to 60 seconds for quorum
|
||||
for (my $i = 60; $i >= 0; $i--) {
|
||||
last if PVE::Cluster::check_cfs_quorum($i != 0 ? 1 : 0);
|
||||
sleep(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user