Comment 2 for bug 1130610

Revision history for this message
Nerijus Bendziunas (nerijus-bendziunas) wrote :

I'm using thiese repos:
deb http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-build-depends/ubuntu precise main
deb-src http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-build-depends/ubuntu precise main
deb http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-trunk-testing/ubuntu precise main
deb-src http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-trunk-testing/ubuntu precise main

How to reproduce:
# apt-get update
# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt-get install openstack-dashboard
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  openstack-dashboard-ubuntu-theme python-appconf python-cloudfiles python-compressor python-django python-django-horizon python-openstack-auth
Suggested packages:
  python-psycopg2 python-psycopg python-flup python-sqlite geoip-database-contrib
The following NEW packages will be installed:
  openstack-dashboard openstack-dashboard-ubuntu-theme python-appconf python-cloudfiles python-compressor python-django python-django-horizon python-openstack-auth
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.6 kB/6,567 kB of archives.
After this operation, 49.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main python-cloudfiles all 1.7.9.2-1 [20.6 kB]
Fetched 20.6 kB in 0s (49.6 kB/s)
Selecting previously unselected package python-cloudfiles.
(Reading database ... 388427 files and directories currently installed.)
Unpacking python-cloudfiles (from .../python-cloudfiles_1.7.9.2-1_all.deb) ...
Selecting previously unselected package python-django.
Unpacking python-django (from .../python-django_1.4.1-2~cloud0_all.deb) ...
Selecting previously unselected package python-appconf.
Unpacking python-appconf (from .../python-appconf_0.5-0ubuntu2~cloud0_all.deb) ...
Selecting previously unselected package python-compressor.
Unpacking python-compressor (from .../python-compressor_1.1.2-0ubuntu5~cloud0_all.deb) ...
Selecting previously unselected package python-openstack-auth.
Unpacking python-openstack-auth (from .../python-openstack-auth_1.0.1-0ubuntu6~precise_all.deb) ...
Selecting previously unselected package python-django-horizon.
Unpacking python-django-horizon (from .../python-django-horizon_2013.1.a113.g7d13abc+git201302200401~precise-0ubuntu1_all.deb) ...
Selecting previously unselected package openstack-dashboard.
Unpacking openstack-dashboard (from .../openstack-dashboard_2013.1.a113.g7d13abc+git201302200401~precise-0ubuntu1_all.deb) ...
Selecting previously unselected package openstack-dashboard-ubuntu-theme.
Unpacking openstack-dashboard-ubuntu-theme (from .../openstack-dashboard-ubuntu-theme_2013.1.a113.g7d13abc+git201302200401~precise-0ubuntu1_all.deb) ...
Processing triggers for man-db ...
Setting up python-cloudfiles (1.7.9.2-1) ...
Setting up python-django (1.4.1-2~cloud0) ...
Setting up python-appconf (0.5-0ubuntu2~cloud0) ...
Setting up python-compressor (1.1.2-0ubuntu5~cloud0) ...
Setting up python-openstack-auth (1.0.1-0ubuntu6~precise) ...
Setting up python-django-horizon (2013.1.a113.g7d13abc+git201302200401~precise-0ubuntu1) ...
Setting up openstack-dashboard (2013.1.a113.g7d13abc+git201302200401~precise-0ubuntu1) ...
 * Reloading web server config apache2 [ OK ]
Setting up openstack-dashboard-ubuntu-theme (2013.1.a113.g7d13abc+git201302200401~precise-0ubuntu1) ...
 * Reloading web server config apache2 [ OK ]

When I trying load on broweser I'm getting 500 with error:
[Mon Feb 25 10:06:49 2013] [error] [client x.y.z.w] raise OfflineGenerationError('You have offline compression enabled but key "%s" is missing from offline manifest. You may need to run "python manage.py compress".' % key)
[Mon Feb 25 10:06:49 2013] [error] [client x.y.z.w] OfflineGenerationError: You have offline compression enabled but key "f73af4bb410b7899592afadd8af2bf16" is missing from offline manifest. You may need to run "python manage.py compress"

# cd /usr/share/openstack-dashboard
# python manage.py compress
Found 'compress' tags in:
 /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
 /usr/lib/python2.7/dist-packages/horizon/templates/horizon/_conf.html
 /usr/lib/python2.7/dist-packages/horizon/templates/horizon/_scripts.html
Compressing... done
Compressed 3 block(s) from 3 template(s).

Now I can log in but Firebug showing to me "SyntaxError: invalid increment operand" error.

# cat /etc/openstack-dashboard/local_settings.py | grep -v '^\s*#' | grep -v '^$'
import os
from django.utils.translation import ugettext_lazy as _
from openstack_dashboard import exceptions
DEBUG = False
TEMPLATE_DEBUG = DEBUG
HORIZON_CONFIG = {
    'dashboards': ('project', 'admin', 'settings',),
    'default_dashboard': 'project',
    'user_home': 'openstack_dashboard.views.get_user_home',
    'ajax_queue_limit': 10,
    'help_url': "http://docs.openstack.org",
    'exceptions': {'recoverable': exceptions.RECOVERABLE,
                   'not_found': exceptions.NOT_FOUND,
                   'unauthorized': exceptions.UNAUTHORIZED},
}
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
CACHE_BACKEND = 'memcached://127.0.0.1:11211'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
try:
    from ubuntu_theme import *
except ImportError:
    pass
LOGIN_URL='/horizon/auth/login/'
LOGIN_REDIRECT_URL='/horizon'
COMPRESS_OFFLINE = True
OPENSTACK_HOST = "127.0.0.1"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
OPENSTACK_KEYSTONE_BACKEND = {
    'name': 'native',
    'can_edit_user': True,
    'can_edit_project': True
}
OPENSTACK_HYPERVISOR_FEATURES = {
    'can_set_mount_point': True,
    'can_encrypt_volumes': False
}
API_RESULT_LIMIT = 1000
API_RESULT_PAGE_SIZE = 20
TIME_ZONE = "UTC"
LOGGING = {
        'version': 1,
        'disable_existing_loggers': False,
        'handlers': {
            'null': {
                'level': 'DEBUG',
                'class': 'django.utils.log.NullHandler',
                },
            'console': {
                'level': 'INFO',
                'class': 'logging.StreamHandler',
                },
            },
        'loggers': {
            'django.db.backends': {
                'handlers': ['null'],
                'propagate': False,
                },
            'horizon': {
                'handlers': ['console'],
                'propagate': False,
            },
            'openstack_dashboard': {
                'handlers': ['console'],
                'propagate': False,
            },
            'novaclient': {
                'handlers': ['console'],
                'propagate': False,
            },
            'keystoneclient': {
                'handlers': ['console'],
                'propagate': False,
            },
            'glanceclient': {
                'handlers': ['console'],
                'propagate': False,
            },
            'nose.plugins.manager': {
                'handlers': ['console'],
                'propagate': False,
            }
        }
}