Drop raexecupstart.patch and fix_lrmd_leak.patch to not cause socket leak in lrmd.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cluster-glue (Ubuntu) |
Fix Released
|
High
|
Andres Rodriguez | ||
Oneiric |
Won't Fix
|
High
|
Andres Rodriguez | ||
Precise |
Fix Released
|
High
|
Andres Rodriguez |
Bug Description
ii cluster-glue 1.0.7-3ubuntu2 The reusable cluster components for Linux HA
The comamnds `crm ra classes` and `cr ra list` cause a socket leak in the lrmd daemon.
When approx. 1024 sockets are allocated, the lrmd becomes unresponsive and must be killed.
The syslog then shows repeated entries:
Aug 3 10:25:08 server lrmd: [1941]: ERROR: socket_
While I only use these commands during development, it is still a nuisance.
The leak does not appear for other commands, e.g. `crm resource
list`, but I have not tested exhaustively.
I originally reported this bug to http://
There I was informed that the behavior most likely stems from an
unsupported patch (raexecupstart.
When I remove that patch, the socket leaks does indeed go away.
Although I did not have any "deadlock" situations with the original
code, I replaced it with the attached patch which should prevent any
possible recursive calls of the `on_remove_client' function.
*******
After further investigation it was determined that the problem was in glib itself and the patch was not needed in the latest's releases of Ubuntu, but rather, this patches were creating the socket leak.
Related branches
Changed in cluster-glue (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Ante Karamatić (ivoks) |
Changed in cluster-glue (Ubuntu): | |
assignee: | Ante Karamatić (ivoks) → Andres Rodriguez (andreserl) |
Changed in cluster-glue (Ubuntu Oneiric): | |
assignee: | nobody → Andres Rodriguez (andreserl) |
Changed in cluster-glue (Ubuntu Precise): | |
importance: | Undecided → High |
Changed in cluster-glue (Ubuntu Oneiric): | |
importance: | Undecided → High |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
summary: |
- socket leak in lrmd + Drop raexecupstart.patch and fix_lrmd_leak.patch to not cause socket + leak in lrmd. |
description: | updated |
Changed in cluster-glue (Ubuntu Precise): | |
status: | Fix Released → In Progress |
Hi Wolfgang
I've tested your patch and I didn't have luck with it (while loop of crm ra classes still brings lrmd to its knees; socket count hits the limit). Does that patch work for you?