Bug 684633 - Service are started in the same process group as clurgmgrd
Summary: Service are started in the same process group as clurgmgrd
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rgmanager
Version: 5.5
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lon Hohberger
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-14 01:26 UTC by Brad Hubbard
Modified: 2018-11-14 14:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-29 17:25:13 UTC
Target Upstream Version:


Attachments (Terms of Use)
Test case (696 bytes, text/plain)
2011-04-18 19:23 UTC, Lon Hohberger
no flags Details
Fix (799 bytes, patch)
2011-04-18 19:26 UTC, Lon Hohberger
no flags Details | Diff

Description Brad Hubbard 2011-03-14 01:26:19 UTC
Description of problem:
When clurgmgrd launches a service it forks and calls execle. this creates a new process in the same process group. If the new process issues a signal to the process group such as kill(0, SIGTERM) then the entire process group responds including clurgmgrd.

Version-Release number of selected component (if applicable):
rgmanager-2.0.52-9

How reproducible:
Consistently

Steps to Reproduce:
1. Create a service that uses the kill(0, SIGTERM) and start it.
2.
3.
  
Actual results:
clurgmgrd receives SIGTERM


Expected results:
clurgmgrd should not shut down

Additional info:

Comment 2 Lon Hohberger 2011-04-18 19:23:59 UTC
Created attachment 492988 [details]
Test case

This unit test can be attached as a script to a service.  Place this service script on all nodes and simply create a service which looks like the following:

  <service name="test">
    <script name="pgtest" file="/root/pgtest.sh" />
  </service>

Ensure you have gcc installed on all hosts, as the script compiles a quick bit of C code to run.

If run on a version of rgmanager exhibiting this problem (child processes in the same process group), the script will refuse to start and log an error in the system logs.

On a system without the process group problem, the script will start without issue.  Running this test script from rgmanager is likely to require SELinux being disabled or at least placed in permissive mode.

Comment 3 Lon Hohberger 2011-04-18 19:26:28 UTC
Created attachment 492989 [details]
Fix

Comment 7 RHEL Program Management 2011-07-29 17:25:13 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.