From b15f0b20bdd863214191f2215af0ce3e8cbbc169 Mon Sep 17 00:00:00 2001 From: Andy Ning Date: Wed, 12 Sep 2018 10:27:51 -0400 Subject: [PATCH] Fix Distributed Cloud patch orchestration apply failure A typo error in dcmanager causes patch orchestration apply in progress forever. This update fixed the typo error and made patch orchestration in Distributed Cloud works again. Closes-Bug: 1792175 Change-Id: Ie955676b97baf7568baf1fe2e8e74302a79020a2 Signed-off-by: Andy Ning --- dcmanager/manager/sw_update_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dcmanager/manager/sw_update_manager.py b/dcmanager/manager/sw_update_manager.py index 316c93ca8..bd3c77a99 100644 --- a/dcmanager/manager/sw_update_manager.py +++ b/dcmanager/manager/sw_update_manager.py @@ -630,7 +630,7 @@ class PatchOrchThread(threading.Thread): # First need to retrieve the Subcloud's Keystone session try: - sc_ks_client = self.get_ks_client(strategy_step.subcloud_name) + sc_ks_client = self.get_ks_client(strategy_step.subcloud.name) except (keystone_exceptions.EndpointNotFound, IndexError) as e: message = ("Identity endpoint for subcloud: %s not found. %s" % (strategy_step.subcloud.name, e)) @@ -1341,7 +1341,7 @@ class PatchOrchThread(threading.Thread): # First need to retrieve the Subcloud's Keystone session try: - sc_ks_client = self.get_ks_client(strategy_step.subcloud_name) + sc_ks_client = self.get_ks_client(strategy_step.subcloud.name) except (keystone_exceptions.EndpointNotFound, IndexError) as e: message = ("Identity endpoint for subcloud: %s not found. %s" % (strategy_step.subcloud.name, e))