startall: remove timeout, wait forever

This commit is contained in:
Dietmar Maurer 2016-09-09 10:31:21 +02:00
parent e9619b93bb
commit 3947d0a069

View File

@ -1291,10 +1291,12 @@ __PACKAGE__->register_method ({
$rpcenv->{type} = 'priv'; # to start tasks in background
# 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);
if (!PVE::Cluster::check_cfs_quorum(1)) {
print "waiting for quorum ...\n";
do {
sleep(1);
} while (!PVE::Cluster::check_cfs_quorum(1));
print "got quorum\n";
}
my $autostart = $force ? undef : 1;
my $startList = &$get_start_stop_list($nodename, $autostart);