glance/releasenotes/notes/import-multi-stores-3e781f2878b3134d.yaml
Grégoire Unbekandt 92492cf504 Add ability to import image into multi-stores
The import image api now supports a list of stores to import data into.
This list can be specified through a new "stores" field that has been
added to the request body.
During import stage, Glance iterates overs this list and send the data
to each store one by one.
If an invalid backend is requested by the user, an exception is raised.
If an errors occurs during verify, already pushed data is removed and
image state is unchanged.

Change-Id: Id3ac19488c0a693d7042be4a3c83f3b9f12313d0
Implements: blueprint import-multi-stores
2020-02-10 09:39:01 +01:00

32 lines
1.0 KiB
YAML

---
features:
- |
Add ability to import image into multiple stores during `interoperable
image import process`_.
upgrade:
- |
Add ability to import image into multiple stores during `interoperable
image import process`_.
This feature will only work if multiple stores are enabled in the
deployment.
It introduces 3 new optional body fields to the `import API path`:
- ``stores``: List containing the stores id to import the image binary data
to.
- ``all_stores``: To import the data in all configured stores.
- ``all_stores_must_succeed``: Control wether the import have to succeed in
all stores.
Users can follow workflow execution with 2 new reserved properties:
- ``os_glance_importing_to_stores``: list of stores that has not yet been
processed.
- ``os_glance_failed_import``: Each time an import in a store fails, it is
added to this list.
.. _`interoperable image import process`: https://developer.openstack.org/api-ref/image/v2/#interoperable-image-import