Ubuntu
# ceph --version
ceph version 14.2.2 (4f8fa0a0024755aae7d95567c63f11d6862d55be) nautilus (stable)
# ceph mgr module enable dashboard
Error ENOENT: all mgr daemons do not support module 'dashboard', pass --force to force enablement
2019. 12.26 ÇöÀç ÃֽŹöÀüÀº 14.2.5 --> ±âÁ¸ 14.2.4¸¦ »èÁ¦ÇÏ°í ¼³Ä¡
mgr ¼ºñ½º°¡ ¿Ã¶ó°£ ¸ðµç ³ëµå¿¡¼ ¼³Ä¡
# rpm -qa |grep dashboard
# rpm -e ceph-grafana-dashboards-14.2.4-0.el7.noarch
# rpm -Uvh http://download.ceph.com/rpm-nautilus/el7/noarch/ceph-grafana-dashboards-14.2.5-0.el7.noarch.rpm
# rpm -Uvh http://download.ceph.com/rpm-nautilus/el7/noarch/ceph-mgr-dashboard-14.2.5-0.el7.noarch.rpm
# apt install ceph-mgr-dashboard
# ceph mgr module enable dashboard
# ceph mgr module ls
# ceph mgr services
{
"dashboard": "https://ceph-mon1:8443/"
}
¡Ø ERROR
# ceph -s
cluster:
id: 0d30e139-5c8d-4bd2-87b2-6c171760ee2e
health: HEALTH_ERR
Module 'dashboard' has failed: No module named routes
services:
mon: 1 daemons, quorum ceph-mon (age 40m)
mgr: ceph-mon(active, since 39m)
osd: 3 osds: 0 up (since 10m), 3 in (since 15h)
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 B
usage: 0 B used, 0 B / 0 B avail
pgs:
# apt-get install python-routes
°èÁ¤ / Æнº¿öµå »ý¼º
# ceph dashboard ac-user-create <ID> <PASSWORD> administrator
{"username": "<ID>", "lastUpdate": 1565745917, "name": null, "roles": ["administrator"], "password": "$2b$12$8mZX.MjSSSmhiGgEOS4me5Oo0Ay8GfuobdP6gmXvVpgVnzXA11My", "email": null}