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-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
3522a680
Commit
3522a680
authored
Nov 03, 2014
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor debugging changes.
parent
238d3175
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
protogeni/xmlrpc/protogeni-wrapper.pl.in
protogeni/xmlrpc/protogeni-wrapper.pl.in
+18
-7
No files found.
protogeni/xmlrpc/protogeni-wrapper.pl.in
View file @
3522a680
...
...
@@ -411,6 +411,8 @@ $logfile->Open();
# Put the logfile into the environment for callee.
$ENV
{'
LOGFILEID
'}
=
$logfile
->
logid
();
$ENV
{'
LOGFILEIDX
'}
=
$logfile
->
logidx
();
my
$logurn
=
GeniHRN::
Generate
("
@OURDOMAIN
@
",
"
log
",
$logfile
->
logid
());
my
$logurl
=
"
$TBBASE
/spewlogfile.php3?logfile=
"
.
$logfile
->
logid
();
# Metadata
my
$message
=
"";
my
@metadata
=
();
...
...
@@ -424,7 +426,7 @@ sub WrapperFork()
my
$parent_lockname
=
"
lock_
$PID
";
# Before the fork, lock the lock in the parent. It will be
# unlocked just before the parent exits, th
i
s informing the
# unlocked just before the parent exits, th
u
s informing the
# child.
emdb::
DBQueryWarn
("
select GET_LOCK('
$parent_lockname
', 5)
");
...
...
@@ -503,7 +505,12 @@ $SIG{__WARN__} = sub {
};
$SIG
{
__DIE__
}
=
sub
{
my
$message
=
shift
;
confess
(
$message
);
if
(
$warned
)
{
die
(
$message
);
}
else
{
confess
(
$message
);
}
};
#
...
...
@@ -572,6 +579,8 @@ if ($method eq "CreateSliver" ||
$method
eq
"
UpdateTicket
"
||
$method
eq
"
RedeemTicket
"
||
$method
eq
"
CreateImage
"
||
$method
eq
"
CreateDataset
"
||
$method
eq
"
DeleteDataset
"
||
$method
eq
"
PerformOperationalAction
"
||
$method
eq
"
Provision
"
||
$method
eq
"
Allocate
"
||
...
...
@@ -624,8 +633,11 @@ if (!defined($user_certificate)) {
# chain to find the CA.
#
if
(
$user_certificate
->
VerifySSLChain
(
@chaincerts
))
{
print
STDERR
"
Could not verify user certificate chain:
\n
";
print
STDERR
"
Could not verify user certificate chain
\n
";
print
STDERR
"
LogURL:
$logurl
\n
";
print
STDERR
Dumper
([
$user_certificate
,
@chaincerts
]);
print
STDERR
"
-------------- Request -----------------
\n
";
print
STDERR
Dumper
(
$request
)
.
"
\n
";
AddLogfileMetaData
("
cert_error
",
"
Could not verify user certificate chain
");
if
(
1
)
{
...
...
@@ -638,7 +650,10 @@ else {
my
$errorstr
;
if
(
$user_certificate
->
VerifyGeniChain
(
\
$errorstr
,
@chaincerts
))
{
print
STDERR
"
Failed to verify Geni chain (user cert):
$errorstr
\n
";
print
STDERR
"
LogURL:
$logurl
\n
";
print
STDERR
Dumper
([
$user_certificate
,
@chaincerts
]);
print
STDERR
"
-------------- Request -----------------
\n
";
print
STDERR
Dumper
(
$request
)
.
"
\n
";
AddLogfileMetaData
("
cert_error
",
"
Failed to verify Geni chain (user cert):
$errorstr
");
if
(
0
)
{
...
...
@@ -685,10 +700,6 @@ else {
my
$elapsed
=
tv_interval
(
$starttime
);
push
(
@metadata
,
["
EndTime
",
TBTimeStamp
()]);
push
(
@metadata
,
["
Elapsed
",
sprintf
("
%.2f
",
$elapsed
)]);
my
$logurn
=
GeniHRN::
Generate
("
@OURDOMAIN
@
",
"
log
",
$logfile
->
logid
());
my
$logurl
=
"
$TBBASE
/spewlogfile.php3?logfile=
"
.
$logfile
->
logid
();
push
(
@metadata
,
["
LogURN
",
$logurn
]);
push
(
@metadata
,
["
LogURL
",
$logurl
]);
...
...
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