具体报错如下:
日志如下:
从日志上看初步判定是认证服务有问题,先查看了dashboard配置文件etc/openstack-dashboard/local_settings
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
发现配置是正确的,接下来检查keystone的endpoint,
[root@controller opt]# openstack endpoint list --service keystone
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+
| 0692f6132e304309a444943e83ceed98 | RegionOne | keystone | identity | True | internal | http://controller/v3 |
| 9c8ca1339ac84c89bbfc125af41622d6 | RegionOne | keystone | identity | True | admin | http://controller:35357/v3 |
| d5e020ce70bd470587319428566f66ee | RegionOne | keystone | identity | True | public | http://controller:5000/v3 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+
发现kestone的internal配置错误,改为http://controller:5000/v3,重启http,memcached,问题解决!