Commit 940fc5c3 authored by Leigh B Stoller's avatar Leigh B Stoller

Add some new state transitions for catching reload failures early.

   RELOADSETUP -> RELOADFAILED
   RELOADING -> RELOADFAILED
   RELOADFAILED -> SHUTDOWN
parent 840d34cd
......@@ -3199,7 +3199,9 @@ sub ShareLanAux($$)
$slice->UnLock();
return GeniResponse->Create(GENIRESPONSE_SUCCESS,
defined($lan_cred) ?
$lan_cred->asString() : undef);
[{"geni_credential" =>
$lan_cred->asString()}] :
undef);
}
#
# Revoking is a litte trickier since we have to worry about the
......
......@@ -695,6 +695,12 @@ REPLACE INTO state_transitions VALUES ('PXEFBSD','SHUTDOWN','PXEBOOTING','DHCP')
REPLACE INTO state_transitions VALUES ('SECURELOAD','TPMSIGNOFF','GPXEBOOTING','ReloadDone');
REPLACE INTO state_transitions VALUES ('SECUREBOOT','SHUTDOWN','GPXEBOOTING','QuoteOK');
REPLACE INTO state_transitions VALUES ('SECUREBOOT','SHUTDOWN','SECVIOLATION','QuoteFailed');
REPLACE INTO state_transitions VALUES ('RELOAD','RELOADSETUP','RELOADFAILED','');
REPLACE INTO state_transitions VALUES ('RELOAD','RELOADING','RELOADFAILED','');
REPLACE INTO state_transitions VALUES ('RELOAD','RELOADFAILED','SHUTDOWN','');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','RELOADSETUP','RELOADFAILED','');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','RELOADING','RELOADFAILED','');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','RELOADFAILED','SHUTDOWN','');
--
-- Dumping data for table `state_triggers`
......
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