can't login to dashboard: An error occurred authenticating. Please try again later. [closed]
Im running OpenStack Grizzly (identity, compute (cloud controller) and horizon) on a single server with Centos 6.4. Message system is QPID.
When im using keystone client evrything works great. As example:
[root@OPEN-SRV-G-HOR10 ~]# keystone --os-username admin --os-password=DipRoot --os-tenant-name admin --os-auth-url=http://10.10.10.135:35357/v2.0 user-list
+----------------------------------+---------+---------+--------------------+
| id | name | enabled | email |
+----------------------------------+---------+---------+--------------------+
| 3853d51ac9224f5688a20c330fdf860b | admin | True | admin@domain.com |
| 5f0c3317582348b294f9347aedb86150 | cinder | True | cinder@domain.com |
| 7065a77b89384b3a88a4754abe63f1da | demo | True | demo@domain.com |
| 9facb1f9fab64d388227f15d22cd5681 | glance | True | glance@domain.com |
| b9be2045f07d48068d61c67ed83ec8d1 | nova | True | nova@domain.com |
| e90a185497f64dadab1c231dfe62f3dd | quantum | True | quantum@domain.com |
+----------------------------------+---------+---------+--------------------+
or
keystone --os-username admin --os-password=DipRoot --os-tenant-name admin --os-auth-url=http://10.10.10.135:35357/v2.0 token-get
+-----------+----------------------------------+
| Property | Value |
+-----------+----------------------------------+
| expires | 2013-09-04T08:14:00Z |
| id | 5a84eec0008a45f6b663e9f7eff63462 |
| tenant_id | 3859895950b24382a77c519032777ca7 |
| user_id | 3853d51ac9224f5688a20c330fdf860b |
+-----------+----------------------------------+
When I try to login trough dashboard, following error occurs: An error occurred authenticating. Please try again later.
Here is some additional nfo:
in /var/log/httpd/error_log i found folowing enties:
DEBUG:openstack_auth.backend:Beginning user authentication for user "admin".
[Tue Sep 03 02:28:27 2013] [error] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 10.10.10.135
[Tue Sep 03 02:28:27 2013] [error] DeprecationWarning: BaseException.message has been deprecated as of Python 2.6DEBUG:openstack_auth.backend:Authorization Failed: [Errno 13] Permission denied
Config in in /etc/openstack-dashoboard/local_settings
import os
from django.utils.translation import ugettext_lazy as _
from openstack_dashboard import exceptions
DEBUG = False
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__))
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache'
}
}
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_project': True
}
OPENSTACK_HYPERVISOR_FEATURES = {
'can_set_mount_point': False,
'can_encrypt_volumes': False
}
OPENSTACK_QUANTUM_NETWORK = {
'enable_lb': False
}
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': {
# Set the level to "DEBUG" for verbose output logging.
'level': 'INFO',
'class': 'logging.StreamHandler',
},
},
'loggers': {
# Logging from django.db.backends is VERY verbose, send to null
# by default.
'django.db.backends': {
'handlers': ['null'],
'propagate': False,
},
'requests': {
'handlers': ['null'],
'propagate': False,
},
'horizon': {
'handlers': ['console'],
'propagate': False,
},
'openstack_dashboard': {
'handlers': ['console'],
'propagate': False,
},
'novaclient': {
'handlers': ['console'],
'propagate': False,
},
'keystoneclient': {
'handlers': ['console'],
'propagate': False,
},
'glanceclient': {
'handlers': ['console'],
'propagate': False,
},
'nose.plugins.manager': {
'handlers': ['console'],
'propagate': False,
}
}
}
Is there an other config file to point to the keystone server then local_settings? an the folowing options?
OPENSTACK_HOST = "127.0.0.1"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
openstack-status:
[root@OPEN-SRV-G-HOR10 ~]# openstack-status
== Nova services ==
openstack-nova-api: active
openstack-nova-cert: active
openstack-nova-compute: dead (disabled on boot)
openstack-nova-network: dead (disabled on boot)
openstack-nova-scheduler: active
openstack-nova-volume: dead (disabled on boot)
openstack-nova-conductor: active
== Keystone service ==
openstack-keystone: active
== Horizon service ==
openstack-dashboard: active
== Support services ==
mysqld: active
httpd: active
qpidd: active
memcached: active
== Keystone users ==
+----------------------------------+---------+---------+--------------------+
| id | name | enabled | email |
+----------------------------------+---------+---------+--------------------+
| 3853d51ac9224f5688a20c330fdf860b | admin | True | admin@domain.com |
| 5f0c3317582348b294f9347aedb86150 ...
show the keystone.log plz.
This is not an answer, please post this as a comment.
Can you double check that your Horizon is pointing to the expected Keystone (10.10.10.135).
I updatet my question
I guess the user running the Horizon service does not have the permission to open a socket connection. Can you try restarting the apache2 service as root user?