From: Zhang Rong(Jon) Date: Tue, 8 Nov 2022 06:03:16 +0000 (+0800) Subject: Fix INF-339 resource pool list does not match the DC status X-Git-Tag: 2.0.0-rc2~37^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=df795c526aff71a64c5709f5ec3d8adc0ce5b3f0;p=pti%2Fo2.git Fix INF-339 resource pool list does not match the DC status Issue-ID: INF-339 Signed-off-by: Zhang Rong(Jon) Change-Id: Ia8d3f255cd669108b9c0b3622230d3f3336b949d --- diff --git a/o2ims/adapter/clients/ocloud_client.py b/o2ims/adapter/clients/ocloud_client.py index 7307bcc..35188aa 100644 --- a/o2ims/adapter/clients/ocloud_client.py +++ b/o2ims/adapter/clients/ocloud_client.py @@ -230,7 +230,7 @@ class StxClientImp(object): os_client_args = config.get_stx_access_info( region_name=subcloud[0].name, subcloud_hostname=subcloud[0].oam_floating_ip) - logger.warning(os_client_args) + logger.info(os_client_args) config_client = get_stx_client(**os_client_args) except EndpointException as e: msg = e.format_message() @@ -238,12 +238,13 @@ class StxClientImp(object): os_client_args = config.get_stx_access_info( region_name=subcloud[0].name, sub_is_https=True, subcloud_hostname=subcloud[0].oam_floating_ip) - logger.warning(os_client_args) + logger.info(os_client_args) config_client = get_stx_client(**os_client_args) else: raise ValueError('Stx endpoint exception: %s' % msg) - else: + except Exception: raise ValueError('cgtsclient get subcloud client failed') + return config_client def setStxClient(self, resource_pool_id):