标签:volume versions python vol 登录 image etc roo localhost
本操作在控制节点上完成
root@controller ~(keystone)# apt install openstack-dashboard -y
由于配置文件本身是一个Python文件,对缩进要求非常严格,修改时需要小心。
root@controller ~(keystone)# vi /etc/openstack-dashboard/local_settings.py
# 190行,改成自己的控制节点ip
OPENSTACK_HOST = "10.0.0.7"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
# 163行,改成自己的控制节点ip
CACHES = {
‘default‘: {
‘BACKEND‘: ‘django.core.cache.backends.memcached.MemcachedCache‘,
‘LOCATION‘: ‘10.0.0.7:11211‘,
},
}
# 98行,取消注释
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = ‘Default‘
# 76行,取消注释并修改
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
# 65行,按下面格式取消注释
OPENSTACK_API_VERSIONS = {
# "data-processing": 1.1,
"identity": 3,
"image": 2,
"volume": 2,
"compute": 2,
}
# 39行,取消注释并添加自己的hostname
ALLOWED_HOSTS = [‘dlp.srv.world‘, ‘localhost‘]
重启服务
root@controller ~(keystone)# systemctl restart apache2 memcached
在浏览器上输入http://10.110.26.75/horizon
使用之前配置的admin用户登录即可,admin/root
10. 配置Horizon — OpenStack Queens 三节点部署
标签:volume versions python vol 登录 image etc roo localhost
原文地址:https://www.cnblogs.com/zhaoyixin96/p/openstack-queens-10.html