remove swagger test function
[vfc/nfvo/lcm.git] / lcm / ns / ns_terminate.py
index d7c4bfa..5b93f58 100644 (file)
@@ -53,7 +53,8 @@ class TerminateNsService(threading.Thread):
             JobUtil.add_job_status(self.job_id, 100, "ns terminate ends.", '')
         except NSLCMException as e:
             JobUtil.add_job_status(self.job_id, JOB_ERROR, e.message)
-        except:
+        except Exception as ex:
+            logger.error(ex.message)
             logger.error(traceback.format_exc())
             JobUtil.add_job_status(self.job_id, JOB_ERROR, "ns terminate fail.")
 
@@ -130,8 +131,8 @@ class TerminateNsService(threading.Thread):
 
     def wait_delete_vnf_job_finish(self, vnf_job_id):
         count = 0
-        retry_count = 30
-        interval_second = 1
+        retry_count = 400
+        interval_second = 2
         response_id, new_response_id = 0, 0
         job_end_normal, job_timeout = False, True
         while count < retry_count: