Skip to main content

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.

environments/kolla/configuration.yml
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.

environments/kolla/files/overlays/horizon/_9999-custom-settings.py
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

  1. 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.

  2. Add the custom theme to the horizon_custom_themes dictionary. Use the name of the directory in environments/kolla/files/overlays/horizon/themes as name.

    environments/kolla/configuration.yml
    horizon_custom_themes:
    - name: custom_theme
    label: CustomTheme
  3. If the custom theme should be the default then add the DEFAULT_THEME parameter.

    environments/kolla/files/overlays/horizon/_9999-custom-settings.py
    DEFAULT_THEME = 'custom_theme'