1:了解dashboard的基础概念
1)概念
就是使用这个图形化的工具来管理openstack的云计算平台,让用户在网页上进行操作
2:dashboard的组件架构
是一个由python编写的支持wsgi协议的网络应用,openstack中的组件也支持wsgi协议,因此,dashboard就可以通过wsgi与其他的组件相连,这些web应用都运行在httpd服务
网站的路径为:/user/share/openstack-dashboard,需要与httpd服务器建立连接在使用
2:安装和配置dashboard服务
计算节点上面做
1:安装dashboard软件包
yum -y install openstack-dashboard
2:配置dashboard服务
[root@compute /]# vim /etc/openstack-dashboard/local_settings #允许从任意主机访问web服务 ALLOWED_HOSTS = ['*'] #用于制定控制节点的位置 OPENSTACK_HOST = "controller" #配置当前的时区 TIME_ZONE = "Asia/Shanghai" #配置缓存服务 CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'controller:11211', }, } SESSION_ENGINE = 'django.contrib.sessions.backends.cache' #启用对多域的支持 OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True #指定openstack组件的版本 OPENSTACK_API_VERSIONS = { "identity":3, "image":2, "volume":3, } #设置dashboard创建的用户默认为角色为user,默认域 OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default" OPENSTACK_KEYSTONE_DEFAULT_PORE = "user" #设置如何使用neutron网络 OPENSTACK_NEUTRON_NETWORK = { 'enable_auto_allocated_network': False, 'enable_distributed_router': False, 'enable_fip_topology_check': False, 'enable_ha_router': False, 'enable_ipv6': False, # TODO(amotoki): Drop OPENSTACK_NEUTRON_NETWORK completely from here. # enable_quotas has the different default value here. 'enable_quotas': False, 'enable_rbac_policy': False, 'enable_router': False, 'default_dns_nameservers': [], 'supported_provider_types': ['*'], 'segmentation_id_range': {}, 'extra_provider_types': {}, 'supported_vnic_types': ['*'], 'physical_networks': [], }
3:发布dashboard服务
1:重建dashboard的web应用配置文件
# 进入到dashboard网站的目录 #编译生成dashboard的web配置文件 python manage.py make_web_conf --apache > /etc/httpd/conf.d/openstack-dashboard.conf #查看document指向的目录
2:建立策略文件的软连接
ln -s /etc/openstack-dashboard/ /usr/share/openstack-dashboard/openstack_dashboard/conf
3:启动apache服务,设置为开机自启
systemctl restart httpd systemctl status httpd systemctl enable httpd
标签:httpd,enable,False,部署,dashboard,OPENSTACK,openstack From: https://www.cnblogs.com/qm77/p/17862201.html