Bug 92 - Catch Termination error and decrement descriptor use count 72/572/1
authorRajesh Velandy <rajesh.velandy@riftio.com>
Mon, 24 Oct 2016 21:34:37 +0000 (21:34 +0000)
committerRajesh Velandy <rajesh.velandy@riftio.com>
Mon, 24 Oct 2016 21:34:50 +0000 (21:34 +0000)
Signed-off-by: Rajesh Velandy <rajesh.velandy@riftio.com>
rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py

index cf03857..79b004f 100755 (executable)
@@ -4097,7 +4097,10 @@ class NsManager(object):
 
         # Terminate the instances/networks assocaited with this nw service
         self._log.debug("Terminating the network service %s", nsr_id)
-        yield from self._nsrs[nsr_id].terminate()
+        try :
+            yield from self._nsrs[nsr_id].terminate()
+        except Exception as e:
+            self.log.exception("Failed to terminate NSR[id=%s]", nsr_id)
 
         # Unref the NSD
         yield from self.nsd_unref_by_nsr_id(nsr_id)