Ceph Nautilus:如何启用Ceph MGR仪表板

问题描述 投票:1回答:1

我最近安装了Ceph Nautilus。

ceph version 14.2.1 (d555a9489eb35f84f2e1ef49b77e19da9d113972) nautilus (stable)

我看不到任何“仪表板”模块(处于启用状态或禁用状态)。我通过“ ceph mgr module ls”进行检查]

如果尝试启用它,则会出现以下错误。

[user@system mydir]$ ceph mgr module enable dashboard
Error ENOENT: all mgr daemons do not support module 'dashboard', pass --force to force enablement

如何启用仪表板模块?

ceph cephfs
1个回答
2
投票
从下面的link安装适当的软件包
    # rpm -Uvh http://download.ceph.com/rpm-nautilus/el7/noarch/ceph-mgr-dashboard-14.2.1-0.el7.noarch.rpm
  1. 注意:它将要求很少的依赖项,使用yum / apt软件包管理器进行安装,然后执行上述命令。

    启用ceph mgr仪表板

    # ceph mgr module enable dashboard # ceph mgr module ls
  1. 创建自签名证书
    # sudo ceph dashboard create-self-signed-cert Self-signed certificate created
  1. 为仪表板创建用户
    Example: [ceph dashboard ac-user-create (username) (password) administrator] # ceph dashboard ac-user-create cent password administrator {"username": "cent", "lastUpdate": 1560292901, "name": null, "roles": ["administrator"], "password": "$2b$12$w60gItcbKd6PULNYI9McmOBMiAzFoKJ9T9XGva8vC6dxIyqMsE4kK", "email": null} # ceph mgr services { "dashboard": "https://ceph-mgr:8443/" }
  1. 注意:在这里您可以使用ceph-mgr节点的IP地址代替主机名进行访问。

    确保防火墙端口已打开

    # firewall-cmd --add-port=8443/tcp --permanent # firewall-cmd --reload
  1. 在任何浏览器中打开仪表板URL
    https://ceph-mgr:8443 or https://192.168.1.10:8443
  1. 输入用户名:
      cent和密码:
    1. password
    你在这里...
© www.soinside.com 2019 - 2024. All rights reserved.