2台kxcontroller安装组件
# yum install openstack-dashboard -y
修改一样的配置
vi /etc/openstack-dashboard/local_settings
查找以下内容进行修改
OPENSTACK_HOST="kxcontroller"
ALLOWED_HOSTS=['*', ]
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'kxcontroller1:11211,kxcontroller2:11211',
}
}
OPENSTACK_KEYSTONE_DEFAULT_ROLE="user"
TIME_ZONE="Asia/Shanghai"
修改一下dashboard的界面登出超时时长,它跟keystone的token一致,不然30分钟内无操作,自动登出,很烦人
/usr/share/openstack-dashboard/openstack_dashboard/settings.py
SESSION_TIMEOUT = 86400
重启服务。
# systemctl enable httpd.service memcached.service
# systemctl restart httpd.service memcached.service
验证:
本地电脑上配置hosts解析配置
10.120.42.10 kxcontroller
访问以下连接测试
http://kxcontroller/dashboard
使用admin demo帐号密码 测试登录是否异常