Error Log
----------------
raise exceptions.ServiceCatalogException(service_type)
ServiceCatalogException: Invalid service catalog service: image
Solution
-------------
1)
Your /etc/keystone/keystone.conf file should contain the following lines if it is properly configured to use the database backend.
[catalog]
driver = keystone.catalog.backends.sql.Catalog
2)
#cd install_dir/horizon
#source .venv/bin/activate
#export OS_SERVICE_TOKEN="ADMIN"
#export OS_SERVICE_ENDPOINT=http://localhost:35357/v2.0
3)
#keystone service-list
4)
#keystone service-create --name=glance --type=image --description="Image Service"
4)
#keystone service-list
5)
#keystone endpoint-list
6)
#keystone --token ADMIN \
--endpoint http://localhost:35357/v2.0/ \
endpoint-create \
--region RegionOne \
--service-id=abad2df5eb564c07adbf6dc8958dfd99 \
--publicurl=http://localhost:9292 \
--internalurl=http://localhost:9292 \
--adminurl=http://localhost:9292
7)
#keystone endpoint-list
8)
#cd install_dir/keystone
#source .venv/bin/activate
#./bin/keystone-all
9)
#cd install_dir/horizon
#source .venv/bin/activate
#python manage.py runserver
10)
*Goto Horizon and try to login again
http://127.0.0.1:8000/auth/login/
http://127.0.0.1:8000/admin/images/images/
Reference link
-----------------------
http://docs.openstack.org/trunk/openstack-compute/install/yum/content/defining-services.html
http://docs.openstack.org/trunk/openstack-compute/install/yum/content/keystone-service-endpoint-create.html
Complete Error Log
--------------------------------
ERROR:django.request:Internal Server Error: /admin/images/images/
Traceback (most recent call last):
File "/home/saju/ops_manual/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/saju/ops_manual/horizon/horizon/decorators.py", line 38, in dec
return view_func(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/horizon/decorators.py", line 86, in dec
return view_func(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/horizon/decorators.py", line 54, in dec
return view_func(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/horizon/decorators.py", line 38, in dec
return view_func(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 48, in view
return self.dispatch(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in dispatch
return handler(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/horizon/tables/views.py", line 155, in get
handled = self.construct_tables()
File "/home/saju/ops_manual/horizon/horizon/tables/views.py", line 146, in construct_tables
handled = self.handle_table(table)
File "/home/saju/ops_manual/horizon/horizon/tables/views.py", line 118, in handle_table
data = self._get_data_dict()
File "/home/saju/ops_manual/horizon/horizon/tables/views.py", line 182, in _get_data_dict
self._data = {self.table_class._meta.name: self.get_data()}
File "/home/saju/ops_manual/horizon/openstack_dashboard/dashboards/admin/images/views.py", line 57, in get_data
exceptions.handle(self.request, msg)
File "/home/saju/ops_manual/horizon/openstack_dashboard/dashboards/admin/images/views.py", line 53, in get_data
paginate=True)
File "/home/saju/ops_manual/horizon/openstack_dashboard/api/glance.py", line 73, in image_list_detailed
images_iter = glanceclient(request).images.list(page_size=request_size,
File "/home/saju/ops_manual/horizon/openstack_dashboard/api/glance.py", line 39, in glanceclient
o = urlparse.urlparse(url_for(request, 'image'))
File "/home/saju/ops_manual/horizon/openstack_dashboard/api/base.py", line 166, in url_for
raise exceptions.ServiceCatalogException(service_type)
ServiceCatalogException: Invalid service catalog service: image
[04/May/2013 09:57:31] "GET /admin/images/images/ HTTP/1.1" 500 195747
WARNING:django.request:Not Found: /favicon.ico
WARNING:django.request:Not Found: /favicon.ico
----------------
raise exceptions.ServiceCatalogException(service_type)
ServiceCatalogException: Invalid service catalog service: image
Solution
-------------
1)
Your /etc/keystone/keystone.conf file should contain the following lines if it is properly configured to use the database backend.
[catalog]
driver = keystone.catalog.backends.sql.Catalog
2)
#cd install_dir/horizon
#source .venv/bin/activate
#export OS_SERVICE_TOKEN="ADMIN"
#export OS_SERVICE_ENDPOINT=http://localhost:35357/v2.0
3)
#keystone service-list
4)
#keystone service-create --name=glance --type=image --description="Image Service"
4)
#keystone service-list
5)
#keystone endpoint-list
6)
#keystone --token ADMIN \
--endpoint http://localhost:35357/v2.0/ \
endpoint-create \
--region RegionOne \
--service-id=abad2df5eb564c07adbf6dc8958dfd99 \
--publicurl=http://localhost:9292 \
--internalurl=http://localhost:9292 \
--adminurl=http://localhost:9292
7)
#keystone endpoint-list
8)
#cd install_dir/keystone
#source .venv/bin/activate
#./bin/keystone-all
9)
#cd install_dir/horizon
#source .venv/bin/activate
#python manage.py runserver
10)
*Goto Horizon and try to login again
http://127.0.0.1:8000/auth/login/
http://127.0.0.1:8000/admin/images/images/
Reference link
-----------------------
http://docs.openstack.org/trunk/openstack-compute/install/yum/content/defining-services.html
http://docs.openstack.org/trunk/openstack-compute/install/yum/content/keystone-service-endpoint-create.html
Complete Error Log
--------------------------------
ERROR:django.request:Internal Server Error: /admin/images/images/
Traceback (most recent call last):
File "/home/saju/ops_manual/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/saju/ops_manual/horizon/horizon/decorators.py", line 38, in dec
return view_func(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/horizon/decorators.py", line 86, in dec
return view_func(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/horizon/decorators.py", line 54, in dec
return view_func(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/horizon/decorators.py", line 38, in dec
return view_func(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 48, in view
return self.dispatch(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in dispatch
return handler(request, *args, **kwargs)
File "/home/saju/ops_manual/horizon/horizon/tables/views.py", line 155, in get
handled = self.construct_tables()
File "/home/saju/ops_manual/horizon/horizon/tables/views.py", line 146, in construct_tables
handled = self.handle_table(table)
File "/home/saju/ops_manual/horizon/horizon/tables/views.py", line 118, in handle_table
data = self._get_data_dict()
File "/home/saju/ops_manual/horizon/horizon/tables/views.py", line 182, in _get_data_dict
self._data = {self.table_class._meta.name: self.get_data()}
File "/home/saju/ops_manual/horizon/openstack_dashboard/dashboards/admin/images/views.py", line 57, in get_data
exceptions.handle(self.request, msg)
File "/home/saju/ops_manual/horizon/openstack_dashboard/dashboards/admin/images/views.py", line 53, in get_data
paginate=True)
File "/home/saju/ops_manual/horizon/openstack_dashboard/api/glance.py", line 73, in image_list_detailed
images_iter = glanceclient(request).images.list(page_size=request_size,
File "/home/saju/ops_manual/horizon/openstack_dashboard/api/glance.py", line 39, in glanceclient
o = urlparse.urlparse(url_for(request, 'image'))
File "/home/saju/ops_manual/horizon/openstack_dashboard/api/base.py", line 166, in url_for
raise exceptions.ServiceCatalogException(service_type)
ServiceCatalogException: Invalid service catalog service: image
[04/May/2013 09:57:31] "GET /admin/images/images/ HTTP/1.1" 500 195747
WARNING:django.request:Not Found: /favicon.ico
WARNING:django.request:Not Found: /favicon.ico
No comments:
Post a Comment