summaryrefslogtreecommitdiffstats
path: root/doc/mgr/deepsea.rst
blob: da83aef7df02308746b039e01446394aa4582d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
================================
DeepSea orchestrator integration
================================

DeepSea (https://github.com/SUSE/DeepSea) is a collection of `Salt
<https://github.com/saltstack/salt>`_ state files, runners and modules for
deploying and managing Ceph.

The ``deepsea`` module provides integration between Ceph's orchestrator
framework (used by modules such as ``dashboard`` to control cluster services)
and DeepSea.

Orchestrator modules only provide services to other modules, which in turn
provide user interfaces.  To try out the deepsea module, you might like
to use the :ref:`Orchestrator CLI <orchestrator-cli-module>` module.

Requirements
------------

- A salt-master node with DeepSea 0.9.9 or later installed, and the salt-api
  service running.
- Ideally, several salt-minion nodes against which at least DeepSea's stages 0
  through 2 have been run (this is the minimum required for the orchestrator's
  inventory and status functions to return interesting information).

Configuration
-------------

Four configuration keys must be set in order for the module to talk to
salt-api:

- salt_api_url
- salt_api_username
- salt_api_password
- salt_api_eauth (default is "sharedsecret")

These all need to match the salt-api configuration on the salt master (see
eauth.conf, salt-api.conf and sharedsecret.conf in /etc/salt/master.d/ on the
salt-master node).

Configuration keys
^^^^^^^^^^^^^^^^^^^

Configuration keys can be set on any machine with the proper cephx credentials,
these are usually Monitors where the *client.admin* key is present.

::

    ceph deepsea config-set <key> <value>

For example:

::

    ceph deepsea config-set salt_api_url http://admin.example.com:8000/
    ceph deepsea config-set salt_api_username admin
    ceph deepsea config-set salt_api_password 12345

The current configuration of the module can also be shown:

::

   ceph deepsea config-show

Debugging
---------

Should you want to debug the deepsea module, increase the logging level for
ceph-mgr and check the logs.

::

    [mgr]
        debug mgr = 20

With the log level set to 20, the module will print out all the data received
from the salt event bus.  All log messages will be prefixed with *mgr[deepsea]*
for easy filtering.