Bug 1039368 - When installing nova-network (multihost), horizon fails to start and django returns 500 due to missing dependency
Summary: When installing nova-network (multihost), horizon fails to start and django r...
Keywords:
Status: CLOSED DUPLICATE of bug 1029775
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 4.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.0
Assignee: RHOS Maint
QA Contact: Nir Magnezi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-08 20:22 UTC by Rami Vaknin
Modified: 2020-01-03 15:00 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-09 13:25:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rami Vaknin 2013-12-08 20:22:30 UTC
Version
=======
rhos 4.0 running on rhel 6.5 with 2013-12-06.3, openstack-packstack-2013.2.1-0.13.dev876.el6ost


Description
===========
Horizon fails to start due to missing python-pbr.
Note that this occurs only when working with nova-network, since python-pbr is a requirement of neutron:

# rpm -qR openstack-neutron-2013.2-13.el6ost.noarch | grep pbr
python-pbr

Workaround: manually install python-pbr rpm and restart httpd service

From /var/log/httpd/error_log
=============================
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239] Traceback (most recent call last):
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]     self.load_middleware()
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]     for middleware_path in settings.MIDDLEWARE_CLASSES:
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]   File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]     self._setup()
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]     self._wrapped = Settings(settings_module)
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 95, in __init__
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239]     raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
[Sun Dec 08 17:46:45 2013] [error] [client 10.35.7.239] ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path?): No module named pbr.version
[Sun Dec 08 22:07:21 2013] [warn] [client 10.35.200.41] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://puma10.scl.lab.tlv.redhat.com/dashboard/'
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41] mod_wsgi (pid=2011): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41] Traceback (most recent call last):
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]     self.load_middleware()
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]     for middleware_path in settings.MIDDLEWARE_CLASSES:
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]   File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]     self._setup()
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]     self._wrapped = Settings(settings_module)
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 95, in __init__
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41]     raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
[Sun Dec 08 22:07:21 2013] [error] [client 10.35.200.41] ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path?): No module named pbr.version

Comment 1 Julie Pichon 2013-12-09 09:34:27 UTC
This looks like a duplicate of bug 1029775 - what's the python-django-horizon version?

(Note the workaround would be to install python-pbr manually in the meantime - but we should have removed the dependency altogether.)

Comment 2 Martin Magr 2013-12-09 13:25:56 UTC

*** This bug has been marked as a duplicate of bug 1029775 ***


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