Bug 1758416

Summary: [RFE] Copying existing image across multiple stores
Product: Red Hat OpenStack Reporter: Abhishek Kekane <akekane>
Component: openstack-glanceAssignee: Abhishek Kekane <akekane>
Status: CLOSED ERRATA QA Contact: Mike Abrams <mabrams>
Severity: high Docs Contact: Chuck Copello <ccopello>
Priority: high    
Version: 16.0 (Train)CC: amcleod, athomas, brault, cyril, dcadzow, eglynn, gcharot, lmarsh, nwolf, pgrist
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: 16.1 (Train on RHEL 8.2)Flags: akekane: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: docs-accepted
Fixed In Version: openstack-glance-19.0.3-0.20200313113446.3e16bc7.el8ost Doc Type: Release Note
Doc Text:
In Red Hat OpenStack Platform 16.1, you can use the Image service (glance) to copy existing image data into multiple stores with a single command. This removes the need for the operator to copy data manually and update image locations.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-29 07:49:26 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: 1225775    
Bug Blocks: 1459148, 1496482, 1667921, 1707841, 1779338, 1789430, 1802772, 1897605    

Description Abhishek Kekane 2019-10-04 05:37:02 UTC
Glance v2 API currently supports configuring multiple stores. However user/admin/operator can upload image to ony one store at a time. The workflow to copy the image bits to secondary locations for a single image requires the operator / admin to manually copy those image bits and then use the glance API to add the new location to the image.

Glance should provide a way to asynchronously move or replicate images between stores through Images API eliminating the role of admin/operator doing so.


Similar blueprint:
https://blueprints.launchpad.net/glance/+spec/image-bits-replication

Comment 1 Abhishek Kekane 2019-10-04 05:40:30 UTC
*** Bug 1466391 has been marked as a duplicate of this bug. ***

Comment 2 Abhishek Kekane 2019-11-18 08:09:21 UTC
Upstream glance-specs - https://review.opendev.org/#/c/694724/

Comment 4 Abhishek Kekane 2019-11-28 14:28:05 UTC
Working PoC for reference - https://review.opendev.org/#/c/696457/

Comment 5 Abhishek Kekane 2020-02-13 14:47:35 UTC
Patch https://review.opendev.org/#/c/696457/ merged in master.

Comment 9 Abhishek Kekane 2020-04-09 09:29:12 UTC
Test scenarios which I used for functional testing;

https://drive.google.com/open?id=1VTs5RvOCG_P9GrdCM2lBLMHe8g1MNHrKlUO2wn9yOTg

Comment 10 Cyril Roelandt 2020-04-22 20:56:10 UTC
This also requires python-glanceclient-2.17.0-0.20200310160931.40c19aa.el8ost.

Comment 13 Alex McLeod 2020-06-16 12:28:22 UTC
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to '-'.

Comment 17 errata-xmlrpc 2020-07-29 07:49:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3148