Bug 497452

Summary: rgmamager's initscript calls clulog generating errors; no logs
Product: [Fedora] Fedora Reporter: P Jones <bugzilla>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: fdinitto, lhh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-24 06:33:14 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:

Description P Jones 2009-04-23 23:08:32 UTC
Description of problem:
"/etc/init.d/rgmamager stop" or "service rgmanager stop" causes this error:
   clulog: invalid option -- 'p'
clulog does not log what it was called to log.

Version-Release number of selected component (if applicable):
rgmanager-2.99.12-2.fc10.i686

How reproducible:
Very

Steps to Reproduce:
1. stop rgmanager (cluster does not need to be started)
2.
3.
  
Actual results:
[root@toki daemons]# service rgmanager stop
clulog: invalid option -- 'p'
clulog -s severity "message text"
Cluster Service Manager is stopped.
[root@toki daemons]# 

Expected results:
[root@toki daemons]# service rgmanager stop
Cluster Service Manager is stopped.


... and 'Shutting down Cluster Service Manager...' in /var/log/cluster/rgmanager.log

Additional info:
[root@toki daemons]# /etc/init.d/rgmanager restart
clulog: invalid option -- 'p'
clulog -s severity "message text"
Shutting down Cluster Service Manager...
Waiting for services to stop: flag_shutdown called 

# bash -x /etc/init.d/rgmanager stop
...
+ log_and_print 5 'Shutting down Cluster Service Manager...'
+ '[' -z 5 -o -z 'Shutting down Cluster Service Manager...' ']'
+ clulog -p 26657 -n rgmanager -s 5 'Shutting down Cluster Service Manager...'
clulog: invalid option -- 'p'
clulog -s severity "message text"
+ echo Shutting down Cluster Service Manager...
Shutting down Cluster Service Manager...
+ return 0
+ stop_cluster
++ pidof clurgmgrd
+ kill -TERM 26409 26408
+ '[' 0 ']'
++ pidof clurgmgrd

Comment 1 Fabio Massimo Di Nitto 2009-04-24 06:33:14 UTC
This is alredy fixed in the new versions of the packages.

A backport for F10 is planned but can't happen right away.