Ask Your Question
3

Dashboard doesn't work (ServiceCatalogException at /admin/, Invalid service catalog service: compute)

asked 2014-04-12 00:40:09 -0600

anonymous user

Anonymous

updated 2015-09-07 09:51:27 -0600

fifieldt gravatar image

It seems that all other component is working fine. But I couldn't get Horizon dashboard access with the following debug error in browser. I tried to re-setup service, endpoint in keystone and around horizon related config file several time. The error is always same.

Does anyone have the idea and information of fixing this error? Here is my related information.

Here is my other install information and environment.

  • Ubuntu Server 12.04.4 LTS on vSphere5.0
  • Havana
  • manual install component to 3 VM (controller, network, compute)

debug (browser)

ServiceCatalogException at /admin/

Invalid service catalog service: compute

Request Method:     GET
Request URL:    http://192.168.2.181/horizon/admin/
Django Version:     1.5.4
Exception Type:     ServiceCatalogException
Exception Value:    

Invalid service catalog service: compute

Exception Location:     /usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/base.py in url_for, line 268
Python Executable:  /usr/bin/python
Python Version:     2.7.3
Python Path:    

['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/share/openstack-dashboard/',
 '/usr/share/openstack-dashboard/openstack_dashboard']

Server time:    Sat, 12 Apr 2014 04:00:01 +0000

root@controller:~# keystone service-list

+----------------------------------+----------+----------+------------------------------+
|                id                |   name   |   type   |         description          |
+----------------------------------+----------+----------+------------------------------+
| ccd4cd4598bd4fec9d51e062976f3723 |  cinder  |  volume  |   Volume Service   |
| f5ac66e9835f457ebaee7082d97d44d5 |   ec2    |   ec2    |    EC2 service     |
| e62216c1ee7542309688175f5c0550e0 |  glance  |  image   |   Image Service    |
| a5f82f1e57784ac2aa6a3f721269fb22 | keystone | identity |      Identity      |
| c2c767628fff48babed245853b497c82 | neutron  | network  | Networking service |
| f171541d8c17491bb0cf9fad7ed547ad |   nova   | compute  |  Compute Service   |
+----------------------------------+----------+----------+------------------------------+

root@controller:~# keystone endpoint-list

+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
|                id                |   region  |                publicurl                |               internalurl               |                 adminurl                |            service_id            |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
| 4a89eaad2ab94ea09bf1505d59287a40 | RegionOne |          http://controller:9292         |          http://controller:9292         |          http://controller:9292         | e62216c1ee7542309688175f5c0550e0 |
| 4c4e83f5efa841c9816156da56823d4b | RegionOne | http://controller:8776/v1/$(tenant_id)s | http://controller:8776/v1/%(tenant_id)s | http://controller:8776/v1/%(tenant_id)s | ccd4cd4598bd4fec9d51e062976f3723 |
| 73c77affd18944a29afa054e3211df8b | RegionOne |  http://controller:8773/services/Cloud  |  http://controller:8773/services/Cloud  |  http://controller:8773/services/Admin  | f5ac66e9835f457ebaee7082d97d44d5 |
| 9ef62f851ca749da9497cb3ab648e598 | RegionOne | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | f171541d8c17491bb0cf9fad7ed547ad |
| d1a64f53c7ae485b88c64b4a7a8c9c02 | RegionOne |         http://controller:9696/         |         http://controller:9696/         |         http://controller:9696/         | c2c767628fff48babed245853b497c82 |
| ff8f2e3ae8d54f7bb772c5ff4a6330a7 | RegionOne |       http://controller:5000/v2.0       |       http://controller:5000/v2.0       |       http://controller:35357/v2.0      | a5f82f1e57784ac2aa6a3f721269fb22 |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+

root@controller:~# nova-manage service list

Binary           Host                                 Zone             Status     State Updated_At
nova-cert        controller                           internal         enabled    :-)   2014-04-12 05:13:57
nova-conductor   controller                           internal         enabled    :-)   2014-04-12 05:13:55
nova-consoleauth controller                           internal         enabled    :-)   2014-04-12 05:13:56
nova-scheduler   controller                           internal         enabled    :-)   2014-04-12 05:13:57
nova-compute     compute                             nova             enabled    :-)   2014-04-12 05:14:01

root@controller:/etc/openstack-dashboard# cat local_settings.py

    #OPENSTACK_HOST = "127.0.0.1"
    OPENSTACK_HOST = "controller"
    OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
    #OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
    OPENSTACK_KEYSTONE_DEFAULT_ROLE = "admin"
    #OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"

root@controller:/var/log/apache2# more error.log

[Sat Apr 12 13:28:54 2014] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Sat Apr 12 13:28:54 2014] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Sat Apr 12 13:28:54 2014] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
[Sat Apr ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-04-22 23:17:27 -0600

shkimura gravatar image

Thank you for the information. Finally I could get access to Horizon after re-setup the service and endpoint. Only my change for get access GUI is in OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_" in /etc/openstack-dashboard/local_settings.py

#OPENSTACK_HOST = "127.0.0.1"
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
#OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
#OPENSTACK_KEYSTONE_DEFAULT_ROLE = "admin"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
edit flag offensive delete link more
0

answered 2014-04-14 10:03:14 -0600

jpichon gravatar image

It's not uncommon to see this error when there's a mismatch in region names (e.g. one region accidentally written as 'regionOne') but it seems all the endpoints are correctly in the same region here. You said you set up the endpoints again, did you make sure to log in again to Horizon after this (as opposed to simply refreshing the page)? The catalog is parsed only once at login time, so changes wouldn't have been picked up if simply navigating to the same page while still logged in.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-12 00:40:09 -0600

Seen: 9,796 times

Last updated: Sep 07 '15