ServiceCatalogException: Invalid service catalog service: compute

Bug #1244457 reported by Sean Dague
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned
grenade
Invalid
Undecided
Unassigned

Bug Description

On the following review - https://review.openstack.org/#/c/53712/

We failed the tempest tests on the dashboard scenario tests for the pg version of the job:
2013-10-24 21:26:00.445 | ======================================================================
2013-10-24 21:26:00.445 | FAIL: tempest.scenario.test_dashboard_basic_ops.TestDashboardBasicOps.test_basic_scenario[dashboard]
2013-10-24 21:26:00.445 | tempest.scenario.test_dashboard_basic_ops.TestDashboardBasicOps.test_basic_scenario[dashboard]
2013-10-24 21:26:00.445 | ----------------------------------------------------------------------
2013-10-24 21:26:00.446 | _StringException: Empty attachments:
2013-10-24 21:26:00.446 | pythonlogging:''
2013-10-24 21:26:00.446 | stderr
2013-10-24 21:26:00.446 | stdout
2013-10-24 21:26:00.446 |
2013-10-24 21:26:00.446 | Traceback (most recent call last):
2013-10-24 21:26:00.446 | File "tempest/scenario/test_dashboard_basic_ops.py", line 73, in test_basic_scenario
2013-10-24 21:26:00.447 | self.user_login()
2013-10-24 21:26:00.447 | File "tempest/scenario/test_dashboard_basic_ops.py", line 64, in user_login
2013-10-24 21:26:00.447 | self.opener.open(req, urllib.urlencode(params))
2013-10-24 21:26:00.447 | File "/usr/lib/python2.7/urllib2.py", line 406, in open
2013-10-24 21:26:00.447 | response = meth(req, response)
2013-10-24 21:26:00.447 | File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
2013-10-24 21:26:00.447 | 'http', request, response, code, msg, hdrs)
2013-10-24 21:26:00.448 | File "/usr/lib/python2.7/urllib2.py", line 438, in error
2013-10-24 21:26:00.448 | result = self._call_chain(*args)
2013-10-24 21:26:00.448 | File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
2013-10-24 21:26:00.448 | result = func(*args)
2013-10-24 21:26:00.448 | File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
2013-10-24 21:26:00.448 | return self.parent.open(new, timeout=req.timeout)
2013-10-24 21:26:00.448 | File "/usr/lib/python2.7/urllib2.py", line 406, in open
2013-10-24 21:26:00.449 | response = meth(req, response)
2013-10-24 21:26:00.449 | File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
2013-10-24 21:26:00.449 | 'http', request, response, code, msg, hdrs)
2013-10-24 21:26:00.449 | File "/usr/lib/python2.7/urllib2.py", line 438, in error
2013-10-24 21:26:00.449 | result = self._call_chain(*args)
2013-10-24 21:26:00.449 | File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
2013-10-24 21:26:00.449 | result = func(*args)
2013-10-24 21:26:00.450 | File "/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
2013-10-24 21:26:00.450 | return self.parent.open(new, timeout=req.timeout)
2013-10-24 21:26:00.450 | File "/usr/lib/python2.7/urllib2.py", line 406, in open
2013-10-24 21:26:00.450 | response = meth(req, response)
2013-10-24 21:26:00.450 | File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
2013-10-24 21:26:00.450 | 'http', request, response, code, msg, hdrs)
2013-10-24 21:26:00.450 | File "/usr/lib/python2.7/urllib2.py", line 444, in error
2013-10-24 21:26:00.451 | return self._call_chain(*args)
2013-10-24 21:26:00.451 | File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
2013-10-24 21:26:00.451 | result = func(*args)
2013-10-24 21:26:00.451 | File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
2013-10-24 21:26:00.451 | raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
2013-10-24 21:26:00.451 | HTTPError: HTTP Error 500: INTERNAL SERVER ERROR

The horizon logs have the following error info:

