这里把dashboard安装在controller节点上。
1、安装程序包
# yum install -y openstack-dashboard
2、修改配置文件
# vim /etc/openstack-dashboard/local_settings
OPENSTACK_HOST = "controller"
ALLOWED_HOSTS = ['*', ] #注意这里的写法!
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
Enable the Identity API version 3:
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2,
}
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
configure the time zone:
TIME_ZONE = "Asia/Shanghai"
3、重启httpd和memcached服务
# systemctl restart httpd.service memcached.service
4、验证
用浏览器访问 http://controller/dashboard
使用admin账号或demo账号登录。
概览
网络拓扑