Also set the cache backend when using memcached

The default backend for oslo_cache is dogpile.cache.null, so we need to
explicitly specify the proper backend that we want to use.

Related-Bug: 1572062
Change-Id: I8942f872c072f263959ac8790df7f7eedc9599e2
This commit is contained in:
Jens Rosenboom 2016-04-19 13:24:34 +02:00
parent 2aec9921b7
commit 3239a17ce9
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ node.default['openstack']['compute']['conf'].tap do |conf|
conf['vnc']['vncserver_listen'] = vnc_bind_address
conf['vnc']['vncserver_proxyclient_address'] = vnc_proxy_bind_address
unless memcache_servers.empty?
# Need to set the backend explicitly, see LP bug #1572062
conf['cache']['backend'] = 'oslo_cache.memcache_pool'
conf['cache']['enabled'] = 'true'
conf['cache']['memcache_servers'] = memcache_servers
end