Comment 22 for bug 1398893

Revision history for this message
Vadim Rovachev (vrovachev) wrote :

steps to reproduce:
1. Stop apache

2. Change backend for session(/etc/openstack-dashboard/local_settings.py):
SESSION_ENGINE = 'django.contrib.sessions.backends.db'

DATABASES = {
    'default': {
        # Database configuration here
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'dash',
        'USER': 'dash',
        'PASSWORD': 'DASH_DBPASS',
        'HOST': 'localhost',
        'default-character-set': 'utf8'
    }
}

3. Run command:
/usr/share/openstack-dashboard/manage.py syncdb

4. Start apache

5. Connect to mysql and swith database to dash:
mysql dash

6. Look to records count in table:
select * from django_session;

7. Run attached script :
python <script.py>

6. Look to records count in table again:
select * from django_session;

If count is not changed that bug not reproduced.