Commit c6c5d2b4 authored by Leigh Stoller's avatar Leigh Stoller

Add a new state transition specific to VM booting, to catch hangs between

time we "xl create" and the guest sends in a TBSETUP. We sometimes hang up
here for reasons that elude us, but a restart from boss usually gets it
going the second time.

Also add a couple of missing state transitions that stated was whining
about.
parent 38bc790d
......@@ -582,6 +582,11 @@ REPLACE INTO state_transitions VALUES ('NORMALv2','ISUP','RECONFIG','DoReConfig'
REPLACE INTO state_transitions VALUES ('NORMALv2','RECONFIG','TBSETUP','ReConfig');
REPLACE INTO state_transitions VALUES ('NORMALv2','TBSETUP','ISUP','BootDone');
REPLACE INTO state_transitions VALUES ('NORMALv1','TBSETUP','SHUTDOWN','Error');
REPLACE INTO state_transitions VALUES ('NORMALv2','BOOTING','VNODEBOOTSTART','xencreate');
REPLACE INTO state_transitions VALUES ('NORMALv2','VNODEBOOTSTART','TBSETUP','realboot');
REPLACE INTO state_transitions VALUES ('NORMALv2','VNODEBOOTSTART','SHUTDOWN','bootfail');
REPLACE INTO state_transitions VALUES ('NORMALv2','BOOTING','BOOTING','vnodesetup');
REPLACE INTO state_transitions VALUES ('NORMALv2','SHUTDOWN','BOOTING','vnode_setup');
REPLACE INTO state_transitions VALUES ('NORMAL','SHUTDOWN','SHUTDOWN','Retry');
REPLACE INTO state_transitions VALUES ('NETBOOT','PXEBOOTING','BOOTING','BootInfo');
REPLACE INTO state_transitions VALUES ('NODEALLOC','RES_INIT_CLEAN','RES_CLEAN_REBOOT','Reboot');
......
#
# Stated stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("REPLACE INTO state_transitions VALUES ".
"('NORMALv2','BOOTING','BOOTING','vnodesetup')");
DBQueryFatal("REPLACE INTO state_transitions VALUES ".
"('NORMALv2','SHUTDOWN','BOOTING','vnode_setup')");
DBQueryFatal("REPLACE INTO state_transitions VALUES ".
"('NORMALv2','BOOTING','VNODEBOOTSTART','xencreate')");
DBQueryFatal("REPLACE INTO state_transitions VALUES ".
"('NORMALv2','VNODEBOOTSTART','TBSETUP','realboot')");
DBQueryFatal("REPLACE INTO state_transitions VALUES ".
"('NORMALv2','VNODEBOOTSTART','SHUTDOWN','bootfail')");
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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