From cb90041a98fa3e24136c0d8a23080500e6cd3720 Mon Sep 17 00:00:00 2001 From: Andrew Babbitt Date: Wed, 19 Jun 2024 04:25:36 -0600 Subject: [PATCH] Skyline: Fix incorrect keystone port Change the skyline nginx config to point to the internal port. Closes-Bug: #2069855 Change-Id: Ia29d89b2594a604c687469850a67f7fe29d0eb5d --- ansible/roles/skyline/templates/nginx.conf.j2 | 4 ++-- .../notes/fix-skyline-keystone-port-0a25395608f572d9.yaml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/fix-skyline-keystone-port-0a25395608f572d9.yaml diff --git a/ansible/roles/skyline/templates/nginx.conf.j2 b/ansible/roles/skyline/templates/nginx.conf.j2 index 0ecf3f903c..6d311778b9 100644 --- a/ansible/roles/skyline/templates/nginx.conf.j2 +++ b/ansible/roles/skyline/templates/nginx.conf.j2 @@ -98,8 +98,8 @@ http { {% if enable_keystone | bool %}# Region: {{ openstack_region_name }}, Service: keystone location {{ skyline_nginx_prefix }}/{{ openstack_region_name | lower }}/keystone { - proxy_pass {{ internal_protocol }}://{{ keystone_internal_fqdn | put_address_in_context('url') }}:{{ keystone_public_port }}/; - proxy_redirect {{ internal_protocol }}://{{ keystone_internal_fqdn | put_address_in_context('url') }}:{{ keystone_public_port }}/ {{ skyline_nginx_prefix }}/{{ openstack_region_name | lower }}/keystone/; + proxy_pass {{ internal_protocol }}://{{ keystone_internal_fqdn | put_address_in_context('url') }}:{{ keystone_internal_port }}/; + proxy_redirect {{ internal_protocol }}://{{ keystone_internal_fqdn | put_address_in_context('url') }}:{{ keystone_internal_port }}/ {{ skyline_nginx_prefix }}/{{ openstack_region_name | lower }}/keystone/; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; diff --git a/releasenotes/notes/fix-skyline-keystone-port-0a25395608f572d9.yaml b/releasenotes/notes/fix-skyline-keystone-port-0a25395608f572d9.yaml new file mode 100644 index 0000000000..b040d3699d --- /dev/null +++ b/releasenotes/notes/fix-skyline-keystone-port-0a25395608f572d9.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes keystone port in skyline-console pointing to wrong endpoint port. + `LP#2069855 `__