Bug 1039368

Summary: When installing nova-network (multihost), horizon fails to start and django returns 500 due to missing dependency
Product: Red Hat OpenStack Reporter: Rami Vaknin <rvaknin>
Component: openstack-packstackAssignee: RHOS Maint <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Nir Magnezi <nmagnezi>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0CC: aortega, derekh, hateya, jpichon, jschluet, mmagr, mrunge, oblaut, rvaknin, yeylon
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-09 13:25:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***