Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 516111

Summary: Unnecessary check for 'xm' in /etc/init.d/cman, fence_xvmd_enabled() function
Product: Red Hat Enterprise Linux 5 Reporter: Aron Parsons <aparsons>
Component: cmanAssignee: Christine Caulfield <ccaulfie>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4CC: cluster-maint, edamato, jkortus, nobody
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cman-2.0.115-13.el5.src.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 08:40:35 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
Fix none

Description Aron Parsons 2009-08-06 18:37:04 UTC
Description of problem:
The fence_xvmd_enabled() function in /etc/init.d/cman checks for the existence of the 'xm' executable from the 'xen' package.  If the 'xen' package is not installed, the start of fence_xvmd silently fails.

This is a problem in a cluster using KVM.  Package 'xen' is not required to be installed, but must be for 'fence_xvmd' to start.  Installing the 'xen' package, which pulls in the 'kernel-xen' package solves the problem; this is not an ideal solution.

Version-Release number of selected component (if applicable):
cman-2.0.108-1.el5

How reproducible:
Always

Steps to Reproduce:
1. install packages 'cman' and 'kvm'
2. configure a cluster, enable fence_xvmd in cluster.conf
3. service cman start
  
Actual results:
Starting fence_xvmd silently fails

Expected results:
fence_xvmd should start since 'xm' is not required for its operation

Additional info:

Comment 1 Lon Hohberger 2009-09-28 19:21:40 UTC
Correct, but virsh is. :)

Comment 2 Lon Hohberger 2009-09-28 20:27:36 UTC
Created attachment 362940 [details]
Fix

Comment 3 Lon Hohberger 2009-10-27 19:29:08 UTC
http://git.fedorahosted.org/git/?p=cluster.git;a=commit;h=fd211a2e9bcce6e439fb717dfa467278527b539c

Patch posted; reassigning to package maintainer for build.

Comment 6 Jaroslav Kortus 2010-03-11 16:06:55 UTC
Change present in cman-2.0.115-33.el5. Marking as verified.

Comment 8 errata-xmlrpc 2010-03-30 08:40:35 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0266.html