Dashboard简介
Dashboard(horizon)是一个web接口,使得云平台管理员以及用户可以管理不同的Openstack资源以及服务。
这个部署示例使用的是 Apache Web 服务器。
controller节点安装Horizon服务
# yum install openstack-dashboard -y
# vim /etc/openstack-dashboard/local_settings
//188
OPENSTACK_HOST = "controller"
//38
ALLOWED_HOSTS = [‘*‘]
- 配置memcache会话存储
//50 SESSION_ENGINE = ‘django.contrib.sessions.backends.cache‘ //注释166-170 去掉注释159-164 CACHES = { ‘default‘: { ‘BACKEND‘: ‘django.core.cache.backends.memcached.MemcachedCache‘, ‘LOCATION‘: ‘controller:11211‘, } }
- 开启身份认证API 版本v3
//190行 OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
- 开启domains版本支持
//76 行 OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
- 配置API版本
//65行 OPENSTACK_API_VERSIONS = { "identity": 3, "image": 2, "volume": 2, } //98 OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default" //324 OPENSTACK_NEUTRON_NETWORK = { ‘enable_router‘: False, ‘enable_quotas‘: False, ‘enable_distributed_router‘: False, ‘enable_ha_router‘: False, ‘enable_lb‘: False, ‘enable_firewall‘: False, ‘enable_***‘: False, ‘enable_fip_topology_check‘: False, } 369注释掉 #‘supported_vnic_types‘: [‘*‘], 375注释掉 #‘physical_networks‘: [],
- 修改重启web服务和会话存储
# vim /etc/httpd/conf.d/openstack-dashboard.conf WSGISocketPrefix run/wsgi WSGIApplicationGroup %{GLOBAL} //添加(将IApplicationGroup设置为GLOBAL 全局变量) 否则页面打不开 # systemctl restart httpd.service # systemctl restart memcached.service
- 测试
http://192.168.200.133/dashboard
domain: default
用户名:admin
密码:ADMIN_PASS
原文地址:http://blog.51cto.com/13630803/2171424
时间: 2024-10-06 14:39:40