Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1712001

Summary: [RFE] Distributed image import
Product: Red Hat OpenStack Reporter: Erno Kuvaja <ekuvaja>
Component: openstack-glanceAssignee: Erno Kuvaja <ekuvaja>
Status: CLOSED MIGRATED QA Contact: msava
Severity: medium Docs Contact: Jenny-Anne Lynch <jelynch>
Priority: high    
Version: 16.0 (Train)CC: akekane, athomas, bdobreli, cyril, eglynn, gcharot, gfidente, jamsmith, jelynch, johfulto, jschluet, mariel, mburns, msava, nlevinki, pgrist, scohen, spower, yrabl
Target Milestone: z3Keywords: FutureFeature, TestOnly, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-glance-22.1.0-0.20210917121835.8499efd.el8ost Doc Type: Enhancement
Doc Text:
This enhancement introduces distributed image import. Before this update, a shared staging area was required when configuring the Image service (glance) for image import because the worker that owned the image request was not always the same worker that performed the image import. With this update, there is no requirement for a shared staging area because the worker that owns the image data is the same worker that performs the image import.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-10 09:52:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2174868, 2174876, 2174885    
Bug Blocks: 1466391, 1706910, 1934989    

Description Erno Kuvaja 2019-05-20 15:14:05 UTC
As glance-api service is fully independent and stateless the different nodes do not know nor care if they are operating alone or in a cluster. To address some of the distributed models we need to change that and build understanding between the nodes that there is others in same environments that might have different needs or resources available.

Main concerns to address at the beginning are:

0) Cache management
   - For improved usability we need to move some of the caching functionality from node-local tooling to the API. To be able to manage pre-caching and listing cached images in distributed or HA-environments the glance-api nodes needs to be able to talk to eachother so that the commands does not need to be targeted to individual nodes behind loadbalancers.

1) Image Import
   - Currently if "glance-local" import method is availble the glance-api nodes needs to share common filesystem or user needs to (be able) target individual nodes so they can issue the import call to the node that has the image staged. Once the api nodes can communicate with eachother the work can be done by node that has access to the data regardless if it received the original Rest API call.

2) Copying Image data between image stores
   - The call to copy a image to another store in the environment might not be possible from the node that receives the Rest API call. To implement asynchronous copy operation we need, yet again, be able to have the nodes communicating with each other to ensure that the work can be done by node that has access to both, source and destination.

Implementation:

Utilizing RabbitMQ as that is already deployment dependency and is proven technology for such purpose. Unfortunately oslo_messaging does not provide all needed Rabbit features to utilize it in this work so we will need to work directly with available clients and build the boilerplating orselves.

Comment 9 Pranali Deore 2021-05-20 05:33:28 UTC
*** Bug 1654408 has been marked as a duplicate of this bug. ***

Comment 11 Cyril Roelandt 2021-11-24 21:32:36 UTC
The patches were included in upstream/wallaby, so they are available in the latest Glance downstream RPM.

Comment 24 Lukas Svaty 2023-06-16 08:13:29 UTC
Bulk moving target milestone to GA after the release of Beta on 14th June '23.

Comment 29 Lon Hohberger 2023-08-16 10:33:42 UTC
According to our records, this should be resolved by openstack-glance-22.1.2-1.20230310130836.883fc8a.el9ost.  This build is available now.

Comment 34 Gregory Charot 2023-10-26 08:46:14 UTC
Moving to Z3 because of QE capacity

Comment 38 Red Hat Bugzilla 2024-08-09 04:25:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days