Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thank very much! yum install python-pbr followed by service httpd restart solved this problem.

But when I try to login I get an authentication error. In the browser I get "An error occurred authenticating. Please try again later." and in the logs: /var/log/httpd/error_log: [Wed Nov 20 21:00:52 2013] [error] REQ: curl -i -X POST http://localhost:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" [Wed Nov 20 21:00:52 2013] [error] REQ BODY: {"auth": {"passwordCredentials": {"username": "admin", "password": "admin"}}} [Wed Nov 20 21:00:52 2013] [error] [Wed Nov 20 21:00:52 2013] [error] INFO:urllib3.connectionpool:Starting new HTTP connection (1): localhost [Wed Nov 20 21:00:52 2013] [error] Login failed for user "admin".

/var/log/access_log: 127.0.0.1 - - [20/Nov/2013:16:10:25 -0500] "POST /dashboard/auth/login/ HTTP/1.1" 200 1700 "http://localhost/dashboard/auth/login/" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131023 Firefox/17.0" 127.0.0.1 - - [20/Nov/2013:16:10:26 -0500] "GET /dashboard/i18n/js/horizon/ HTTP/1.1" 200 718 "http://localhost/dashboard/auth/login/" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131023 Firefox/17.0

keystone.log remains unchanged.

My /etc/openstack-dashboard/local_settings : import os from django.utils.translation import ugettext_lazy as _ from openstack_dashboard import exceptions DEBUG = True TEMPLATE_DEBUG = DEBUG ALLOWED_HOSTS = ['10.160.20.161', 'localhost'] 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}, } from horizon.utils import secret_key LOCAL_PATH = '/var/lib/openstack-dashboard' SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store')) SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' } } EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

OPENSTACK_HOST = "localhost" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST OPENSTACK_KEYSTONE_DEFAULT_ROLE = "admin" 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': False,

# NOTE: as of Grizzly this is not yet supported in Nova so enabling this
# setting will not do anything useful
'can_encrypt_volumes': False

} OPENSTACK_NEUTRON_NETWORK = { 'enable_lb': False, 'enable_firewall': False, 'enable_quotas': True, 'enable_vpn': False, # The profile_support option is used to detect if an external router can be # configured via the dashboard. When using specific plugins the # profile_support can be turned on if needed. 'profile_support': None, #'profile_support': 'cisco', } API_RESULT_LIMIT = 1000 API_RESULT_PAGE_SIZE = 20 TIME_ZONE = "UTC" POLICY_FILES_PATH = '/etc/openstack-dashboard' POLICY_FILES = { 'identity': 'keystone_policy.json', 'compute': 'nova_policy.json' }