X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcollector%2Finfra_collectors%2Fbase_osinfra.py;h=1c1999c8aef1de2269658c0ee87cd1c1259e52f0;hb=4b9f79e2820a011f6ebbba7fb92cdc120b364650;hp=bce363ce7fa99a4ea27536bab27330284a72690f;hpb=73dbb4e243f47afef0d1bb61988608e256939e87;p=osm%2FMON.git diff --git a/osm_mon/collector/infra_collectors/base_osinfra.py b/osm_mon/collector/infra_collectors/base_osinfra.py index bce363c..1c1999c 100644 --- a/osm_mon/collector/infra_collectors/base_osinfra.py +++ b/osm_mon/collector/infra_collectors/base_osinfra.py @@ -76,7 +76,7 @@ class BaseOpenStackInfraCollector(BaseVimInfraCollector): 'nsr_id': nsr_id, 'ns_name': ns_name, 'vnf_member_index': vnf_member_index, - 'vdur_name': vdur['name'], + 'vdur_name': vdur.get("name", ""), 'project_id': vnfr_project_id } try: @@ -100,8 +100,8 @@ class BaseOpenStackInfraCollector(BaseVimInfraCollector): def _build_keystone_client(self, vim_account: dict) -> keystone_client.Client: sess = OpenstackUtils.get_session(vim_account) - return keystone_client.Client(session=sess) + return keystone_client.Client(session=sess, timeout=10) def _build_nova_client(self, vim_account: dict) -> nova_client.Client: sess = OpenstackUtils.get_session(vim_account) - return nova_client.Client("2", session=sess) + return nova_client.Client("2", session=sess, timeout=10)