Set HORIZON_IMAGES_UPLOAD_MODE to direct by default

Change-Id: I4aa6dc90c6e6da6cd5fa94ad9ea02396e9c60a8b
This commit is contained in:
Michal Nasiadka 2023-11-03 16:34:28 +01:00
parent 255ce5c11e
commit 82c0efd139
3 changed files with 17 additions and 1 deletions

View File

@ -151,3 +151,6 @@ auth_endpoint = {{ keystone_internal_url }}
barbican_endpoint_type = internal
verify_ssl_path = {{ openstack_cacert }}
{% endif %}
[cors]
allowed_origin = {{ horizon_public_endpoint }}

View File

@ -415,7 +415,7 @@ IMAGE_RESERVED_CUSTOM_PROPERTIES = []
# Horizon server. When enabled, a file form field will appear on the create
# image form. If set to 'off', there will be no file form field on the create
# image form. See documentation for deployment considerations.
#HORIZON_IMAGES_UPLOAD_MODE = 'legacy'
HORIZON_IMAGES_UPLOAD_MODE = 'direct'
# OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints
# in the Keystone service catalog. Use this setting when Horizon is running

View File

@ -0,0 +1,13 @@
---
features:
- |
``HORIZON_IMAGES_UPLOAD_MODE`` is now set to ``'direct'`` by default.
This improves image uploads from clients, because these no longer use
Horizon's webserver as a staging area - the image upload goes directly
to Glance API.
upgrade:
- |
``HORIZON_IMAGES_UPLOAD_MODE`` is now set to ``'direct'`` by default.
In order to retain the previous default (``'legacy'``) - please
set ``HORIZON_IMAGES_UPLOAD_MODE: 'legacy'`` in your
``custom_local_settings`` file.