linux:ceph:howtos:ceph_dashboard
Table of Contents
[HOWTO] Setup Ceph Dasboard
Documentation | |
---|---|
Name: | [HOWTO] Setup Ceph Dasboard |
Description: | Information about Ceph Dasboard |
Modification date : | 19/06/2019 |
Owner: | dodger |
Notify changes to: | Owner |
Tags: | ceph, object storage |
Scalate to: | Thefuckingbofh |
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
Salt command:
avmlm-salt-001 /home/bofher/scripts/ceph/avmlp-os # salt "${THESERVER}" pkg.install ceph-mgr-dashboard.noarch
Enable dashboard:
sudo ceph mgr module enable dashboard
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)
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
Setup GW for dashboard
Sample:
radosgw-admin user create --uid=cephdashboard --display-name=cephdashboard --system
Necessary steps (sample):
ceph dashboard set-rgw-api-access-key $(cat access_cephdash) ceph dashboard set-rgw-api-secret-key $(cat secret_cephdash) ceph dashboard set-rgw-api-host ceph_endpoint.ciberterminal.net ceph dashboard set-rgw-api-port 80 ceph mgr module disable dashboard ceph mgr module enable dashboard
accesscephdash
comes from the and
secretcephdashradosgw-admin
command
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/" }
linux/ceph/howtos/ceph_dashboard.txt · Last modified: 2022/02/11 11:36 by 127.0.0.1