From 5c40a5e1716b0da64cfe9064455f30380691d205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Guimar=C3=A3es=20de=20Medeiros?= Date: Wed, 27 Jan 2021 17:01:06 +0100 Subject: [PATCH] Fix memcached host address. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: Iddf558cd598e41ffead11e164ce2fb1720d15f34 (cherry picked from commit 86b974b75ca998caea8ca949f01d514a00e2ff96) (cherry picked from commit 965a4f5086b2fa8a9dd0d80af2be28872db3d44f) --- devstack/plugin.sh | 2 +- zuul.d/ironic-inspector-jobs.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index ef89b81e8..f99d56ae9 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -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 diff --git a/zuul.d/ironic-inspector-jobs.yaml b/zuul.d/ironic-inspector-jobs.yaml index 43ac61f8b..c6d562574 100644 --- a/zuul.d/ironic-inspector-jobs.yaml +++ b/zuul.d/ironic-inspector-jobs.yaml @@ -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