glance/glance/api/v2
Abhishek Kekane 9a104acbae Improve lazy loading mechanism for multiple stores
Glance has a facility lazy loading for legacy images which will be called
on get/list api calls to add store information in image's location metadata
based on location URL of image. Even if admin decides to change the store
names in glance-api.conf same will also be updated in location metadata
for all images related to that particular store. Current implementation of
legacy image performs this operation on each get/list call as location metadata
is not getting updated in database or it doesn't handle to perform store name
check in glance-api.conf.

Improvements done:
1. Save updated location metadata information in database permenantly
2. Add logic to perform lazy loading only if store information is not present
in location metadata or store present in location metadata is not defined in
glance's enbaled_backends configuration option.

Change-Id: I789fa7adfb459e7861c90a51f418a635c0c22244
Closes-Bug: #1886374
(cherry picked from commit ab0e5268a9)
2020-07-14 16:20:22 +00:00
..
model Merge "Add operators to provide multivalue support" 2015-03-11 06:57:54 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
cached_images.py Add cache-manage utility using v2 API 2019-02-27 06:43:13 +00:00
discovery.py Rethinking filesystem access 2019-10-01 09:53:48 +00:00
image_actions.py Extracted HTTP response codes to constants 2016-10-06 15:15:20 +00:00
image_data.py Raise hacking to latest 2.0.0 release 2020-03-27 14:11:08 -05:00
image_members.py Fix member create to handle unicode characters 2017-12-26 19:42:05 +00:00
image_tags.py Extracted HTTP response codes to constants 2016-10-06 15:15:20 +00:00
images.py Improve lazy loading mechanism for multiple stores 2020-07-14 16:20:22 +00:00
metadef_namespaces.py Fix 500 if user passes name with more than 80 characters 2017-10-05 10:24:22 +05:30
metadef_objects.py Merge "Properly validate metadef objects" 2017-12-01 08:11:00 +00:00
metadef_properties.py Properly validate metadef objects 2017-01-18 18:37:50 +00:00
metadef_resource_types.py Raise hacking to latest 2.0.0 release 2020-03-27 14:11:08 -05:00
metadef_tags.py Fix 500 if user passes name with more than 80 characters 2017-10-05 10:24:22 +05:30
router.py Add possibility to delete image from single store 2020-03-13 14:46:13 +00:00
schemas.py Don't use slashes for long lines - use parentheses instead 2015-08-16 07:21:13 +00:00
tasks.py Add 'tasks_api_access' policy 2017-08-18 00:46:34 -04:00