Red Hat Bugzilla – Bug 689851
/sbin/fence_bladecenter --missing_as_off reboot action fails on missing blade
Last modified: 2012-02-21 00:24:00 EST
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 $?
The action "off" will work as expected and returns 0.
Version-Release number of selected component (if applicable):
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
A failed fence will occur.
A successful fence should occur.
Created attachment 501135 [details]
Fixing problem when prompt was not changed as expected.
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)
Patch is available in upstream at http://git.fedorahosted.org/git/?p=fence-agents.git;a=commit;h=154e89e617ee77600e8e56604bad92ae73cb70fe
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.