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
f8295864
Commit
f8295864
authored
Nov 05, 2003
by
Kirk Webb
Browse files
Fixed bug preventing renewal from happening correctly.
parent
0d1ca1cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/plab/libplab.py.in
View file @
f8295864
...
...
@@ -495,12 +495,12 @@ def tryXmlrpcCmd(cmd, args = (),
else
:
return
cmd
()
except
xmlrpclib
.
Fault
,
e
:
if
raisefault
:
e
.
triesleft
=
tries
raise
xmlrpclib
.
Fault
,
e
print
"XML-RPC Fault happened while executing agent "
\
"command: %s"
%
cmd
.
func_name
print
"
\t
Code: %s, Error: %s"
%
(
e
.
faultCode
,
e
.
faultString
)
if
raisefault
:
e
.
triesleft
=
tries
raise
xmlrpclib
.
Fault
,
e
except
TimeoutError
,
e
:
if
debug
:
print
"Caught a timeout error, setting triesleft and raising."
...
...
@@ -511,7 +511,7 @@ def tryXmlrpcCmd(cmd, args = (),
"while executing command: %s"
%
cmd
.
func_name
if
debug
:
print
"Exception is of type: %s"
%
e
if
tries
>
0
:
print
"Sleeping for %s seconds, then retrying %s command"
%
\
(
sleepint
,
cmd
.
func_name
)
...
...
@@ -1343,7 +1343,10 @@ class Node:
elif
e
.
triesleft
>
0
:
tries
=
e
.
triesleft
else
:
raise
raise
else
:
break
if
debug
:
print
"Obtained new lease:"
print
self
.
leasedata
...
...
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