ceph-ansible/roles/ceph-osd/tasks
Dimitri Savineau 3ebd71c8c2 ceph-osd: fix fs.aio-max-nr sysctl condition
[1] introduced a regression on the fs.aio-max-nr sysctl value condition.
The enable key isn't a boolean but a string because the expression isn't
evaluated.
This string output "(osd_objectstore == 'bluestore')" is always true
because item.enable condition only matches non empty string. So the
sysctl value was applyied for both filestore and bluestore backend.

[2] added the bool filter to the condition but the filter always returns
false on string and the sysctl wasn't applyed at all.

This commit fixes the enable key value by evaluating the value instead
of using the string.

[1] https://github.com/ceph/ceph-ansible/commit/08a2b58
[2] https://github.com/ceph/ceph-ansible/commit/ab54fe2

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit ece46d33be)
2019-11-07 20:31:02 +01:00
..
scenarios osd: add wal_devices option support to ceph_volume module 2019-09-26 16:21:54 +02:00
common.yml common: improve keyrings generation 2019-10-02 14:34:27 +02:00
container_options_facts.yml ansible: use 'bool' filter on boolean conditionals 2019-06-07 16:05:51 +02:00
main.yml lint: fix error [303,602,701,702] 2019-10-21 15:55:54 -04:00
openstack_config.yml common: improve keyrings generation 2019-10-02 14:34:27 +02:00
start_osds.yml container: isolate systemd tasks 2019-10-01 18:50:51 +02:00
system_tuning.yml ceph-osd: fix fs.aio-max-nr sysctl condition 2019-11-07 20:31:02 +01:00
systemd.yml container: isolate systemd tasks 2019-10-01 18:50:51 +02:00