[OpenStack-Dashboard]cannot log on the web page the horizon
When I log on the web page the horizon ,entering user name and password: admin admin. The following error message appears:
ConnectionError at /admin/
HTTPConnectionPool(host='localhost', port=8774): Max retries exceeded with url: /v1.1/b844563e6be440bb8451472c3cd596e9/os-simple-tenant-usage?start=2014-10-23T00:00:00&end=2014-10-23T23:59:59&detailed=1 (Caused by <class 'socket.error'="">: [Errno 111] Connection refused)
Request Method: GET
Request URL: http://192.168.5.229/horizon/admin/
Django Version: 1.5.4
Exception Type: ConnectionError
Exception Value:
HTTPConnectionPool(host='localhost', port=8774): Max retries exceeded with url: /v1.1/b844563e6be440bb8451472c3cd596e9/os-simple-tenant-usage?start=2014-10-23T00:00:00&end=2014-10-23T23:59:59&detailed=1 (Caused by <class 'socket.error'="">: [Errno 111] Connection refused)
Exception Location: /usr/lib/python2.7/dist-packages/requests/adapters.py in send, line 327
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']
Traceback Switch to copy-and-paste view
/usr/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response response = callback(request, callback_args, *callback_kwargs) ...
Then,my keystone.conf file is :
[DEFAULT]
admin_token =admin
debug = True
verbose = True
log_file = keystone.log
log_dir = /var/log/keystone
[sql]
connection = mysql://keystone:keystone@192.168.5.229/keystone
[identity]
driver = keystone.identity.backends.sql.Identity
[credential]
driver = keystone.credential.backends.sql.Credential
[trust]
driver = keystone.trust.backends.sql.Trust
[os_inherit]
[catalog]
driver = keystone.catalog.backends.templated.TemplatedCatalog
template_file = /etc/keystone/default_catalog.templates
[endpoint_filter]
[token]
driver = keystone.token.backends.sql.Token
[cache]
[policy]
driver = keystone.policy.backends.sql.Policy
[ec2]
driver = keystone.contrib.ec2.backends.kvs.Ec2
[assignment]
[oauth1]
[ssl]
[signing]
[ldap]
[auth]
methods = external,password,token,oauth1
password = keystone.auth.plugins.password.Password
token = keystone.auth.plugins.token.Token
oauth1 = keystone.auth.plugins.oauth1.OAuth
[paste_deploy]
config_file = keystone-paste.ini
And my /etc/openstack/local_settings.py file is :
import os from django.utils.translation import ugettext_lazy as _ from openstack_dashboard import exceptions DEBUG = True TEMPLATE_DEBUG = DEBUG HORIZON_CONFIG = { 'dashboards': ('project', 'admin', 'settings',), 'default_dashboard': 'project', 'user_home': 'openstack_dashboard.views.get_user_home', 'ajax_queue_limit': 10, 'auto_fade_alerts': { 'delay': 3000, 'fade_duration': 1500, 'types': ['alert-success', 'alert-info'] }, 'help_url': "http://docs.openstack.org", 'exceptions': {'recoverable': exceptions.RECOVERABLE, 'not_found': exceptions.NOT_FOUND, 'unauthorized': exceptions.UNAUTHORIZED}, } LOCAL_PATH = os.path.dirname(os.path.abspath(__file__)) from horizon.utils import secret_key SECRET_KEY = secret_key.generate_or_read_from_file('/var/lib/openstack-dashboard/secret_key') CACHES = { 'default': { 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION' : '127.0.0.1:11211', } } EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' OPENSTACK_HOST = "127.0.0.1" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member" OPENSTACK_KEYSTONE_BACKEND = { 'name': 'native', 'can_edit_user': True, 'can_edit_group': True, 'can_edit_project': True, 'can_edit_domain': True, 'can_edit_role': True } OPENSTACK_HYPERVISOR_FEATURES = { 'can_set_mount_point': True, } OPENSTACK_NEUTRON_NETWORK = { 'enable_lb': False, 'enable_firewall': False, 'enable_quotas': True, 'enable_vpn': False, 'profile_support': None, } API_RESULT_LIMIT = 1000 API_RESULT_PAGE_SIZE = 20 TIME_ZONE = "UTC" LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'null': { 'level': 'DEBUG', 'class': 'django.utils.log.NullHandler', }, 'console': { 'level': 'INFO', 'class': 'logging.StreamHandler', }, }, 'loggers ...