Ubuntu 22.04
Sponsored Link

Ceph Quincy : Enable Dashboard2022/08/31

 
Enable Ceph Dashboard to manage Ceph Cluster on Web Console.
This example is based on the environment like follows.
                                         |
        +--------------------+           |           +----------------------+
        |   [dlp.srv.world]  |10.0.0.30  |  10.0.0.31|    [www.srv.world]   |
        |     Ceph Client    +-----------+-----------+        RADOSGW       |
        |                    |           |           |                      |
        +--------------------+           |           +----------------------+
            +----------------------------+----------------------------+
            |                            |                            |
            |10.0.0.51                   |10.0.0.52                   |10.0.0.53 
+-----------+-----------+    +-----------+-----------+    +-----------+-----------+
|   [node01.srv.world]  |    |   [node02.srv.world]  |    |   [node03.srv.world]  |
|     Object Storage    +----+     Object Storage    +----+     Object Storage    |
|     Monitor Daemon    |    |                       |    |                       |
|     Manager Daemon    |    |                       |    |                       |
+-----------------------+    +-----------------------+    +-----------------------+

[1] Enable Dashboard module on [Manager Daemon] Node.
Furthermore, Dashboard requires SSL/TLS. Create a self-signed certificate on this example.
root@node01:~#
apt -y install ceph-mgr-dashboard
# if [python3-cheroot] is the version below, it needs to upgrade

root@node01:~#
dpkg -l python3-cheroot

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name            Version              Architecture Description
+++-===============-====================-============-=========================
ii  python3-cheroot 8.5.2+ds1-1ubuntu3   all          Pure-Python HTTP server
root@node01:~#
wget http://security.ubuntu.com/ubuntu/pool/main/p/python-cheroot/python3-cheroot_8.5.2+ds1-1ubuntu3.1_all.deb

root@node01:~#
dpkg -i python3-cheroot_8.5.2+ds1-1ubuntu3.1_all.deb

root@node01:~#
systemctl restart ceph-mgr@node01
root@node01:~#
ceph mgr module enable dashboard

root@node01:~#
ceph mgr module ls | grep dashboard

dashboard          on

# create self-signed certificate

root@node01:~#
ceph dashboard create-self-signed-cert

Self-signed certificate created
# create a user for Dashboard
# [ceph dashboard ac-user-create (username) -i (password file) administrator]

root@node01:~#
echo "password" > pass.txt

root@node01:~#
ceph dashboard ac-user-create serverworld -i pass.txt administrator

{"username": "serverworld", "password": "$2b$12$TvM5Df0wQ4zvYRcfCiqAFuUQZpPFwI.ACqq6Duzb2wo9/lnrj98o.", "roles": ["administrator"], "name": null, "email": null, "lastUpdate": 1661929657, "enabled": true, "pwdExpirationDate": null, "pwdUpdateRequired": false}

# confirm Dashboard URL

root@node01:~#
ceph mgr services

{
    "dashboard": "https://10.0.0.51:8443/"
}
[2] Access to the Dashboard URL from a Client Computer with Web Browser, then Ceph Dashboard Login form is shown.
Login as a user you just added in [1] section. After login, it's possible to see various status of Ceph Cluster.
Matched Content