X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=inline;f=openmanod;h=8ad0af7f9455e779c38c87b3e60983eb70d745b2;hb=refs%2Fchanges%2F95%2F1695%2F2;hp=0611d4ec2ac0ff27015315614d175ee3625b2d96;hpb=4b6216b9d00195bf2e3772bb9278faf18ee9fd46;p=osm%2FRO.git diff --git a/openmanod b/openmanod index 0611d4ec..8ad0af7f 100755 --- a/openmanod +++ b/openmanod @@ -22,7 +22,7 @@ # contact with: nfvlabs@tid.es ## -''' +""" openmano server. Main program that implements a reference NFVO (Network Functions Virtualisation Orchestrator). It interfaces with an NFV VIM through its API and offers a northbound interface, based on REST (openmano API), @@ -30,12 +30,7 @@ where NFV services are offered including the creation and deletion of VNF templa network service templates and network service instances. It loads the configuration file and launches the http_server thread that will listen requests using openmano API. -''' -__author__="Alfonso Tierno, Gerardo Garcia, Pablo Montes" -__date__ ="$26-aug-2014 11:09:29$" -__version__="0.5.8-r518" -version_date="Jan 2017" -database_version="0.19" #expected database schema version +""" import time import sys @@ -50,6 +45,12 @@ from osm_ro.openmano_schemas import config_schema from osm_ro.db_base import db_base_Exception import osm_ro +__author__="Alfonso Tierno, Gerardo Garcia, Pablo Montes" +__date__ ="$26-aug-2014 11:09:29$" +__version__="0.5.11-r521" +version_date="Apr 2017" +database_version="0.20" #expected database schema version + global global_config global logger @@ -57,14 +58,16 @@ class LoadConfigurationException(Exception): pass def load_configuration(configuration_file): - default_tokens ={'http_port':9090, - 'http_host':'localhost', - 'http_console_proxy': True, - 'http_console_host': None, - 'log_level': 'DEBUG', - 'log_socket_port': 9022, - 'auto_push_VNF_to_VIMs': True - } + default_tokens = {'http_port':9090, + 'http_host':'localhost', + 'http_console_proxy': True, + 'http_console_host': None, + 'log_level': 'DEBUG', + 'log_socket_port': 9022, + 'auto_push_VNF_to_VIMs': True, + 'db_host': 'localhost', + 'db_ovim_host': 'localhost' + } try: #Check config file exists with open(configuration_file, 'r') as f: @@ -241,7 +244,7 @@ if __name__=="__main__": logger.critical("Starting openmano server version: '%s %s' command: '%s'", __version__, version_date, " ".join(sys.argv)) - for log_module in ("nfvo", "http", "vim", "db", "console"): + for log_module in ("nfvo", "http", "vim", "db", "console", "ovim"): log_level_module = "log_level_" + log_module log_file_module = "log_file_" + log_module logger_module = logging.getLogger('openmano.' + log_module) @@ -315,6 +318,4 @@ if __name__=="__main__": nfvo.stop_service() if httpthread: httpthread.join(1) - for thread in global_config["console_thread"]: - thread.terminate = True