From 68a128d74fc370bb9ecfafcc0ad110a2794a4764 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Mon, 10 Aug 2020 15:26:28 +0200 Subject: [PATCH] Synchronize REST_API_REQUIRED_SETTINGS with Horizon Backport to Ussuri unmodified. Backport to Train and Stein without DEFAULT_BOOT_SOURCE. Closes-Bug: #1891024 Change-Id: If8fe490c3f698ab3eb37735fbfcb8ab0d5fa8a06 --- ansible/roles/horizon/templates/local_settings.j2 | 13 ++++++++++--- ...est-api-required-settings-099875e53248b62c.yaml | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/sync-horizon-rest-api-required-settings-099875e53248b62c.yaml diff --git a/ansible/roles/horizon/templates/local_settings.j2 b/ansible/roles/horizon/templates/local_settings.j2 index 3b7f86aa27..136741b8cf 100644 --- a/ansible/roles/horizon/templates/local_settings.j2 +++ b/ansible/roles/horizon/templates/local_settings.j2 @@ -785,9 +785,16 @@ SECURITY_GROUP_RULES = { # the enabled panel configuration. # You should not add settings to this list for out of tree extensions. # See: https://wiki.openstack.org/wiki/Horizon/RESTAPI -REST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES', - 'LAUNCH_INSTANCE_DEFAULTS', - 'OPENSTACK_IMAGE_FORMATS'] +REST_API_REQUIRED_SETTINGS = [ + 'CREATE_IMAGE_DEFAULTS', + 'DEFAULT_BOOT_SOURCE', + 'ENFORCE_PASSWORD_CHECK', + 'LAUNCH_INSTANCE_DEFAULTS', + 'OPENSTACK_HYPERVISOR_FEATURES', + 'OPENSTACK_IMAGE_FORMATS', + 'OPENSTACK_KEYSTONE_BACKEND', + 'OPENSTACK_KEYSTONE_DEFAULT_DOMAIN', +] # Additional settings can be made available to the client side for # extensibility by specifying them in REST_API_ADDITIONAL_SETTINGS diff --git a/releasenotes/notes/sync-horizon-rest-api-required-settings-099875e53248b62c.yaml b/releasenotes/notes/sync-horizon-rest-api-required-settings-099875e53248b62c.yaml new file mode 100644 index 0000000000..519d61c8a3 --- /dev/null +++ b/releasenotes/notes/sync-horizon-rest-api-required-settings-099875e53248b62c.yaml @@ -0,0 +1,14 @@ +--- +upgrade: + - | + The default value of ``REST_API_REQUIRED_SETTINGS`` was synchronized with + Horizon. You may want to review settings exposed by the `updated + configuration + `__. +fixes: + - | + Updates the default value of ``REST_API_REQUIRED_SETTINGS`` in Horizon + ``local_settings``, which enables some features such as `selecting the + default boot source for instances + `__. + `LP#1891024 `__