Commit 482a814e authored by Leigh B Stoller's avatar Leigh B Stoller

Add an errorlog text field to aggregate and sliver DB objects, to hold

top level error info for later return. This allows non-node slivers to
return useful info in sliverstatus.
parent 023ffa46
......@@ -87,6 +87,7 @@ CREATE TABLE `geni_slivers` (
`aggregate_uuid` varchar(40) default NULL,
`status` varchar(16) NOT NULL default 'created',
`state` varchar(16) NOT NULL default 'stopped',
`errorlog` text,
`rspec_string` text,
PRIMARY KEY (`idx`),
UNIQUE KEY `uuid` (`uuid`),
......@@ -111,6 +112,7 @@ CREATE TABLE `geni_aggregates` (
`aggregate_idx` int(10) unsigned default NULL,
`status` varchar(16) NOT NULL default 'created',
`state` varchar(16) NOT NULL default 'stopped',
`errorlog` text,
PRIMARY KEY (`idx`),
UNIQUE KEY `uuid` (`uuid`),
INDEX `slice_uuid` (`slice_uuid`)
......
#
# Beef up the geni_resources table for use in cooked mode.
#
use strict;
use GeniDB;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBSetDefault($dbhandle);
if (!DBSlotExists("geni_aggregates", "errorlog")) {
DBQueryFatal("alter table geni_aggregates add ".
" `errorlog` text ".
"after state");
}
if (!DBSlotExists("geni_slivers", "errorlog")) {
DBQueryFatal("alter table geni_slivers add ".
" `errorlog` text ".
"after state");
}
return 0;
}
1;
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