本帖最后由 pig2 于 2015-9-23 17:26 编辑
问题导读
1.dasboard包含哪些组件?
2.如何配置dasboard?
3.css加载失败,该如何解决?
安装dashboard组件
[mw_shl_code=bash,true]yum install openstack-dashboard httpd mod_wsgi memcached python-memcached[/mw_shl_code]
配置dashboard
编辑文件 /etc/openstack-dashboard/local_settings 完成下面内容
a.配置dashboard使用OpenStack服务【控制节点】
[mw_shl_code=bash,true]OPENSTACK_HOST = "controller"[/mw_shl_code]
b.允许hosts 访问dashboard
[mw_shl_code=bash,true]ALLOWED_HOSTS = '*'[/mw_shl_code]
c.配置缓存会话存储服务:
[mw_shl_code=bash,true]CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}[/mw_shl_code]
注意:
注释掉其它 session存储配置
d.配置user为默认角色
[mw_shl_code=bash,true]OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"[/mw_shl_code]
e.配置时区
[mw_shl_code=bash,true]TIME_ZONE = "TIME_ZONE"[/mw_shl_code]
完成安装
1.在RHEL 和 CentOS,配置 SELinux允许 web server 连接 to OpenStack 服务:
[mw_shl_code=bash,true]setsebool -P httpd_can_network_connect on[/mw_shl_code]
2.可能包bug,dashboard CSS 加载失败,运行下面命令解决
[mw_shl_code=bash,true]chown -R apache:apache /usr/share/openstack-dashboard/static[/mw_shl_code]
3.启动服务,并设置开机启动
[mw_shl_code=bash,true]systemctl enable httpd.service memcached.service
systemctl start httpd.service memcached.service[/mw_shl_code]
验证安装
http://controller/
或则替换成ip地址
输入管理员的用户名和密码
相关篇章
openstack【Kilo】入门 【准备篇】一:整体介绍【centos】
http://www.aboutyun.com/thread-15205-1-1.html
openstack【Kilo】入门 【准备篇】二:检测网络互通性【centos】
http://www.aboutyun.com/thread-15206-1-1.html
openstack【Kilo】入门 【准备篇】三:NTP安装【centos】
http://www.aboutyun.com/thread-15207-1-1.html
openstack【Kilo】入门 【准备篇】四:openstack包【centos】
http://www.aboutyun.com/thread-15210-1-1.html
openstack【Kilo】入门 【准备篇】五:mysql及rabbitmq安装【centos】
http://www.aboutyun.com/thread-15213-1-1.html
openstack【Kilo】入门 【keystone篇】六:keystone安装配置【centos】
http://www.aboutyun.com/thread-15214-1-1.html
openstack【Kilo】入门 【keystone篇】七:创建服务实例和API endpoint【centos】
http://www.aboutyun.com/thread-15215-1-1.html
openstack【Kilo】入门 【keystone篇】八:创建租户, 用户, 和角色【centos】
http://www.aboutyun.com/thread-15216-1-1.html
openstack【Kilo】入门 【keystone篇】九:验证keystone安装【centos】
http://www.aboutyun.com/thread-15233-1-1.html
openstack【Kilo】入门 【keystone篇】十:创建openstack客户端脚本【centos】
http://www.aboutyun.com/thread-15234-1-1.html
openstack【Kilo】入门 【glance篇】十一:安装配置glance【centos】
http://www.aboutyun.com/thread-15242-1-1.html
openstack【Kilo】入门 【glance篇】十二:glance安装验证【centos】
http://www.aboutyun.com/thread-15243-1-1.html
openstack【Kilo】入门 【nova篇】十三:nova安装配置1:控制节点【centos】
http://www.aboutyun.com/thread-15258-1-1.html
openstack【Kilo】入门 【nova篇】十四:nova安装配置2:计算节点【centos】
http://www.aboutyun.com/thread-15259-1-1.html
openstack【Kilo】入门 【neutron篇】十五:neutron安装配置:控制节点【centos】
http://www.aboutyun.com/thread-15260-1-1.html
openstack【Kilo】入门 【neutron篇】十六:neutron安装配置:网络节点【centos】
http://www.aboutyun.com/thread-15272-1-1.html
openstack【Kilo】入门 【neutron篇】十七:neutron安装配置:计算节点【centos】
http://www.aboutyun.com/thread-15330-1-1.html
openstack【Kilo】入门 【neutron篇】十八:实例化网络【centos】
http://www.aboutyun.com/thread-15342-1-1.html
openstack【Kilo】入门 【neutron篇】十九:dasboard安装配置【centos】
http://www.aboutyun.com/thread-15352-1-1.html
openstack【Kilo】入门 【neutron篇】二十:创建实例(neutron)【centos】
http://www.aboutyun.com/thread-15356-1-1.html
|