Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
1e0b190b
Commit
1e0b190b
authored
Jul 28, 2016
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write new reservation checking results to /usr/testbed/etc/rescheck.txt
parent
be17f1f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
apt/manage_instance.in
apt/manage_instance.in
+9
-0
No files found.
apt/manage_instance.in
View file @
1e0b190b
...
@@ -1713,6 +1713,7 @@ sub DoCheckReservation()
...
@@ -1713,6 +1713,7 @@ sub DoCheckReservation()
sub
CheckReservationInternal
($$$)
sub
CheckReservationInternal
($$$)
{
{
my
(
$slice
,
$expiration
,
$perrmsg
)
=
@_
;
my
(
$slice
,
$expiration
,
$perrmsg
)
=
@_
;
my
$rescheck
=
"
$TB
/etc/rescheck.txt
";
my
$errcode
=
-
1
;
my
$errcode
=
-
1
;
my
$errmsg
;
my
$errmsg
;
...
@@ -1773,8 +1774,16 @@ sub CheckReservationInternal($$$)
...
@@ -1773,8 +1774,16 @@ sub CheckReservationInternal($$$)
$agg
->
webtask
()
->
Refresh
();
$agg
->
webtask
()
->
Refresh
();
$errmsg
=
$agg
->
webtask
()
->
output
();
$errmsg
=
$agg
->
webtask
()
->
output
();
$errcode
=
$agg
->
webtask
()
->
exitcode
();
$errcode
=
$agg
->
webtask
()
->
exitcode
();
if
(
$code
==
GENIRESPONSE_REFUSED
)
{
system
("
/bin/echo 'DENIED:
$slice
,
$expiration
,
$agg
'
"
.
"
>>
$rescheck
");
}
goto
bad
;
goto
bad
;
}
}
else
{
system
("
/bin/echo 'ACCEPT:
$slice
,
$expiration
,
$agg
'
"
.
"
>>
$rescheck
");
}
}
}
return
0
;
return
0
;
...
...
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