errno 24 too many open files for fenced on ~1.2k hdd system on SCALE
Description
Problem/Justification
None
Impact
None
Activity
Show:

Caleb June 1, 2022 at 7:46 PM
22.12 PR: https://github.com/truenas/py-fenced/pull/26
22.02.2 PR: https://github.com/truenas/py-fenced/pull/27
Complete
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee

Reporter

Labels
Time remaining
0m
Components
Fix versions
Affects versions
Priority
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Created May 30, 2022 at 6:00 PM
Updated July 1, 2022 at 6:03 PM
Resolved June 1, 2022 at 7:46 PM
Experienced when trying to run fenced on a system with 1253 disks.
[05-30-2022 10:50:39 (WARNING) fenced.fence:load_disks():95] - Retrying to read keys for disk 'sdajb'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/fenced/fence.py", line 92, in load_disks
File "/usr/lib/python3/dist-packages/fenced/disks.py", line 113, in _init_
File "libsgio.pyx", line 29, in libsgio.SCSIDevice._cinit_
OSError: [Errno 24] Too many open files: '/dev/sdajb'
Need to use `resources.setrlimit` in fenced to avoid this.