[Thu Oct 24 21:18:43 2013] [error] Internal Server Error: /project/
[Thu Oct 24 21:18:43 2013] [error] Traceback (most recent call last):
[Thu Oct 24 21:18:43 2013] [error] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
[Thu Oct 24 21:18:43 2013] [error] response = callback(request, *callback_args, **callback_kwargs)
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 38, in dec
[Thu Oct 24 21:18:43 2013] [error] return view_func(request, *args, **kwargs)
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 54, in dec
[Thu Oct 24 21:18:43 2013] [error] return view_func(request, *args, **kwargs)
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 38, in dec
[Thu Oct 24 21:18:43 2013] [error] return view_func(request, *args, **kwargs)
[Thu Oct 24 21:18:43 2013] [error] File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
[Thu Oct 24 21:18:43 2013] [error] return self.dispatch(request, *args, **kwargs)
[Thu Oct 24 21:18:43 2013] [error] File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 86, in dispatch
[Thu Oct 24 21:18:43 2013] [error] return handler(request, *args, **kwargs)
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py", line 155, in get
[Thu Oct 24 21:18:43 2013] [error] handled = self.construct_tables()
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py", line 146, in construct_tables
[Thu Oct 24 21:18:43 2013] [error] handled = self.handle_table(table)
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py", line 118, in handle_table
[Thu Oct 24 21:18:43 2013] [error] data = self._get_data_dict()
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py", line 182, in _get_data_dict
[Thu Oct 24 21:18:43 2013] [error] self._data = {self.table_class._meta.name: self.get_data()}
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/overview/views.py", line 56, in get_data
[Thu Oct 24 21:18:43 2013] [error] super(ProjectOverview, self).get_data()
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/views.py", line 29, in get_data
[Thu Oct 24 21:18:43 2013] [error] self.usage.summarize(*self.usage.get_date_range())
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py", line 184, in summarize
[Thu Oct 24 21:18:43 2013] [error] if not api.nova.extension_supported('SimpleTenantUsage', self.request):
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py", line 33, in __call__
[Thu Oct 24 21:18:43 2013] [error] value = self.func(*args)
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 691, in extension_supported
[Thu Oct 24 21:18:43 2013] [error] extensions = list_extensions(request)
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py", line 33, in __call__
[Thu Oct 24 21:18:43 2013] [error] value = self.func(*args)
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 681, in list_extensions
[Thu Oct 24 21:18:43 2013] [error] return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 361, in novaclient
[Thu Oct 24 21:18:43 2013] [error] (request.user.token.id, base.url_for(request, 'compute')))
[Thu Oct 24 21:18:43 2013] [error] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/base.py", line 270, in url_for
[Thu Oct 24 21:18:43 2013] [error] raise exceptions.ServiceCatalogException(service_type)
[Thu Oct 24 21:18:43 2013] [error] ServiceCatalogException: Invalid service catalog service: compute

Tags: gate
David Lyle (david-lyle)
Changed in horizon:
status: New → Incomplete
Revision history for this message
David Lyle (david-lyle) wrote :

This seems to be an isolated instance. This problem seems to be a configuration issue and the service catalog is not being populated properly. This exception indicates the compute service is not configured properly in keystone when the test is run.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
Revision history for this message
Attila Fazekas (afazekas) wrote :
Changed in horizon:
status: Expired → New
Changed in horizon:
status: New → Confirmed
Revision history for this message
Joe Gordon (jogo) wrote :

Just hit this again

Julie Pichon (jpichon)
tags: added: gate
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Tempest is asking horizon to perform a basic login test, and horizon is throwing an exception because keystone cannot supply a url for nova. Marking the horizon bug as invalid, since it is not a bug in the user interface.

Changed in horizon:
status: Confirmed → Invalid
Matt Riedemann (mriedem)
Changed in grenade:
status: New → Incomplete
Revision history for this message
Sean Dague (sdague) wrote :

This grenade bug was last updated over 180 days ago, as grenade
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in grenade:
status: Incomplete → Invalid
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.