openstack-7dashboard(仪表盘)

openstack-7dashboard(仪表盘)

Dashboard(horizon)是一个web接口,使得云平台管理员以及用户可以管理不同的Openstack资源以及服务。

这个部署示例使用的是 Apache Web 服务器。

安装和配置

安全并配置组件

安装软件包:

yum install openstack-dashboard

编辑文件 /etc/openstack-dashboard/local_settings 并完成如下动作:
在 192.168.10.233 节点上配置仪表盘以使用 OpenStack 服务:
#当前的IP节点

OPENSTACK_HOST = "192.168.10.201"

Allow your hosts to access the dashboard:
#允许所有,也可以支持多列表ALLOWED_HOSTS = ['one.example.com', 'two.example.com']

ALLOWED_HOSTS = ['*']

配置 memcached 会话存储服务:

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
    'default': {
         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
         'LOCATION': '192.168.10.233:11211',
    }
}

启用第3版认证API:

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST

启用对域的支持

OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

配置API版本:

OPENSTACK_API_VERSIONS = {
    "identity": 3,
    "image": 2,
    "volume": 2,
}

Configure Default as the default domain for users that you create via the dashboard:

OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"

通过仪表盘创建的用户默认角色配置为 admin :

OPENSTACK_KEYSTONE_DEFAULT_ROLE = "admin"

如果您选择网络参数1,禁用支持3层网络服务:

OPENSTACK_NEUTRON_NETWORK = {
    'enable_router': False,
    'enable_quotas': False,
    'enable_distributed_router': False,
    'enable_ha_router': False,
    'enable_lb': False,
    'enable_firewall': False,
    'enable_vpn': False,
    'enable_fip_topology_check': False,
    ...
}

可以选择性地配置时区:

TIME_ZONE = "Asia/Shanghai"

Replace TIME_ZONE with an appropriate time zone identifier. For more information, see the list of time zones.

完成安装

systemctl restart httpd.service

验证操作

dashboard
dashboard

dashboard
dashboard

下一步

你的 Openstack 环境现在已经包含了仪表盘. 你可参考:’launch-instance’ 或者添加更多的服务到你的环境中。

安装和配置好仪表板后,您可以完成以下任务:

  • 给用户提供公共IP地址、用户名和密码,这样就可以通过web浏览器访问控制面板。在遇到任何SSL认证连接问题的情况下,指向服务IP到一个域名,让用户访问。

  • Customize your dashboard. See section Customize and configure the Dashboard.

  • Set up session storage. See Set up session storage for the dashboard.

  • 为了通过dashboard使用VNC客户端,浏览器必须支持HTML5 Canvas和HTML5 WebSockets。

关于浏览器支持noVNC的详情,参考README <https://github.com/kanaka/noVNC/blob/master/README.md>__ and browser support。

posted @ 2019-09-27 10:12  Final233  阅读(872)  评论(0编辑  收藏  举报