]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/README.rst
update sources to v12.1.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / README.rst
CommitLineData
31f18b77
FG
1
2=========================
3ceph-mgr dashboard module
4=========================
5
6Dependencies
7============
8
9On Ubuntu Xenial:
10
11::
12
13 apt-get install python-cherrypy3
14
15On Fedora:
16
17::
18
19 dnf install -y python-cherrypy
20
21
22If you had already enabled the module, restart ceph-mgr after installing dependencies to reload the module.
23
24Enabling
25========
26
224ce89b 27Enable the module with::
31f18b77 28
224ce89b
WB
29 ceph mgr module enable dashboard
30
31You can see currently enabled modules with::
31f18b77 32
224ce89b 33 ceph mgr module ls
31f18b77
FG
34
35If you use any other ceph-mgr modules, make sure they're in the list too.
36
224ce89b
WB
37An address where the dashboard will listen on needs to be configured as well, set this to ``::`` to listen on all
38IPv4 and IPv6 addresses.
39
40::
41
42 ceph config-key put mgr/dashboard/server_addr ::
43
31f18b77
FG
44Restart the ceph-mgr daemon after modifying the setting to load the module.
45
46Accessing
47=========
48
49Point your browser at port 7000 on the server where ceph-mgr is running.
50
51FAQs
52====
53
54Q: Aargh there's no authentication! Are you crazy?
55A: At present this module only serves read-only status information, and it is disabled by default. Administrators can make a decision
56 at the point of enabling the module whether they want to limit access to the port, and/or put it behind an authenticating HTTP proxy
57 such as Apache+digest auth.
58 A motivated person could totally build in some authentication stuff though: that would probably only be worth the effort at the point
59 that non-readonly features were added.
60
61Q: Aargh there's no SSL! Are you crazy?
62A: See the authentication question. You can always configure your own SSL gateway on top of this if you need it.
63
64Q: Why CherryPy?
65A: ceph-mgr is a pure CPython environment, which means that anything gevent based doesn't work (gevent relies on C-level hacks). CherryPy
66 includes a web server based on standard python threads, making it a convenient choice. There are other web frameworks of course.
67
68Q: Does this use the `restful` module?
69A: No. This module loads everything it needs directly via the interfaces available to ceph-mgr modules, and sends it straight to your browser.
70
71Q: My browser says "connection refused"
72A: Check that you have a running ceph-mgr daemon. Look in the ceph-mgr log (/var/log/ceph/ceph-mgr...) for errors loading modules. Check
73 that you have enabled the module (see "Enabling" above)
74
75Q: My log contains an error like "ImportError: No module named cherrypy"
76A: See "Dependencies" above. Make sure you installed a 3.x version of cherrypy, many distros have multiple cherrypy packages.
77
78Q: I want to add something to the UI, how do I do it?
79A: See HACKING.rst
80