Journal size is not mandatory anymore, a default from 5GB is being
added. A simple warning message will show up if the size is set to
something below 5GB.
Signed-off-by: Sébastien Han <seb@redhat.com>
## OSD options
#
-#journal_size: 0 # OSD journal size in MB
+#journal_size: 5120 # OSD journal size in MB
#public_network: 0.0.0.0/0
#cluster_network: "{{ public_network }}"
#osd_mkfs_type: xfs
## OSD options
#
-journal_size: 0 # OSD journal size in MB
+journal_size: 5120 # OSD journal size in MB
public_network: 0.0.0.0/0
cluster_network: "{{ public_network }}"
osd_mkfs_type: xfs
- package-install
- name: make sure journal_size configured
- fail:
- msg: "journal_size must be configured. See http://ceph.com/docs/master/rados/configuration/osd-config-ref/"
+ debug:
+ msg: "WARNING: journal_size is configured to less than 5GB. This is not recommended and can lead to severe issues."
when:
- - journal_size|int == 0
+ - journal_size|int < 5120
- osd_objectstore != 'bluestore'
- osd_group_name in group_names