Merge "Handle exceptions while monitoring VNF"

This commit is contained in:
Zuul 2018-09-13 05:07:47 +00:00 committed by Gerrit Code Review
commit 99bae42173
1 changed files with 6 additions and 2 deletions

View File

@ -99,8 +99,12 @@ class VNFMonitor(object):
if hosting_vnf.get('dead', False):
LOG.debug('monitor skips dead vnf %s', hosting_vnf)
continue
self.run_monitor(hosting_vnf)
try:
self.run_monitor(hosting_vnf)
except Exception as ex:
LOG.exception("Unknown exception: Monitoring failed "
"for VNF '%s' due to '%s' ",
hosting_vnf['id'], ex)
@staticmethod
def to_hosting_vnf(vnf_dict, action_cb):