Fix bugs for nslcm 31/87431/1
authorfujinhua <fu.jinhua@zte.com.cn>
Fri, 10 May 2019 09:10:52 +0000 (17:10 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Fri, 10 May 2019 09:10:52 +0000 (17:10 +0800)
Change-Id: Ic781ac72c492a8c88d4dbda6d3721ebea833ca65
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns_vnfs/biz/terminate_nfs.py

index c479348..b435e67 100644 (file)
@@ -138,7 +138,10 @@ class TerminateVnfs(threading.Thread):
             raise NSLCMException('VNF terminate failed on VNFM side.')
 
     def delete_subscription(self):
-        SubscriptionDeletion(self.vnfm_inst_id, self.vnf_inst_id).do_biz()
+        try:
+            SubscriptionDeletion(self.vnfm_inst_id, self.vnf_inst_id).do_biz()
+        except Exception as e:
+            logger.error("delete_subscription failed: %s", e.message)
 
     def delete_data_from_db(self):
         NfInstModel.objects.filter(nfinstid=self.vnf_inst_id).delete()