]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-osd: Add ulimit nofile on container start
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 6 Aug 2019 15:52:59 +0000 (11:52 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 27 Aug 2019 18:52:58 +0000 (20:52 +0200)
commit7d2b29d0eb848d1cff9a11a548017a39373b8f6a
tree8ad108ff11ee805187f6a2d99e2d6ffad637d4bf
parentc32d690a4cd1aa60987b18f36731696d12615c0a
ceph-osd: Add ulimit nofile on container start

On containerized deployment, the OSD entrypoint runs some ceph-volume
commands (lvm/simple scan and/or activate) which perform badly without
the ulimit option.
This option was added for all previous ceph-volume commands but not on
the ceph-osd container startup.
Also updating hard limit value to 4096 to reflect default baremetal
value.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1744390
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 9a4ac46d1977726c6e9b0ce8e4f051f15ce2ca12)
library/ceph_volume.py
library/test_ceph_volume.py
roles/ceph-osd/tasks/scenarios/collocated.yml
roles/ceph-osd/tasks/scenarios/non-collocated.yml
roles/ceph-osd/tasks/start_osds.yml
roles/ceph-osd/templates/ceph-osd-run.sh.j2