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 689851

Summary: /sbin/fence_bladecenter --missing_as_off reboot action fails on missing blade
Product: Red Hat Enterprise Linux 5 Reporter: Shane Bradley <sbradley>
Component: cmanAssignee: Marek Grac <mgrac>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: cluster-maint, djansa, edamato, fdinitto, mjuricek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cman-2.0.115-88.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 708052 708053 (view as bug list) Environment:
Last Closed: 2012-02-21 05:24:00 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:
Bug Depends On:    
Bug Blocks: 708052, 708053    
Attachments:
Description Flags
Proposed patch none

Description Shane Bradley 2011-03-22 16:13:00 UTC
Description of problem:
When a blade is removed from a blade chassis and is fenced with --missing-as-off option and an action of reboot the fence will fail.  This should not occur. The fence should succeed since it is not in the chassis.

For example the command that is used on blade that is removed from chassis:
$ /sbin/fence_bladecenter -a ibmbladectr1 -l admin -p password -n 6 --missing-as-off -o reboot
Connection timed out
$ echo $?
1

The action "off" will work as expected and returns 0.

Version-Release number of selected component (if applicable):
cman-2.0.115-68.el5_6.1

How reproducible:
Everytime

Steps to Reproduce:
1. Remove blade from a chassis
2. Fence the blade with missing_as_off option and reboot action
3. Fence will fail
  
Actual results:
A failed fence will occur.

Expected results:
A successful fence should occur.

Additional info:

Comment 3 Marek Grac 2011-05-26 16:05:29 UTC
Created attachment 501135 [details]
Proposed patch

Fixing problem when prompt was not changed as expected.

Test case:

let's suppose that blade 6 is not here, and blade 5 is 

fence_bladecenter -l USER -p PASS -n 6 -a blade.control.com -o reboot

should not pass correctly

fence_bladecenter -l USER -p PASS -n 6 -a blade.control.com -o reboot -M

should pass correctly with message that waiting for power on timed out (but fencing was successfull)

Comment 8 errata-xmlrpc 2012-02-21 05:24:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0167.html