User Tools

Site Tools


ceph:howtos:ceph_dashboard

[HOWTO] Setup Ceph Dasboard

Documentation
Name: [HOWTO] Setup Ceph Dasboard
Description: Information about Ceph Dasboard
Modification date :19/06/2019
Owner:dodger@ciberterminal.net
Notify changes to:Owner
Tags: ceph, object storage

Pre-Requirements

  • Knowledge of ceph management

Official documentation

Instructions

Install

Install the dashboard rpm in all the mgr servers:

yum install ceph-mgr-dashboard.noarch

Generate self-signed certificate:

ceph dashboard create-self-signed-cert

I've tried importing *.ciberterminal.net and it make crash mgr:

[19/Jun/2019:17:55:59] ENGINE Error in HTTPServer.tick
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/wsgiserver/wsgiserver2.py", line 1837, in start
    self.tick()
  File "/usr/lib/python2.7/site-packages/cherrypy/wsgiserver/wsgiserver2.py", line 1902, in tick
    s, ssl_env = self.ssl_adapter.wrap(s)
  File "/usr/lib/python2.7/site-packages/cherrypy/wsgiserver/ssl_builtin.py", line 52, in wrap
    keyfile=self.private_key, ssl_version=ssl.PROTOCOL_SSLv23)
  File "/usr/lib64/python2.7/ssl.py", line 934, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib64/python2.7/ssl.py", line 547, in __init__
    self._context.load_cert_chain(certfile, keyfile)
SSLError: [SSL] PEM lib (_ssl.c:2574)

Enable dashboard:

sudo ceph mgr module enable dashboard

check status:

sudo ceph mgr services

The service is self-managed and auto-balanced!!

Create user for dashboard

ceph dashboard ac-user-create bofher **** administrator

official doc

Setup GW for dashboard

official doc

Sample:

radosgw-admin user create --uid=clover_dashboard --display-name=clover_dashboard --system

Accessing

Run:

sudo ceph mgr services

And you'll obtain the url:

avmlp-osm-001 /etc/ceph # ceph mgr services
{
    "dashboard": "https://avmlp-osm-002.ciberterminal.net:8443/"
}
ceph/howtos/ceph_dashboard.txt · Last modified: 2019/07/18 09:17 (external edit)