Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
45ffd2dc
Commit
45ffd2dc
authored
Jun 18, 2013
by
Leigh B Stoller
Browse files
Record cleanupslice in Logfile for post mortem debugging.
parent
2680d6a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/scripts/expire_daemon.in
View file @
45ffd2dc
...
...
@@ -134,6 +134,7 @@ use Node;
use
libtestbed
;
use
emutil
;
use
libEmulab
;
use
Logfile
;
#
# So we know who/what we are acting as.
...
...
@@ -416,7 +417,18 @@ sub ExpireSlices()
}
cleanup:
my
$slice_uuid
=
$slice
->
uuid
();
system
("
$CLEANUPSLICE
-f -m
$slice_uuid
");
my
$output
=
emutil::
ExecQuiet
("
$CLEANUPSLICE
-f -m
$slice_uuid
");
my
$status
=
$?
;
my
$logfile
=
Logfile
->
CreateFromString
(
$experiment
->
gid_idx
(),
$output
);
if
(
defined
(
$logfile
))
{
$logfile
->
SetMetadata
([["
slice_idx
",
$slice
->
idx
()],
["
slice_urn
",
$slice
->
urn
()],
["
slice_uuid
",
$slice
->
uuid
()],
# For web interface listing
["
Method
",
"
Cleanup
"],
],
1
);
}
if
(
$?
)
{
print
STDERR
"
Could not release
$slice
\n
";
SENDMAIL
(
$TBOPS
,
"
Could not release slice
$slice
",
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment