Comment 35 for bug 1775170

Revision history for this message
Jared Baker (shubjero) wrote :

Hey Corey,

I believe I have found the source of my problem with bad javascript being generated at the compress and collect static stage and it has to do with whats in my /etc/openstack-dashboard/local_settings.py, specifically my memcached section. We run 3 controllers and 3 instances of memcached. If we configure our local_settings.py with the 3 memcached servers, bad javascript is generated at the compress and collectstatic stage. If we just use a single memcached server, the javascript generation is just fine. Any idea why this might be? Is our syntax for the cache stanza incorrect? There's no examples provided on the OpenStack site on how multiple memcached servers would look in terms of syntax. Either way, even the 'bad' stanza as written below seems to work in our lab (in terms of javascript generation)

GOOD:
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
   'default': {
       'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
       'LOCATION': '172.25.4.17:11211',
   },
}

BAD:
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
   'default': {
       'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
       'LOCATION': ['172.25.4.17:11211','172.25.4.18:11211','172.25.4.19:11211'],
   },
}