git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f03cce
)
fail silently
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 17 Jul 2009 16:44:10 +0000
(16:44 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 17 Jul 2009 16:44:10 +0000
(16:44 +0000)
sfa/plc/slices.py
patch
|
blob
|
history
diff --git
a/sfa/plc/slices.py
b/sfa/plc/slices.py
index
9a5a653
..
cbe1935
100644
(file)
--- a/
sfa/plc/slices.py
+++ b/
sfa/plc/slices.py
@@
-3,6
+3,8
@@
import datetime
import time
import datetime
import time
+import traceback
+import sys
from sfa.util.misc import *
from sfa.util.rspec import *
from sfa.util.misc import *
from sfa.util.rspec import *
@@
-13,7
+15,7
@@
from sfa.util.policy import Policy
from sfa.util.debug import log
from sfa.server.aggregate import Aggregates
from sfa.server.registry import Registries
from sfa.util.debug import log
from sfa.server.aggregate import Aggregates
from sfa.server.registry import Registries
-import traceback
+
class Slices(SimpleStorage):
def __init__(self, api, ttl = .5):
class Slices(SimpleStorage):
def __init__(self, api, ttl = .5):
@@
-106,7
+108,13
@@
class Slices(SimpleStorage):
credential = self.api.getCredential()
aggregates = Aggregates(self.api)
for aggregate in aggregates:
credential = self.api.getCredential()
aggregates = Aggregates(self.api)
for aggregate in aggregates:
- aggregates[aggregate].delete_slice(credential, hrn)
+ try:
+ aggregates[aggregate].delete_slice(credential, hrn)
+ except:
+ print >> log, "Error calling list nodes at aggregate %s" % aggregate
+ traceback.print_exc(log)
+ exc_type, exc_value, exc_traceback = sys.exc_info()
+ print exc_type, exc_value, exc_traceback
def create_slice(self, hrn, rspec):
def create_slice(self, hrn, rspec):