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
a77fd940
Commit
a77fd940
authored
Jul 17, 2013
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix: watch for slices with no experiment created yet.
parent
e5eb478c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
12 deletions
+25
-12
protogeni/scripts/expire_daemon.in
protogeni/scripts/expire_daemon.in
+25
-12
No files found.
protogeni/scripts/expire_daemon.in
View file @
a77fd940
...
...
@@ -409,18 +409,25 @@ sub ExpireSlices()
}
else
{
if
(
$slice
->
isplaceholder
())
{
print
STDERR
"
Releasing placeholder
$slice
$experiment
.
\n
";
print
STDERR
"
Releasing placeholder
$slice
";
print
STDERR
"
-
$experiment
"
if
(
defined
(
$experiment
));
print
STDERR
"
\n
";
}
else
{
print
STDERR
"
Expiring
$slice
$experiment
.
\n
";
print
STDERR
"
Expiring
$slice
";
print
STDERR
"
-
$experiment
"
if
(
defined
(
$experiment
));
print
STDERR
"
\n
";
}
}
cleanup:
my
$slice_uuid
=
$slice
->
uuid
();
my
$output
=
emutil::
ExecQuiet
("
$CLEANUPSLICE
-f -m
$slice_uuid
");
my
$status
=
$?
;
my
$logfile
=
Logfile
->
CreateFromString
(
$experiment
->
gid_idx
(),
$output
);
if
(
defined
(
$experiment
))
{
my
$gid_idx
=
$experiment
->
gid_idx
();
my
$logfile
=
Logfile
->
CreateFromString
(
$gid_idx
,
$output
);
if
(
defined
(
$logfile
))
{
$logfile
->
SetMetadata
([["
slice_idx
",
$slice
->
idx
()],
["
slice_urn
",
$slice
->
urn
()],
...
...
@@ -430,6 +437,10 @@ sub ExpireSlices()
],
1
);
$logfile
->
Store
();
}
}
else
{
print
STDERR
"
$output
\n
";
}
if
(
$?
)
{
print
STDERR
"
Could not release
$slice
\n
";
SENDMAIL
(
$TBOPS
,
"
Could not release slice
$slice
",
...
...
@@ -443,6 +454,8 @@ sub ExpireSlices()
skip:
$slice
->
Flush
()
if
(
defined
(
$slice
));
$experiment
->
Flush
()
if
(
defined
(
$experiment
));
}
}
...
...
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