diff --git a/sysinv/sysinv/sysinv/sysinv/cert_mon/utils.py b/sysinv/sysinv/sysinv/sysinv/cert_mon/utils.py index 66cbe501a8..0a7030314a 100644 --- a/sysinv/sysinv/sysinv/sysinv/cert_mon/utils.py +++ b/sysinv/sysinv/sysinv/sysinv/cert_mon/utils.py @@ -422,7 +422,7 @@ def get_dc_token(region_name): def _get_token(auth_url, auth_project, username, password, user_domain, - project_domain, region_name): + project_domain, region_name, timeout=60): """ Ask OpenStack Keystone for a token Returns: token object or None on failure @@ -453,7 +453,7 @@ def _get_token(auth_url, auth_project, username, password, user_domain, request_info.add_data(payload) - request = urlopen(request_info) + request = urlopen(request_info, timeout=timeout) # Identity API v3 returns token id in X-Subject-Token # response header. token_id = request.info().getheader('X-Subject-Token')