]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Bluestore: Omit "osd mkfs type" etc from ceph.conf 1607/head
authorPeter Jenkins <peter.jenkins@teliacompany.com>
Wed, 14 Jun 2017 07:44:13 +0000 (10:44 +0300)
committerPeter Jenkins <peter.jenkins@teliacompany.com>
Wed, 14 Jun 2017 07:44:13 +0000 (10:44 +0300)
Remove "osd mkfs type" and the other pre-Bluestore parameters from the
generated ceph.conf so that disk activation on OSDs will work. The
current default xfs config results in a failed deployment and
incorrect partition metadata.

roles/ceph-common/templates/ceph.conf.j2

index 59ff882e9f6cd384f9321c9b2bdd451356ee4b4a..400baa268f424a983d29f99d54226ccb41ffa483 100644 (file)
@@ -85,10 +85,12 @@ admin socket = {{ rbd_client_admin_socket_path }}/$cluster-$type.$id.$pid.$cctid
 log file = {{ rbd_client_log_file }} # must be writable by QEMU and allowed by SELinux or AppArmor
 
 [osd]
+{% if osd_objectstore != 'bluestore' %}
 osd mkfs type = {{ osd_mkfs_type }}
 osd mkfs options xfs = {{ osd_mkfs_options_xfs }}
 osd mount options xfs = {{ osd_mount_options_xfs }}
 osd journal size = {{ journal_size }}
+{% endif %}
 {% if filestore_xattr_use_omap != None %}
 filestore xattr use omap = {{ filestore_xattr_use_omap }}
 {% elif osd_mkfs_type == "ext4" %}