Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
c7c7cec8
Commit
c7c7cec8
authored
Aug 14, 2015
by
Leigh B Stoller
Browse files
Add a state timeout for RELOADSETUP, that sends the node into RELADFAILED
instead of doing nothing.
parent
8f5a2158
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-fill.sql
View file @
c7c7cec8
...
...
@@ -396,7 +396,7 @@ REPLACE INTO state_timeouts VALUES ('NORMAL','BOOTING',180,'REBOOT');
REPLACE
INTO
state_timeouts
VALUES
(
'NORMALv1'
,
'BOOTING'
,
180
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'BOOTING'
,
180
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'RELOADING'
,
600
,
'NOTIFY'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'RELOADSETUP'
,
60
,
'
NOTIFY
'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'RELOADSETUP'
,
60
,
'
STATE:RELOADFAILED
'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'SHUTDOWN'
,
120
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'ACTIVE'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'FROZEN'
,
0
,
''
);
...
...
sql/updates/4/463
0 → 100644
View file @
c7c7cec8
#
# State timeout for RELOADSETUP, better then notify, which is pointless.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("REPLACE INTO state_timeouts VALUES ".
" ('RELOAD','RELOADSETUP',60,'STATE:RELOADFAILED')");
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment