Fix memcached host address.

Since pymemcache 3.4.0, localhost will first translate to ipv6 ([::1])
if possible instead of ipv4 (127.0.0.1). Since memcached is running in
the ipv4 interface, we need to point tooz to the right endpoint.

Conflicts:
  zuul.d/ironic-inspector-jobs.yaml

NOTE(moguimar): Conflicts are due small difference in adjacent lines.

Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
Change-Id: Iddf558cd598e41ffead11e164ce2fb1720d15f34
(cherry picked from commit 86b974b75c)
(cherry picked from commit 965a4f5086)
This commit is contained in:
Moisés Guimarães de Medeiros 2021-01-27 17:01:06 +01:00
parent c1a94782e5
commit 5c40a5e171
2 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,7 @@ function configure_inspector {
if [[ "$IRONIC_INSPECTOR_STANDALONE" == "False" ]]; then
# memcached listens localhost instead of $SERVICE_HOST, which is exactly the default value,
# but set explicitly in case that changed.
inspector_iniset coordination backend_url "memcached://localhost:11211"
inspector_iniset coordination backend_url "memcached://127.0.0.1:11211"
fi
if is_service_enabled swift; then

View File

@ -51,6 +51,7 @@
devstack_localrc:
IRONIC_DEFAULT_BOOT_OPTION: netboot
IRONIC_INSPECTOR_STANDALONE: False
MEMCACHE_SERVERS: 127.0.0.1:11211
devstack_services:
s-account: True
s-container: True