Commit 1ff7fb90 authored by Mike Hibler's avatar Mike Hibler

Call out to tevc to send blockstore shutdown event to experiment.

Was using internal EventSend but that is really just for talking
to boss and we need to talk to ops.
parent 8b5261a9
......@@ -2207,15 +2207,14 @@ sub PreSwap($$$$)
my $eid = $self->eid();
print "Telling nodes to shutdown remote blockstores\n";
event::EventSendWarn(objtype => "BSTORE",
objname => "rem-bstore",
eventtype => "STOP",
expt => "$pid/$eid",
host => "event-server");
if (system("$TEVC -e $pid/$eid now rem-bstore stop")) {
print "*** WARNING: Could not send blockstore shutdown event!\n";
}
# XXX we take down the VLANs immediately after this, so wait a bit
else {
sleep(2);
}
}
return 0;
......
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