From efedd8c36f7443c1c64f2df74fb5e5c5efaee001 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 9 Nov 2015 11:44:25 +0100 Subject: [PATCH] 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 --- PVE/API2/Nodes.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index 9b7bb9f8..0581e1d9 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -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); }