def terminate_ns_process(nsId, aux): """ Function description Parameters ---------- param1: type param1 description Returns ------- name: type return description """ #first terminate the alert/monitoring jobs # When alert rest API will be ready uncomment log_queue.put(["INFO", "SOEc eliminating service with nsId: %s" % nsId]) if (nsId.find("_") == -1): # terminate alerts alert_configure.delete_ns_alerts(nsId) # terminate monitoring jobs monitoring.stop_ns_monitoring(nsId) log_queue.put([ "INFO", "*****Time measure: SOEc terminated monitoring exporters and alerts" ]) #terminate the service rooe.terminate_ns(nsId) log_queue.put( ["INFO", "*****Time measure: SOEc updated databases terminating"])
def terminate_ns_process(nsId, aux): """ Function description Parameters ---------- param1: type param1 description Returns ------- name: type return description """ #first terminate the alert/monitoring jobs # When alert rest API will be ready uncomment log_queue.put([ "INFO", "*****Time measure for nsId: %s: SOEc SOEc terminating service" % nsId ]) if (nsId.find("_") == -1): # terminate aiml scaling jobs alert_configure.delete_ns_aiml_scale_work(nsId) log_queue.put([ "INFO", "*****Time measure for nsId: %s: SOEc SOEc terminated AIML alert jobs" % nsId ]) # terminate alerts alert_configure.delete_ns_alerts(nsId) log_queue.put([ "INFO", "*****Time measure for nsId: %s: SOEc SOEc terminated Threshold-based alert jobs" % nsId ]) # terminate monitoring jobs monitoring.stop_ns_monitoring(nsId) log_queue.put([ "INFO", "*****Time measure for nsId: %s: SOEc SOEc terminated Monitoring and dashboard" % nsId ]) #terminate the service rooe.terminate_ns(nsId) log_queue.put([ "INFO", "*****Time measure for nsId: %s: SOEc SOEc terminated service" % nsId ]) # for the 5Gr-VS not to break # ns_db.delete_ns_record(nsId) notification_db.create_notification_record({ "nsId": nsId, "type": "fa-trash", "text": nsId + " TERMINATED", "time": datetime.now().strftime("%d/%m/%Y %H:%M:%S.%f") })
def terminate_ns_process(nsId, aux): """ Function description Parameters ---------- param1: type param1 description Returns ------- name: type return description """ rooe.terminate_ns(nsId)
def terminate_ns_process(nsId, aux): """ Function description Parameters ---------- param1: type param1 description Returns ------- name: type return description """ #first terminate the alert/monitoring jobs log_queue.put(["INFO", "SOEc eliminating service with nsId: %s" % nsId]) if (nsId.find("_") == -1): alert_configure.delete_ns_alerts(nsId) #terminate monitoring jobs monitoring.stop_ns_monitoring(nsId) #terminate alerts rooe.terminate_ns(nsId) ns_db.delete_ns_record(nsId)