diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-12-17 03:06:39 +0000 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2019-12-17 03:06:39 +0000 |
commit | 34c5c84a17dee7a821eb1f3b18eadb0598150cdf (patch) | |
tree | 35fc2370d24ffdb87359113097f58ebcf3e01e55 /share/starlingx_base | |
parent | 01fce901541f9cc1cd79482ad5f54fc3c3b10256 (diff) |
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 <bin.yang@windriver.com>
Diffstat (limited to 'share/starlingx_base')
-rw-r--r-- | share/starlingx_base/registration/registration.py | 4 |
1 files changed, 2 insertions, 2 deletions
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)\ |