Bug 203720

Summary: Problem with initializing resource agents
Product: [Retired] Red Hat Cluster Suite Reporter: Marek Grac <mgrac>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: cluster-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007:149 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-21 16:13:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch none

Description Marek Grac 2006-08-23 13:31:10 UTC
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 13:30:07 UTC
Created attachment 135049 [details]
Patch

Proposed patch, all backup copies (which ends with ~) are ignored by rgmanager

Comment 2 Lon Hohberger 2006-08-29 16:05:29 UTC
You can commit it; it looks fine.


Comment 3 Marek Grac 2006-08-31 12:06:18 UTC
Commited to CVS