All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit abb90f05 authored by Leigh B Stoller's avatar Leigh B Stoller

Do not update the shared node experiment when logins are turned off.

Typically means something is happening, and do not want to get caught
in the middle.

Just a bandaid. There are so many ways this daemon could mess up.
Needs a bunch of work.
parent 56e019c3
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2009 University of Utah and the Flux Group.
# Copyright (c) 2009, 2010 University of Utah and the Flux Group.
# All rights reserved.
#
use strict;
......@@ -145,6 +145,8 @@ if (!defined($image)) {
}
while (1) {
my $disabled;
# Use a long period; we do not want the pool to change too fast.
if (!$startup) {
$startup++;
......@@ -152,9 +154,13 @@ while (1) {
else {
sleep(120);
}
print "Pool Daemon running at ".`date`;
if (! TBGetSiteVar("web/nologins", \$disabled) || $disabled) {
print " Skipping this loop cause of nologins\n";
next;
}
Node->FlushAll();
$experiment->Refresh() == 0
or fatal("Could not reload $experiment");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment