[Bug 1033920] [NEW] Dashboard raises a ServiceCatalogException when attempting to download juju settings
Andrew Glen-Young
1033920 at bugs.launchpad.net
Tue Aug 7 10:53:47 UTC 2012
Public bug reported:
When attempting to download the juju settings file from the dashboard I
receive an exception¹ which displays an ugly, blank 500 error message.
It seems that the juju module is expecting an S3 endpoint in my service
catalog, not finding it and throwing an exception which is not properly
caught. This means that I need to reload the page to remove the blank
page and continue to use the dashboard.
What I expect:
I expect the exception to be thrown (as I do not have the required
endpoint) and an explanation that there was an error with the endpoint
and for the user to be able to use the dashboard without having to
reload the page.
Exception:
[1]: After setting DEBUG=True I see the following
ServiceCatalogException from Django:
Environment:
Request Method: POST
Request URL: http://localhost:8000/settings/juju/
Django Version: 1.3.1
Python Version: 2.7.3
Installed Applications:
['openstack_dashboard',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_nose',
'horizon',
'horizon.dashboards.nova',
'horizon.dashboards.syspanel',
'horizon.dashboards.settings']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'openstack_dashboard.middleware.DashboardLogUnhandledExceptionsMiddleware',
'horizon.middleware.HorizonMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.middleware.locale.LocaleMiddleware')
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
40. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
55. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
40. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
47. return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
68. return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/forms/views.py" in post
84. return self.get(self, request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/forms/views.py" in get
64. form, handled = self.maybe_handle()
File "/usr/lib/python2.7/dist-packages/horizon/forms/views.py" in maybe_handle
59. self.form, self.handled = form.maybe_handle(self.request, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/forms/base.py" in maybe_handle
101. exceptions.handle(request)
File "/usr/lib/python2.7/dist-packages/horizon/forms/base.py" in maybe_handle
99. return form, form.handle(request, form.cleaned_data)
File "/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/juju/forms.py" in handle
88. redirect=request.build_absolute_uri())
File "/usr/lib/python2.7/dist-packages/horizon/dashboards/settings/juju/forms.py" in handle
81. 's3_url': api.url_for(request, 's3'),
File "/usr/lib/python2.7/dist-packages/horizon/api/base.py" in url_for
112. raise exceptions.ServiceCatalogException(service_type)
Exception Type: ServiceCatalogException at /settings/juju/
Exception Value: Invalid service catalog service: s3
System settings:
$ dpkg-query --show *dashboard*
openstack-dashboard 2012.1-0ubuntu8.1
openstack-dashboard-ubuntu-theme 2012.1-0ubuntu8.1
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
** Affects: horizon (Ubuntu)
Importance: Undecided
Status: New
** Tags: canonistack
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1033920
Title:
Dashboard raises a ServiceCatalogException when attempting to download
juju settings
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1033920/+subscriptions
More information about the Ubuntu-server-bugs
mailing list