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
9e0ac444
Commit
9e0ac444
authored
Aug 19, 2009
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump the assign error log to STDERR after a failed mapper run,
so lands in the email message.
parent
de38364f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
protogeni/lib/GeniCM.pm.in
protogeni/lib/GeniCM.pm.in
+22
-0
No files found.
protogeni/lib/GeniCM.pm.in
View file @
9e0ac444
...
...
@@ -968,6 +968,17 @@ sub GetTicket($;$)
$
slice_experiment
->
RemovePhysicalState
();
$
slice_experiment
->
RestorePhysicalState
();
}
#
#
Lets
dump
the
error
log
too
,
so
it
ends
up
in
the
email
.
#
Have
to
figure
out
a
better
approach
for
this
.
#
if
(-
e
"assign.log"
)
{
print
STDERR
"----------------------------------------------
\n
"
;
print
STDERR
"------------- Assign Error Log ---------------
\n
"
;
my
$
log
=
`
cat
assign
.
log
`;
print
STDERR
$
log
.
"
\n
"
;
print
STDERR
"----------------------------------------------
\n
"
;
}
goto
bad
;
}
my
$
solution
=
XMLin
($
tmpfile
,
KeyAttr
=>
[],
...
...
@@ -1589,6 +1600,17 @@ sub SliverWork($$)
system
(
"$MAPPER -d -v -u -m 3 $pid $eid"
);
if
($?)
{
print
STDERR
"Mapper failed!
\n
"
;
#
#
Lets
dump
the
error
log
too
,
so
it
ends
up
in
the
email
.
#
Have
to
figure
out
a
better
approach
for
this
.
#
if
(-
e
"assign.log"
)
{
print
STDERR
"----------------------------------------------
\n
"
;
print
STDERR
"------------- Assign Error Log ---------------
\n
"
;
my
$
log
=
`
cat
assign
.
log
`;
print
STDERR
$
log
.
"
\n
"
;
print
STDERR
"----------------------------------------------
\n
"
;
}
goto
bad
;
}
...
...
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