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
(cherry picked from commit 9ecfcf5a17548056eacfa9ba90fc07acb00e64b7)
This commit is contained in:
Michal Arbet 2024-01-08 11:48:35 +01:00
parent 51ca1bc696
commit 131296825a
2 changed files with 7 additions and 0 deletions

View File

@ -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 %}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes glance image import
`LP#2048525 <https://bugs.launchpad.net/kolla-ansible/+bug/2048525>`__.