X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcollector%2Fservice.py;h=eecad4df7b13a9cf8b4d242d2270692ddea8c951;hb=2bd1a0ea8fccd4279460e7d543ee240aa38b20c8;hp=f329918fc77ce4f0ffca28b031555d6f423792bb;hpb=4de60c537b56d7bf9767a8b3b027793c76bf02b5;p=osm%2FMON.git diff --git a/osm_mon/collector/service.py b/osm_mon/collector/service.py index f329918..eecad4d 100644 --- a/osm_mon/collector/service.py +++ b/osm_mon/collector/service.py @@ -49,7 +49,8 @@ VIM_INFRA_COLLECTORS = { "vio": VIOInfraCollector } SDN_INFRA_COLLECTORS = { - "onos": OnosInfraCollector + "onosof": OnosInfraCollector, + "onos_vpls": OnosInfraCollector } @@ -127,7 +128,10 @@ class CollectorService: processes.append(p) p.start() for process in processes: - process.join(timeout=10) + process.join(timeout=20) + for process in processes: + if process.is_alive(): + process.terminate() metrics = [] while not self.queue.empty(): metrics.append(self.queue.get()) @@ -139,4 +143,6 @@ class CollectorService: vim_type = vim_account['vim_type'] if 'config' in vim_account and 'vim_type' in vim_account['config']: vim_type = vim_account['config']['vim_type'].lower() + if vim_type == 'vio' and 'vrops_site' not in vim_account['config']: + vim_type = 'openstack' return vim_type