Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
8c0b6ea6
Commit
8c0b6ea6
authored
Sep 15, 2005
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account for new 'ops+fs' role.
Add tiplines table to inner DB state so we get the nifty console icon.
parent
6c9d580f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
tbsetup/elabinelab.in
tbsetup/elabinelab.in
+16
-4
No files found.
tbsetup/elabinelab.in
View file @
8c0b6ea6
...
...
@@ -605,7 +605,7 @@ sub DumpDBGoo()
"
v.pid=r.pid and v.eid=r.eid
"
.
"
where r.pid='
$pid
' and r.eid='
$eid
' and
"
.
"
t.node_id is not null and
"
.
"
v.inner_elab_role in ('node','fs','ops')
")
"
v.inner_elab_role in ('node','fs','ops'
,'ops+fs'
)
")
or
die
("
*** $0:
\n
"
.
"
Could not create temporary table temp_
$table
\n
");
#
...
...
@@ -750,7 +750,7 @@ sub DumpDBGoo()
"
left join virt_nodes as v on v.vname=r.vname and
"
.
"
v.pid=r.pid and v.eid=r.eid
"
.
"
where r.pid='
$pid
' and r.eid='
$eid
' and
"
.
"
v.inner_elab_role in ('node','ops','fs')
")
"
v.inner_elab_role in ('node','ops','fs'
,'ops+fs'
)
")
or
die
("
*** $0:
\n
"
.
"
Could not create temporary table temp_interfaces
\n
");
...
...
@@ -800,7 +800,7 @@ sub DumpDBGoo()
"
left join wires as t on t.node_id1=r.node_id and
"
.
"
t.type='Node'
"
.
"
where r.pid='
$pid
' and r.eid='
$eid
' and
"
.
"
v.inner_elab_role in ('node','ops','fs')
")
"
v.inner_elab_role in ('node','ops','fs'
,'ops+fs'
)
")
or
die
("
*** $0:
\n
"
.
"
Could not create temporary table temp_wires
\n
");
...
...
@@ -847,7 +847,7 @@ sub DumpDBGoo()
"
left join virt_nodes as v on v.vname=r.vname and
"
.
"
v.pid=r.pid and v.eid=r.eid
"
.
"
where r.pid='
$pid
' and r.eid='
$eid
'
"
.
"
and v.inner_elab_role in ('fs','ops')
")
"
and v.inner_elab_role in ('fs','ops'
,'ops+fs'
)
")
or
die
("
*** $0:
\n
"
.
"
Could not create temporary table temp_reserved
\n
");
if
(
defined
(
$fsnode
))
{
...
...
@@ -871,6 +871,18 @@ sub DumpDBGoo()
or
die
("
*** $0:
\n
"
.
"
Could not dump table reserved
\n
");
# Copy tiplines table for all nodes so web form gives us a console icon!
DBQueryWarn
("
select t.tipname,t.node_id,'',0,0,NULL
"
.
"
from reserved as r
"
.
"
left join virt_nodes as v on v.vname=r.vname and
"
.
"
v.pid=r.pid and v.eid=r.eid
"
.
"
left join tiplines as t on t.node_id=r.node_id
"
.
"
where r.pid='
$pid
' and r.eid='
$eid
' and
"
.
"
v.inner_elab_role='node'
"
.
"
into outfile '
$statedir
/tiplines'
")
or
die
("
*** $0:
\n
"
.
"
Could not dump table tiplines
\n
");
#
# Tar up the directory and send it over to (real) ops.
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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