From 9ecfcf5a17548056eacfa9ba90fc07acb00e64b7 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Mon, 8 Jan 2024 11:48:35 +0100 Subject: [PATCH] Enable glance proxying behaviour This patch sets URL to glance worker. If this is set, other glance workers will know how to contact this one directly if needed. For image import, a single worker stages the image and other workers need to be able to proxy the import request to the right one. With current setup glance image import just not working. Closes-Bug: #2048525 Change-Id: I4246dc8a80038358cd5b6e44e991b3e2ed72be0e --- ansible/roles/glance/templates/glance-api.conf.j2 | 2 ++ releasenotes/notes/bug-2048525-53ac0711f2c8ae4b.yaml | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/bug-2048525-53ac0711f2c8ae4b.yaml diff --git a/ansible/roles/glance/templates/glance-api.conf.j2 b/ansible/roles/glance/templates/glance-api.conf.j2 index 84856cd7d8..c9ce56bdc5 100644 --- a/ansible/roles/glance/templates/glance-api.conf.j2 +++ b/ansible/roles/glance/templates/glance-api.conf.j2 @@ -4,6 +4,8 @@ debug = {{ glance_logging_debug }} # NOTE(elemoine) log_dir alone does not work for Glance log_file = /var/log/kolla/glance/glance-api.log +worker_self_reference_url = {{ 'https' if glance_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ glance_api_port }} + {% if glance_enable_tls_backend | bool %} bind_host = 127.0.0.1 {% else %} diff --git a/releasenotes/notes/bug-2048525-53ac0711f2c8ae4b.yaml b/releasenotes/notes/bug-2048525-53ac0711f2c8ae4b.yaml new file mode 100644 index 0000000000..10d3635bce --- /dev/null +++ b/releasenotes/notes/bug-2048525-53ac0711f2c8ae4b.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes glance image import + `LP#2048525 `__.