Commit 7a5edca5 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Some elabinelab related stuff.

* Add security_level to experiments table.

* Add a cross link between an experiment and its elabinelab container.
  This will like change at some point, but just messing around right now.

* Add elabinelab flag, security level, and cross eid to experiment_stats table.
parent beaf5cd2
......@@ -283,6 +283,9 @@ CREATE TABLE experiment_stats (
idle_swaps smallint(5) unsigned default '0',
swapin_duration int(10) unsigned default '0',
batch tinyint(3) unsigned default '0',
elabinelab tinyint(1) unsigned default '0',
elabinelab_exptidx int(10) unsigned default NULL,
security_level tinyint(1) NOT NULL default '0',
PRIMARY KEY (eid,pid,exptidx),
KEY exptidx (exptidx),
KEY rsrcidx (rsrcidx)
......@@ -361,6 +364,8 @@ CREATE TABLE experiments (
modelnetcore_osname varchar(20) default NULL,
modelnetedge_osname varchar(20) default NULL,
elab_in_elab tinyint(1) NOT NULL default '0',
elabinelab_eid varchar(32) default NULL,
security_level tinyint(1) NOT NULL default '0',
PRIMARY KEY (eid,pid),
KEY idx (idx),
KEY batchmode (batchmode)
......
......@@ -2146,3 +2146,17 @@ last_net_act,last_cpu_act,last_ext_act);
ID in firewalls table:
alter table firewalls add vlanid int(11) default NULL;
1.286: ElabinElab and Firewall stuff
alter table experiments add elabinelab_eid varchar(32) \
default NULL after elab_in_elab;
alter table experiments add security_level tinyint(1) NOT NULL \
default '0' after elabinelab_eid;
alter table experiment_stats add elabinelab tinyint(1) NOT NULL \
default '0' after batch;
alter table experiment_stats add elabinelab_exptidx int(10) \
unsigned default NULL after elabinelab;
alter table experiment_stats add security_level tinyint(1) NOT NULL \
default '0' after elabinelab_exptidx;
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