[关闭]
@zhangyy 2020-01-14T10:09:56.000000Z 字数 1896 阅读 139

Openstack 云计算(二): Openstack Rocky部署五 安装horizon服务组件(控制节点dashboard)

openstack系列


一: horizon(dashboard)概述
二: 安装dashboard WEB控制台


一:horizon(dashboard)概述

  1. # mitaka中文版文档
  2. # https://docs.openstack.org/mitaka/zh_CN/install-guide-rdo/neutron-controller-install.html
  3. # rocky版-用户引导页
  4. # https://docs.openstack.org/install-guide/openstack-services.html#minimal-deployment-for-rocky
  5. # rocky版horizon(dashboard)安装文档
  6. # https://docs.openstack.org/horizon/rocky/install/
  7. 系统环境要求:
  8. 1Python2.7或者3.5以上
  9. 2Django1.11或者2.0以上(Django 1.8 to 1.10 are no longer supported since Rocky release.)
  10. 3)可用的keystone节点服务
  11. 4)以下服务可以选择:
  12. cinder: Block Storage
  13. glance: Image Management
  14. neutron: Networking
  15. nova: Compute
  16. swift: Object Storage
  17. Horizon also supports many other OpenStack services via plugins. For more information, see the Plugin Registry.

二:安装dashboard WEB控制台

  1. 安装dashboard软件包
  2. yum install openstack-dashboard -y

image_1d8np7aimuj21ndj178211i813h29.png-236.1kB

image_1d8np8ahc9dp1rgermhitp1138m.png-343.4kB

  1. vim /etc/openstack-dashboard/local_settings
  2. ---
  3. ALLOWED_HOSTS = ['*', ]
  4. SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
  5. OPENSTACK_API_VERSIONS = {
  6. "identity": 3,
  7. "image": 2,
  8. "volume": 2,
  9. }
  10. OPENSTACK_HOST = "controller"
  11. OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
  12. OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
  13. OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
  14. OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default"
  15. CACHES = {
  16. 'default': {
  17. 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
  18. 'LOCATION': 'controller:11211',
  19. }
  20. }
  21. OPENSTACK_NEUTRON_NETWORK = {
  22. 'enable_router': False,
  23. 'enable_quotas': False,
  24. 'enable_distributed_router': False,
  25. 'enable_ha_router': False,
  26. 'enable_fip_topology_check': False,
  27. 'enable_lb': False,
  28. 'enable_firewall': False,
  29. 'enable_vpn': False,
  30. }
  31. TIME_ZONE = "Asia/Shanghai"
  32. ---
  1. 修改/etc/httpd/conf.d/openstack-dashboard.conf
  2. # 增加以下内容
  3. vim /etc/httpd/conf.d/openstack-dashboard.conf
  4. -------------------------------------
  5. WSGIApplicationGroup %{GLOBAL}
  6. -------------------------------------

image_1d8nq716qn4hs6c17sdest1ve820.png-137.8kB

  1. 重启web服务器以及会话存储服务
  2. systemctl restart httpd.service memcached.service
  3. systemctl status httpd.service memcached.service

image_1d8nq529k8g71ivh1lqn1jva1l1n1j.png-276.6kB

  1. 打开web页面
  2. 域名: Default
  3. 用户名: admin
  4. 密码: admin

image_1d8nqbngu6s212ch1ieu1nd91skk2t.png-176.6kB

image_1d8nqejts1b8m1631tdq16uo9pj3q.png-289.6kB

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注