From 34c5c84a17dee7a821eb1f3b18eadb0598150cdf Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Tue, 17 Dec 2019 03:06:39 +0000 Subject: Bypass cache for LCM of cloud region Cache only the resource uri without query string. Bypass the cache for LCM of a cloud region,which enhance the resilience in case mismatch between AAI and cache Change-Id: I57fd7981753d5959757401cea69f6fabd1874e25 Issue-ID: MULTICLOUD-968 Signed-off-by: Bin Yang --- share/starlingx_base/registration/registration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/starlingx_base') diff --git a/share/starlingx_base/registration/registration.py b/share/starlingx_base/registration/registration.py index c2006114..565799a0 100644 --- a/share/starlingx_base/registration/registration.py +++ b/share/starlingx_base/registration/registration.py @@ -343,7 +343,7 @@ class RegistryHelper(newton_registration.RegistryHelper): # get cloud-region retcode, content, status_code = \ - restcall.req_to_aai(resource_url, "GET") + restcall.req_to_aai(resource_url, "GET", nocache=True) # add resource-version if retcode == 0 and content: @@ -372,7 +372,7 @@ class RegistryHelper(newton_registration.RegistryHelper): while True: # get cloud-region retcode2, content2, status_code2 = \ - restcall.req_to_aai(resource_url, "GET") + restcall.req_to_aai(resource_url, "GET", nocache=True) if retcode2 == 0 and content2: content2 = json.JSONDecoder().decode(content2) if content2.get("identity-url", None)\ -- cgit 1.2.3-korg