Horizon
Problems uploading machine images larger than 1 GiB
By default, the LimitRequestBody
is set to 1073741824
(1 GiB).
This is a security feature (CVE-2022-29404)
and not a bug. Further details in the
A new default for the LimitRequestBody directive in httpd configuration
article in the RedHat knowledgebase.
This limit can be increased via the parameter horizon_httpd_limitrequestbody
.
horizon_httpd_limitrequestbody: 2147483648 # 2 GiB
Make clouds.yml file downloadable as an alternative to the RC file
By default, only the openrc
file is offered for download in Horizon. It makes sense to also add the
clouds.yaml
as a download. To do this, the menu is customised. The change can be deployed with
osism apply -a reconfigure horizon
.
- OSISM >= 8.0.0
- OSISM < 8.0.0
SHOW_KEYSTONE_V2_RC = False
USER_MENU_LINKS = [
{'name': _('OpenStack clouds.yml File'),
'icon_classes': ['fa-download', ],
'url': 'horizon:project:api_access:clouds.yaml',
'external': False,
},
{'name': _('OpenStack RC File v3'),
'icon_classes': ['fa-download', ],
'url': 'horizon:project:api_access:openrc',
'external': False,
}
]
SHOW_KEYSTONE_V2_RC = False
USER_MENU_LINKS = [
{'name': _('OpenStack clouds.yml File'),
'icon_classes': ['fa-download', ],
'url': 'horizon:project:api_access:clouds.yaml',
'external': False,
},
{'name': _('OpenStack RC File v3'),
'icon_classes': ['fa-download', ],
'url': 'horizon:project:api_access:openrc',
'external': False,
}
]
Custom themes
-
Place the files and directories of the custom theme in
environments/kolla/files/overlays/horizon/themes/custom_theme
. Examples of custom themes can be found in the osism/openstack-themes repository. -
Add the custom theme to the
horizon_custom_themes
dictionary. Use the name of the directory inenvironments/kolla/files/overlays/horizon/themes
as name.environments/kolla/configuration.ymlhorizon_custom_themes:
- name: custom_theme
label: CustomTheme -
If the custom theme should be the default then add the
DEFAULT_THEME
parameter.- OSISM >= 8.0.0
- OSISM < 8.0.0
environments/kolla/files/overlays/horizon/_9999-custom-settings.pyDEFAULT_THEME = 'custom_theme'
environments/kolla/files/overlays/horizon/custom_local_settingsDEFAULT_THEME = 'custom_theme'