Commit fde773c0 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Change admission control error from print to tberror with lots of

whacky options that make it a user error, puts the error at the
very top of the email, and stops the error email going to tbops.
parent db7e0b9d
......@@ -764,10 +764,13 @@ sub RunAssign($$)
my $wanted = $vtop->types()->{$type};
if ($wanted > $bound) {
print "*** Resource reservation violation: ".
"$wanted nodes of type $type requested, but only $bound ".
"available because of existing resource reservations ".
"to other projects.\n";
tberror({type => 'primary', cause => 'temp',
severity => SEV_ERROR,
error => ['admission_control_failure']},
"*** Resource reservation violation: ".
"$wanted nodes of type $type requested, but only $bound ".
"available because of existing resource reservations ".
"to other projects.\n");
# Unretriable error
return -1;
}
......
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