JobUtil.add_job_status(self.job_id, 100, "Instantiate Vnf success.")
except NFLCMException as e:
self.vnf_inst_failed_handle(e.message)
- # self.rollback(e.message)
except:
self.vnf_inst_failed_handle('unexpected exception')
- logger.error(traceback.format_exc())
- # self.rollback('unexpected exception')
def inst_pre(self):
vnf_insts = NfInstModel.objects.filter(nfinstid=self.nf_inst_id)
}
logger.info('content_args=%s' % content_args)
# call rest api
- resp = notify_lcm_to_nfvo(content_args, self.nf_inst_id)
+ resp = notify_lcm_to_nfvo(content_args)
logger.info('[NF instantiation] get lcm response %s' % resp)
- if resp[0] != 0:
- logger.error("notify lifecycle to nfvo failed.[%s]" % resp[1])
- raise NFLCMException("send notify request to nfvo failed")
logger.info('[NF instantiation] send notify request to nfvo end')
# def load_nfvo_config(self):