Skip to content

Commit 2034cfb

Browse files
jackhodgkissAlex-Welsh
authored andcommitted
fix: use FQDN for horizon endpoints
The `public` and `internal` endpoints for `Horizon` have been set explicitly to `kolla_external_fqdn` and `kolla_internal_fqdn` this setup does not work if using `HAProxy` single frontend configuration and can lead to `CORS` blocked when attempting to upload images via the `Horizon` dashboard. This change brings `Horizon` configuration inline with other services. Closes-Bug: 2111125 Change-Id: I3a8f40a06d64ac5ebd321c4da7fe577c1c4c380a Signed-off-by: Jack Hodgkiss <[email protected]>
1 parent 5f5a521 commit 2034cfb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ansible/group_vars/all/horizon.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ horizon_enable_tls_backend: "{{ kolla_enable_tls_backend }}"
4242
# Ports
4343
horizon_internal_fqdn: "{{ kolla_internal_fqdn }}"
4444
horizon_external_fqdn: "{{ kolla_external_fqdn }}"
45-
horizon_internal_endpoint: "{{ kolla_internal_fqdn | kolla_url(internal_protocol, horizon_tls_port if kolla_enable_tls_internal | bool else horizon_port) }}"
46-
horizon_public_endpoint: "{{ kolla_external_fqdn | kolla_url(public_protocol, horizon_tls_port if kolla_enable_tls_external | bool else horizon_port) }}"
45+
horizon_internal_endpoint: "{{ horizon_internal_fqdn | kolla_url(internal_protocol, horizon_tls_port if kolla_enable_tls_internal | bool else horizon_port) }}"
46+
horizon_public_endpoint: "{{ horizon_external_fqdn | kolla_url(public_protocol, horizon_tls_port if kolla_enable_tls_external | bool else horizon_port) }}"
4747
horizon_port: "80"
4848
horizon_tls_port: "443"
4949
horizon_listen_port: "{{ '8080' if enable_haproxy | bool else horizon_tls_port if horizon_enable_tls_backend | bool else horizon_port }}"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue where CORS can be blocked when attempting
5+
to upload an image via the Horizon user interface.

0 commit comments

Comments
 (0)