openstack必须安装此服务,才能登录web界面
部署
环境:chen1:192.168.1.13
下载
yum -y install openstack-dashboard
编辑文件
cp /etc/openstack-dashboard/local_settings /etc/openstack-dashboard/local_settings.bak
vim /etc/openstack-dashboard/local_settings #更改以下选项
OPENSTACK_HOST = "chen1"
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'chen1:11211',
},
}
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_API_VERSIONS = {
# "data-processing": 1.1,
"identity": 3,
"image": 2,
"volume": 2,
"compute": 2,
}
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
ALLOWED_HOSTS = ['horizon.example.com', 'localhost','*']
之后重启相关服务
systemctl restart httpd.service memcached.service
之后在网页上登录即可
192.168.1.13/dashboard