]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Force osd pool min_size value to integer
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 5 Mar 2019 19:17:11 +0000 (14:17 -0500)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Tue, 5 Mar 2019 19:48:09 +0000 (19:48 +0000)
commit4d32ecc9807742f033ad84169cb1d9357ef7140d
tree44abaabc80ed320a870c03eb43d4ad0a409c2a38
parentcb381b41feb697183a2046683ad528a50cd35258
Force osd pool min_size value to integer

After b8d580b and e9e5d5a we could have either item.min_size or
osd_pool_default_min_size using string instead of int causing the
condition to be true when it's false.
As a result, the task could try to set the pool min_size value to
0 which leads to:

Error EINVAL: pool min_size must be between 1 and 1

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-client/tasks/create_users_keys.yml
roles/ceph-mds/tasks/create_mds_filesystems.yml
roles/ceph-osd/tasks/openstack_config.yml