Hide Forgot
+++ This bug was initially created as a clone of Bug #1360234 +++ Description of problem: After putting the cluster in maintanance mode, then reboot the nodes and resetting the maintenance status sometimes the ClusterMon resource keeps running even if "crm_mon" is NOT running. Normally ClusterMon should detect the missing "crm_mon" in reliable way to report the node as "bad" The mechanism used by "ClusterMon" script delivered in "/usr/lib/ocf/resource.d/pacemaker/ClusterMon": The script checks the content of the PID file created by "crm_mon" and tries to send a signal ("kill -s 0 <PID>" ) to this PID. If any process is running with this PID the resource agent script reports that "crm_mon" is running. But this can be any process running with this PID (e.g. after the reboot of the machine this could be another daemon process) In this case the reported value of the agent is wrong. Steps to Reproduce: 1. Set ClusterMon resource 2. Put node into maintenance mode 3. Reboot node 4. Either find way to force PID, originally assigned to original crm_mon PID, to other process (or try couple times so it happens randomly) 5. Disable maintenance mode Actual results: If PID of crm_mon changes after reboot the ClusterMon_monitor still checks the old PID and can kill other process instead Expected results: ClusterMon_monitor checks PID of actual crm_mon (not the old one)
*** This bug has been marked as a duplicate of bug 1378817 ***