From 3d732ce4d0214f8b450e6c42b459cb65c85713a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dulko?= Date: Tue, 4 Jul 2017 17:51:27 +0200 Subject: [PATCH] Enable oslo.cache for Neutron metadata agent Neutron metadata agent can use oslo.cache to cache some requests to neutron-server. As we have memcached already in place, we can enable that feature. This commit does so. Change-Id: I4ec1e7d22ed6bb54359dd5b6a80bc42222e59d00 --- neutron/templates/configmap-etc.yaml | 4 ++++ neutron/values.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/neutron/templates/configmap-etc.yaml b/neutron/templates/configmap-etc.yaml index a71d4c93..74533795 100644 --- a/neutron/templates/configmap-etc.yaml +++ b/neutron/templates/configmap-etc.yaml @@ -49,6 +49,10 @@ {{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.neutron.nova.nova.auth "auth_url" | quote | trunc 0 -}} {{- end }} +{{- if empty .Values.conf.metadata_agent.cache.oslo.cache.memcache_servers -}} +{{- tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" | set .Values.conf.metadata_agent.cache.oslo.cache "memcache_servers" | quote | trunc 0 -}} +{{- end -}} + apiVersion: v1 kind: ConfigMap metadata: diff --git a/neutron/values.yaml b/neutron/values.yaml index d55c9a71..2a356483 100644 --- a/neutron/values.yaml +++ b/neutron/values.yaml @@ -446,6 +446,11 @@ conf: nova_metadata_port: 80 nova_metadata_protocol: http metadata_proxy_shared_secret: "password" + cache: + oslo: + cache: + enabled: true + backend: dogpile.cache.memcached sriov_agent: override: append: