OpenStackNewton版本部署----界面(Dashboard)
Dashboard(Horizon)是一个Web界面,可让云管理员和用户管理各种OpenStack资源和服务。
安装和配置组件
1、安装
# yum install openstack-dashboard
2、修改/etc/openstack-dashboard/local_settings文件
1)配置dashboard以在控制节点使用OpenStack服务:
OPENSTACK_HOST = "controller"
2)允许所有主机访问dashboard:
ALLOWED_HOSTS = ['*', ]
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
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"
9)检查配置
用命令cat/etc/openstack-dashboard/local_settings | grep -v ^# | grep -v^$ 检查配置是否正确。
完成安装
1、重新启动Web服务器和会话存储服务:
# systemctl restart httpd.service memcached.service
验证操作
域:default
用户名:admin
密码:xxx