X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fnf%2Fvnfs%2Fvnf_create%2Finst_vnf.py;h=759859cb2ec64632d1436b0a7238e96c236e9809;hb=0e1b730ec0e0ac058e07ccf995c65204fa8a748a;hp=8fa01329e4fa1fd57e278ac95d87ea630c789377;hpb=64e3ae6de960c1ec7a7c6af87d01439b775b2f09;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py b/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py index 8fa01329..759859cb 100644 --- a/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py +++ b/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py @@ -85,12 +85,10 @@ class InstVnf(Thread): self.inst_pre() self.apply_grant() self.create_res() - # self.check_res_status() - # self.wait_inst_finish(args) self.lcm_notify() JobUtil.add_job_status(self.job_id, 100, "Instantiate Vnf success.") - is_exist = JobStatusModel.objects.filter(jobid=self.job_id).exists() - logger.debug("check_ns_inst_name_exist::is_exist=%s" % is_exist) + # is_exist = JobStatusModel.objects.filter(jobid=self.job_id).exists() + # logger.debug("check_ns_inst_name_exist::is_exist=%s" % is_exist) except NFLCMException as e: self.vnf_inst_failed_handle(e.message) # self.rollback(e.message) @@ -228,16 +226,6 @@ class InstVnf(Thread): # # self.add_job(43, 'INST_DPLY_VM_PRGS') # logger.info("[NF instantiation] confirm all vms are active end") - # def wait_inst_finish(self, args): - # try: - # logger.info('wait_inst_finish, args=%s' % args) - # # WaitInstFinishTask(args).do_biz() - # return {'result': '100', 'msg': 'Nf instancing wait finish', 'context': {}} - # except Exception as e: - # logger.error('Nf instancing wait exception=%s' % e.message) - # logger.error(traceback.format_exc()) - # return {'result': '255', 'msg': 'Nf instancing wait exception', 'context': {}} - def lcm_notify(self): logger.info('[NF instantiation] send notify request to nfvo start') reg_info = NfvoRegInfoModel.objects.filter(vnfminstid=self.vnfm_inst_id).first() @@ -345,16 +333,6 @@ class InstVnf(Thread): raise NFLCMException("send notify request to nfvo failed") logger.info('[NF instantiation] send notify request to nfvo end') - # def rollback(self, args): - # try: - # logger.info('inst_exception, args=%s' % args) - # # InstExceptionTask(args).do_biz() - # return {'result': '100', 'msg': 'Nf instancing exception process finish', 'context': {}} - # except Exception as e: - # logger.error('Nf instancing exception process exception=%s' % e.message) - # logger.error(traceback.format_exc()) - # return {'result': '255', 'msg': 'Nf instancing exception process exception', 'context': {}} - def load_nfvo_config(self): logger.info("[NF instantiation]get nfvo connection info start") reg_info = NfvoRegInfoModel.objects.filter(vnfminstid='vnfm111').first()