Bug 203720 - Problem with initializing resource agents
Problem with initializing resource agents
Status: CLOSED ERRATA
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: rgmanager (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Lon Hohberger
Cluster QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-23 09:31 EDT by Marek Grac
Modified: 2009-04-16 16:20 EDT (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2007:149
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-06-21 12:13:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch (560 bytes, patch)
2006-08-28 09:30 EDT, Marek Grac
no flags Details | Diff

  None (edit)
Description Marek Grac 2006-08-23 09:31:10 EDT
Description of problem:

clurgmgrd attempts to run every file in the /usr/share/cluster with meta-data
option. Problem is that if you have resource agents foo.sh and backup copy
foo.sh~ then clurgrmgrd attempts to start both of the files. It handle this
correctly (second is marked as duplicate and ignored) but I don't think this
should be standard behaviour. In some cases the backup copy is runned first and
'actual' version is ignored and marked as duplicate what can lead in
misunderstandings.

Version-Release number of selected component (if applicable):
rgmanager-1.9.52-0

How reproducible:
always

Steps to Reproduce:
1. copy /usr/share/cluster/smb.sh to smb.sh~
2. strace -e execve -f clurgmrd -fd
  
Actual results:
Attempt to run every file in the directory /usr/share/cluster

Expected results:
Run only executable files which do not end with ~ (perhaps hidden files should
not be runned too)

Additional info:
Comment 1 Marek Grac 2006-08-28 09:30:07 EDT
Created attachment 135049 [details]
Patch

Proposed patch, all backup copies (which ends with ~) are ignored by rgmanager
Comment 2 Lon Hohberger 2006-08-29 12:05:29 EDT
You can commit it; it looks fine.
Comment 3 Marek Grac 2006-08-31 08:06:18 EDT
Commited to CVS

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