Bug 999479 - packstack wrong configuration for Horizon CACHE_BACKEND in local_setting.py
Summary: packstack wrong configuration for Horizon CACHE_BACKEND in local_setting.py
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 3.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: 4.0
Assignee: Francesco Vollero
QA Contact: Martin Magr
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-21 11:41 UTC by Nir Magnezi
Modified: 2016-04-26 23:19 UTC (History)
9 users (show)

Fixed In Version: openstack-packstack-2013.2.1-0.14.dev919.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-20 00:19:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
local_settings.py (4.59 KB, text/x-python)
2013-08-21 11:43 UTC, Nir Magnezi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1172222 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Nir Magnezi 2013-08-21 11:41:56 UTC
Description of problem:
=======================
packstack wrong configuration for  Horizon CACHE_BACKEND in local_setting.py.
As a result of that, a DeprecationWarning appears in httpd logs

Version-Release number of selected component (if applicable):
=============================================================
Grizzly async puddle: 2013-08-15.1
openstack-packstack-2013.1.1-0.27.dev660.el6ost.noarch

How reproducible:
=================
1/1

Steps to Reproduce:
===================
1. install openstack via packstack
2. grep CACHE /var/log/httpd/*_log

Actual results:
===============
/var/log/httpd/error_log:
[error] DeprecationWarning: settings.CACHE_* is deprecated; use settings.CACHES instead.DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.DeprecationWarning: The syntax for the url template tag is changing. Load the `url` tag from the `future` tag library to start using the new behavior.DeprecationWarning: Authentication backends without a `supports_inactive_user` attribute are deprecated. Please define it in <class 'openstack_auth.backend.KeystoneBackend'>.

Expected results:
=================
No errors should be expected.

Additional info:
================
jpichon mentioned that this was already fixed in Grizzly:
https://github.com/openstack/horizon/blob/stable/grizzly/openstack_dashboard/local/local_settings.py.example#L69

IRC Chat:
<jpichon> I think I remember mrunge saying packstack was creating its own local_settings.py instead of copy-pasting from local_settings.py.example, this may be the result

Comment 1 Nir Magnezi 2013-08-21 11:43:48 UTC
Created attachment 788827 [details]
local_settings.py

Comment 3 Alvaro Lopez Ortega 2013-11-26 19:11:08 UTC
It's fixed in Havana already.

Comment 5 Scott Lewis 2013-12-09 15:30:42 UTC
Adding OtherQA for bugs in MODIFIED

Comment 8 Martin Magr 2013-12-12 13:31:12 UTC
[root@virtual-rhel ~]# cat /etc/openstack-dashboard/local_settings | grep CACHE -A8
# memcached set CACHES to something like
# CACHES = {
#    'default': {
#        'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
#        'LOCATION' : '127.0.0.1:11211',
#    }
#}

CACHES = {
    'default': {
        
#        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
        
    }
}
[root@virtual-rhel ~]# cat /var/log/httpd/*log | grep CACHE
[root@virtual-rhel ~]#

Comment 10 errata-xmlrpc 2013-12-20 00:19:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html


Note You need to log in before you can comment on or make changes to this bug.