Commit 6cc159aa authored by Mike Hibler's avatar Mike Hibler
Browse files

Adjust another stated timeout for the new HPs: RELOAD/SHUTDOWN.

Note that node_type_attributes.bios_waittime could be used to
dynamically adjust the stated timeout, but I don't want to embed
semantics of a particular state in stated, so we would have to
have some more general mechanism to tell stated to adjust the
timeout value based on a database field.
parent 0fae2374
......@@ -401,7 +401,7 @@ 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,'STATE:RELOADFAILED');
REPLACE INTO state_timeouts VALUES ('RELOAD','SHUTDOWN',120,'REBOOT');
REPLACE INTO state_timeouts VALUES ('RELOAD','SHUTDOWN',360,'REBOOT');
REPLACE INTO state_timeouts VALUES ('USERSTATUS','ACTIVE',0,'');
REPLACE INTO state_timeouts VALUES ('USERSTATUS','FROZEN',0,'');
REPLACE INTO state_timeouts VALUES ('USERSTATUS','NEWUSER',0,'');
......
#
# Increase SHUTDOWN timeout to 360 seconds for RELOAD.
# New HP machines with 4 25Gb interfaces take forever to get through BIOS.
# (where "forever" > 120 seconds).
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("UPDATE state_timeouts SET timeout=360 ".
"WHERE op_mode='RELOAD' AND state='SHUTDOWN'");
return 0;
}
1;
Supports Markdown
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