@zhangyy
2020-01-14T10:09:56.000000Z
字数 1896
阅读 139
openstack系列
一: horizon(dashboard)概述
二: 安装dashboard WEB控制台
# mitaka中文版文档
# https://docs.openstack.org/mitaka/zh_CN/install-guide-rdo/neutron-controller-install.html
# rocky版-用户引导页
# https://docs.openstack.org/install-guide/openstack-services.html#minimal-deployment-for-rocky
# rocky版horizon(dashboard)安装文档
# https://docs.openstack.org/horizon/rocky/install/
系统环境要求:
1)Python2.7或者3.5以上
2)Django1.11或者2.0以上(Django 1.8 to 1.10 are no longer supported since Rocky release.)
3)可用的keystone节点服务
4)以下服务可以选择:
cinder: Block Storage
glance: Image Management
neutron: Networking
nova: Compute
swift: Object Storage
Horizon also supports many other OpenStack services via plugins. For more information, see the Plugin Registry.
安装dashboard软件包
yum install openstack-dashboard -y
vim /etc/openstack-dashboard/local_settings
---
ALLOWED_HOSTS = ['*', ]
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2,
}
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default"
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
OPENSTACK_NEUTRON_NETWORK = {
'enable_router': False,
'enable_quotas': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_fip_topology_check': False,
'enable_lb': False,
'enable_firewall': False,
'enable_vpn': False,
}
TIME_ZONE = "Asia/Shanghai"
---
修改/etc/httpd/conf.d/openstack-dashboard.conf
# 增加以下内容
vim /etc/httpd/conf.d/openstack-dashboard.conf
-------------------------------------
WSGIApplicationGroup %{GLOBAL}
-------------------------------------
重启web服务器以及会话存储服务
systemctl restart httpd.service memcached.service
systemctl status httpd.service memcached.service
打开web页面
域名: Default
用户名: admin
密码: admin