From ab4aeb24183da9bde3738fdfb2a4a14af8cdc087 Mon Sep 17 00:00:00 2001 From: "Zhang Rong(Jon)" Date: Tue, 8 Nov 2022 14:03:16 +0800 Subject: [PATCH] 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 (cherry picked from commit df795c526aff71a64c5709f5ec3d8adc0ce5b3f0) --- o2ims/adapter/clients/ocloud_client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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): -- 2.16.6