Designate dashboard 2.0.0-1 throws exception in Xenial

Bug #1579670 reported by György Szombathelyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
designate-dashboard (Ubuntu)
New
Undecided
Unassigned

Bug Description

After installing python-designate-dashboard, Horizon throws an exception:

[Mon May 09 10:52:52.113798 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] mod_wsgi (pid=6783): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Mon May 09 10:52:52.113837 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] Traceback (most recent call last):
[Mon May 09 10:52:52.113863 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 16, in <module>
[Mon May 09 10:52:52.113941 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] application = get_wsgi_application()
[Mon May 09 10:52:52.113961 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Mon May 09 10:52:52.114041 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] django.setup()
[Mon May 09 10:52:52.114073 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 17, in setup
[Mon May 09 10:52:52.114147 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Mon May 09 10:52:52.114176 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
[Mon May 09 10:52:52.114333 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] self._setup(name)
[Mon May 09 10:52:52.114365 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
[Mon May 09 10:52:52.114390 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] self._wrapped = Settings(settings_module)
[Mon May 09 10:52:52.114403 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
[Mon May 09 10:52:52.114419 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] mod = importlib.import_module(self.SETTINGS_MODULE)
[Mon May 09 10:52:52.114431 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Mon May 09 10:52:52.114514 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] __import__(name)
[Mon May 09 10:52:52.114541 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 374, in <module>
[Mon May 09 10:52:52.114727 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] INSTALLED_APPS,
[Mon May 09 10:52:52.114764 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/utils/settings.py", line 111, in update_dashboards
[Mon May 09 10:52:52.114875 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] for key, config in import_dashboard_config(modules):
[Mon May 09 10:52:52.114907 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/utils/settings.py", line 44, in import_dashboard_config
[Mon May 09 10:52:52.114931 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] for key, submodule in six.iteritems(import_submodules(module)):
[Mon May 09 10:52:52.114946 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/utils/settings.py", line 29, in import_submodules
[Mon May 09 10:52:52.114964 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] submodule = import_module(name)
[Mon May 09 10:52:52.114979 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Mon May 09 10:52:52.114997 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] __import__(name)
[Mon May 09 10:52:52.115027 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/enabled/_1720_project_dns_panel.py", line 15, in <module>
[Mon May 09 10:52:52.115078 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] from designatedashboard import exceptions
[Mon May 09 10:52:52.115104 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/designatedashboard/__init__.py", line 19, in <module>
[Mon May 09 10:52:52.115162 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] 'designatedashboard').version_string()
[Mon May 09 10:52:52.115181 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/pbr/version.py", line 457, in version_string
[Mon May 09 10:52:52.115368 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] return self.semantic_version().brief_string()
[Mon May 09 10:52:52.115402 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/pbr/version.py", line 452, in semantic_version
[Mon May 09 10:52:52.115428 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] self._semantic = self._get_version_from_pkg_resources()
[Mon May 09 10:52:52.115441 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/pbr/version.py", line 439, in _get_version_from_pkg_resources
[Mon May 09 10:52:52.115457 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] result_string = packaging.get_version(self.package)
[Mon May 09 10:52:52.115470 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] File "/usr/lib/python2.7/dist-packages/pbr/packaging.py", line 668, in get_version
[Mon May 09 10:52:52.115658 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] raise Exception("Versioning for this project requires either an sdist"
[Mon May 09 10:52:52.115709 2016] [wsgi:error] [pid 6783:tid 140263154734848] [remote 192.168.122.101:9112] Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

Revision history for this message
György Szombathelyi (gyurco) wrote :

Workaround (Fix?): remove traces of pbr from /usr/lib/python2.7/dist-packages/designatedashboard/__init__.py, and execute collectstatic and compress in openstack_dashboard/manage.py

Revision history for this message
David Della Vecchia (ddellav) wrote :

Is this still an issue? I've tested it and it seems to be fixed.

Revision history for this message
György Szombathelyi (gyurco) wrote :

In what version of python-designate-dashboard? I see 2.0.0-1 is still in Xenial, no newer version available.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.