Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emulab
emulab-devel
Commits
6611b928
Commit
6611b928
authored
20 years ago
by
Leigh B. Stoller
Browse files
Options
Downloads
Patches
Plain Diff
More tweaks.
parent
1efb3ee4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tbsetup/elabinelab.in
+22
-4
22 additions, 4 deletions
tbsetup/elabinelab.in
with
22 additions
and
4 deletions
tbsetup/elabinelab.in
+
22
−
4
View file @
6611b928
...
...
@@ -119,9 +119,11 @@ if (! UserDBInfo($dbuid, \$user_name, \$user_email)) {
die
("
*** $0:
\n
"
.
"
Cannot determine your name and email address.
\n
");
}
TBDebugTimeStampsOn
();
CopyMFS
()
if
(
0
);
TBDebugTimeStamp
("
Dumping DB state
");
DumpDBGoo
();
exit
(
0
)
if
(
$dbgooonly
);
...
...
@@ -131,8 +133,19 @@ exit(0)
# output and email it to TBOPS for debugging.
#
$UID
=
0
;
#
# This is temporary. I think I will switch this over to grabbing the latest
# version from the web server.
#
system
("
scp ~stoller/testbed/testbed/tmcd/common/config/rc.mkelab
"
.
"
${bossnode}
:/tmp
");
system
("
scp ~stoller/testbed/testbed/tmcd/common/config/rc.mkelab
"
.
"
${opsnode}
:/tmp
");
TBDebugTimeStamp
("
Setting up opsnode
");
print
"
Setting up opsnode on
$opsnode
\n
";
system
("
$SSH
-host
$opsnode
/
users/stoller/i.sh
> /tmp/opsnode.$$ 2>&1
");
system
("
$SSH
-host
$opsnode
/
tmp/rc.mkelab -s -d
> /tmp/opsnode.$$ 2>&1
");
if
(
$?
)
{
$UID
=
$SAVEUID
;
SENDMAIL
("
$user_name
<
$user_email
>
",
...
...
@@ -146,8 +159,9 @@ if ($?) {
"
Error building the opsnode (
$opsnode
)!
\n
";
exit
((
$debug
?
0
:
-
1
));
}
TBDebugTimeStamp
("
Setting up bossnode
");
print
"
Setting up bossnode on
$bossnode
\n
";
system
("
$SSH
-host
$bossnode
/
users/stoller/i.sh
> /tmp/bossnode.$$ 2>&1
");
system
("
$SSH
-host
$bossnode
/
tmp/rc.mkelab -s -d
> /tmp/bossnode.$$ 2>&1
");
if
(
$?
)
{
$UID
=
$SAVEUID
;
SENDMAIL
("
$user_name
<
$user_email
>
",
...
...
@@ -184,26 +198,31 @@ if ($?) {
}
# Reboot ops and wait for it to come back.
TBDebugTimeStamp
("
Rebooting opsnode
");
system
("
$nodereboot
-w
$opsnode
");
if
(
$?
)
{
die
("
*** $0:
\n
"
.
"
Error rebooting the opsnode (
$opsnode
)!
\n
");
}
# Reboot boss and wait for it to come back.
TBDebugTimeStamp
("
Rebooting bossnode
");
system
("
$nodereboot
-w
$bossnode
");
if
(
$?
)
{
die
("
*** $0:
\n
"
.
"
Error rebooting the bossnode (
$bossnode
)!
\n
");
}
# Reboot the experimental nodes. They will come up inside the inner elab.
# DO NOT WAIT! They are not going to report ISUP from this point on.
if
(
@expnodes
)
{
TBDebugTimeStamp
("
Rebooting experimental nodes
");
system
("
$nodereboot
@expnodes
");
if
(
$?
)
{
die
("
*** $0:
\n
"
.
"
Error rebooting the expnodes (
@expnodes
)!
\n
");
}
}
TBDebugTimeStamp
("
ElabInElab setup done
");
exit
(
0
);
#
...
...
@@ -277,8 +296,7 @@ sub DumpDBGoo()
# node_id to "ops" and its type to ops.
#
my
@NODETABLES
=
("
node_auxtypes
",
"
node_status
",
"
nodes
",
"
node_rusage
",
"
node_hostkeys
",
"
node_idlestats
",
"
partitions
");
"
node_rusage
",
"
node_hostkeys
",
"
node_idlestats
");
#
# These tables are dumped by project ID.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment