Skip to content

Commit fc53b26

Browse files
jackhodgkissmnasiadka
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]> (cherry picked from commit 13c40f1)
1 parent 7e64447 commit fc53b26

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ansible/group_vars/all.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,9 @@ heat_api_cfn_public_port: "{{ haproxy_single_external_frontend_public_port if ha
465465

466466
horizon_internal_fqdn: "{{ kolla_internal_fqdn }}"
467467
horizon_external_fqdn: "{{ kolla_external_fqdn }}"
468-
horizon_internal_endpoint: "{{ kolla_internal_fqdn | kolla_url(internal_protocol, horizon_tls_port if kolla_enable_tls_internal | bool else horizon_port) }}"
469-
horizon_public_endpoint: "{{ kolla_external_fqdn | kolla_url(public_protocol, horizon_tls_port if kolla_enable_tls_external | bool else horizon_port) }}"
468+
horizon_internal_endpoint: "{{ horizon_internal_fqdn | kolla_url(internal_protocol, horizon_tls_port if kolla_enable_tls_internal | bool else horizon_port) }}"
469+
horizon_public_endpoint: "{{ horizon_external_fqdn | kolla_url(public_protocol, horizon_tls_port if kolla_enable_tls_external | bool else horizon_port) }}"
470+
470471
horizon_port: "80"
471472
horizon_tls_port: "443"
472473
horizon_listen_port: "{{ 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)