Bug 1758416 - [RFE] Copying existing image across multiple stores
Summary: [RFE] Copying existing image across multiple stores
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 16.1 (Train on RHEL 8.2)
Assignee: Abhishek Kekane
QA Contact: Mike Abrams
Chuck Copello
URL:
Whiteboard: docs-accepted
: 1466391 (view as bug list)
Depends On: 1225775
Blocks: epmosp17features, epmosp17rfe 1707841 1459148 1496482 1779338 1789430 1802772 1897605
TreeView+ depends on / blocked
 
Reported: 2019-10-04 05:37 UTC by Abhishek Kekane
Modified: 2023-12-15 16:49 UTC (History)
10 users (show)

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.
Clone Of:
Environment:
Last Closed: 2020-07-29 07:49:26 UTC
Target Upstream Version:
Embargoed:
akekane: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 694724 0 'None' MERGED Copying existing image in multiple stores 2021-02-19 04:11:10 UTC
OpenStack gerrit 696457 0 'None' MERGED Copy existing image in multiple stores 2021-02-19 04:11:10 UTC
OpenStack gerrit 709086 0 None MERGED Add support for copy-image import method 2021-02-19 04:11:11 UTC
OpenStack gerrit 718367 0 None MERGED Fix multiple image imports if boolean input passed as string 2021-02-19 04:11:11 UTC
OpenStack gerrit 718521 0 None MERGED Pass --all-stores, --allow-failure as bool to API 2021-02-19 04:11:10 UTC
Red Hat Issue Tracker RHOSPDOC-21 0 High Ready For Release Glance. Copying existing image across multiple stores 2020-09-01 10:45:59 UTC
Red Hat Product Errata RHBA-2020:3148 0 None None None 2020-07-29 07:50:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.