After upgrade cannot manage projects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Expired
|
Undecided
|
Unassigned |
Bug Description
After upgrade to Folsom I cannot manage project by the dashboard. I can on the cli.
My /var/log/
[Wed Nov 28 15:29:50 2012] [error] Problem instantiating action class.
[Wed Nov 28 15:29:50 2012] [error] Traceback (most recent call last):
[Wed Nov 28 15:29:50 2012] [error] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] context)
[Wed Nov 28 15:29:50 2012] [error] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] redirect=
[Wed Nov 28 15:29:50 2012] [error] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] default_role = api.get_
[Wed Nov 28 15:29:50 2012] [error] AttributeError: 'NoneType' object has no attribute 'id'
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] mod_wsgi (pid=4574): Exception occurred processing WSGI script '/usr/share/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] Traceback (most recent call last):
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] response = self.get_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] response = self.handle_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return callback(request, **param_dict)
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] response = view_func(request, *args, **kwargs)
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return http.HttpRespon
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return self._render(
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return self.nodelist.
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] bit = self.render_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return node.render(
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return compiled_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return self.nodelist.
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] bit = self.render_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return node.render(
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return self.render_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] output = template.
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return self._render(
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return self.nodelist.
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] bit = self.render_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return node.render(
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] return self.render_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] cached_offline = self.render_
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] File "/usr/lib/
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] 'You may need to run "python manage.py compress".' % key)
[Wed Nov 28 15:29:50 2012] [error] [client 10.10.30.56] OfflineGenerati
I did ran manage.py compress and it did not fix the problem.
I spent a last day trying to figure this out. I re-installed a few times without it working, but I did fix it. Here is the local_settings files that worked for me. I think the biggest issue I had was
OPENSTACK_ KEYSTONE_ DEFAULT_ ROLE = "Member"
which I changed to after running keystone role-list
OPENSTACK_ KEYSTONE_ DEFAULT_ ROLE = "memberRole"
I am not sure how I fixed the other issue I was having about the offline manifest.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROD = False
USE_SSL = False
# Note: You should change this value
SECRET_KEY = 'REMOVED'
LOCAL_PATH = os.path. dirname( os.path. abspath( __file_ _)) db.backends. sqlite3' , join(LOCAL_ PATH, 'dashboard_ openstack. sqlite3' ),
#DATABASES = {
# 'default': {
# 'ENGINE': 'django.
# 'NAME': os.path.
# },
#}
DATABASES = { db.backends. mysql',
'default- character- set': 'utf8'
'default': {
'ENGINE': 'django.
'NAME': 'dash',
'USER': 'dash',
'PASSWORD': 'password',
'HOST': 'localhost',
},
}
# We recommend you use memcached for development; otherwise after every reload //127.0. 0.1:11211/ ' //127.0. 0.1:11211/ '
# of the django development server, you will have to login again. To use
# memcached set CACHE_BACKED to something like 'memcached:
CACHE_BACKEND = 'memcached:
SESSION_ENGINE = 'django. contrib. sessions. backends. cached_ db'
# Send email to the console by default core.mail. backends. console. EmailBackend' core.mail. backends. dummy.EmailBack end'
EMAIL_BACKEND = 'django.
# Or send them to /dev/null
#EMAIL_BACKEND = 'django.
# django-mailer uses a different settings attribute EMAIL_BACKEND = EMAIL_BACKEND
MAILER_
# Configure these for your outgoing email host company. com'
# EMAIL_HOST = 'smtp.my-
# EMAIL_PORT = 25
# EMAIL_HOST_USER = 'djangomail'
# EMAIL_HOST_PASSWORD = 'top-secret!'
OPENSTACK_ KEYSTONE_ URL = "http:// localhost: 5000/v2. 0/" KEYSTONE_ ADMIN_URL = "http:// localhost: 35357/v2. 0" KEYSTONE_ DEFAULT_ ROLE = "memberRole"
# FIXME: this is only needed until keystone fixes its GET /tenants call
# so that it doesn't return everything for admins
#OPENSTACK_
OPENSTACK_
# NOTE(tres): Available services should come from the service
# catalog in Keystone.
SWIFT_ENABLED = False
# Configure quantum connection details for networking CLIENT_ VERSION= '0.1'
QUANTUM_ENABLED = False
#QUANTUM_URL = '127.0.0.1'
#QUANTUM_PORT = '9696'
#QUANTUM_TENANT = '1234'
#QUANTUM_
# If you have external monitoring links MONITORING = [ foo.com'], bar.com'],
#EXTERNAL_
# ['Nagios','http://
# ['Ganglia','http://
#]
# If you do not have external monitoring links
# EXTERNAL_MONITORING = []
# Uncomment the following segment to silence most logging existing_ loggers' : False, utils.log. NullHandler' ,
# django.db and boto DEBUG logging is extremely verbose.
#LOGGING = {
# 'version': 1,
# # set to True will disable all logging except that specified, unless
# # nothing is specified except that django.db.backends will still log,
# # even when set to True, so disable explicitly
# 'disable_
# 'handlers': {
# 'null': {
# 'level': 'DEBUG',
# 'class': 'django.
# ...