]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
docs: explain the ceph-validate role and how it validates configuration
authorAndrew Schoen <aschoen@redhat.com>
Thu, 10 May 2018 16:30:39 +0000 (11:30 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 18 May 2018 15:58:24 +0000 (17:58 +0200)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
docs/source/index.rst

index 7ec41e278a7f92da188a0a19d99f7fefc5ee3f4f..456c7e1d8fb31c86509839495a76a0cf041f2515 100644 (file)
@@ -121,6 +121,29 @@ appropriate for your cluster setup. Perform the following steps to prepare your
    It's important the playbook you use is placed at the root of the ``ceph-ansible`` project. This is how ansible will be able to find the roles that
    ``ceph-ansible`` provides.
 
+Configuration Validation
+------------------------
+The ``ceph-ansible`` project provides config validation through the ``ceph-validate`` role. If you are using one of the provided playbooks this role will
+be run early in the deployment as to ensure you've given ``ceph-ansible`` the correct config. This check is only making sure that you've provided the
+proper config settings for your cluster, not that the values in them will produce a healthy cluster. For example, if you give an incorrect address for
+``monitor_address`` then the mon will still fail to join the cluster.
+
+An example of a validation failure might look like::
+
+    TASK [ceph-validate : validate provided configuration] *************************
+    task path: /Users/andrewschoen/dev/ceph-ansible/roles/ceph-validate/tasks/main.yml:3
+    Wednesday 02 May 2018  13:48:16 -0500 (0:00:06.984)       0:00:18.803 *********
+     [ERROR]: [mon0] Validation failed for variable: osd_objectstore
+
+     [ERROR]: [mon0] Given value for osd_objectstore: foo
+
+     [ERROR]: [mon0] Reason: osd_objectstore must be either 'bluestore' or 'filestore'
+
+     fatal: [mon0]: FAILED! => {
+         "changed": false
+         }
+
+
 ceph-ansible - choose installation method
 -----------------------------------------