Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 218974 - fence_ipmilan doesn't handle null passwords properly
fence_ipmilan doesn't handle null passwords properly
Product: Red Hat Cluster Suite
Classification: Retired
Component: fence (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ryan O'Hara
Cluster QE
Depends On:
  Show dependency treegraph
Reported: 2006-12-08 15:19 EST by Matt Brodeur
Modified: 2009-10-12 10:40 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-10-12 10:40:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matt Brodeur 2006-12-08 15:19:39 EST
Description of problem:
If fence_ipmilan is called with a blank password (-p ''), it doesn't pass any
password setting to ipmitool.  This causes the agent to fail any attempted action.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run fence_ipmilan with a blank password, such as:
$ /sbin/fence_ipmilan -A password -a machinename -p '' -l administrator -o status
Actual results:
Getting status of IPMI:machinename...Chassis power = Unknown

Expected results:
Reports that Chassis Power is on/off/etc

Additional info:
Running with -v reveals the problem:
Getting status of IPMI:machinename...Spawning: '/usr/bin/ipmitool -I lan -H
machinename -U administrator -A password -v chassis power status'...

ipmitool needs to have "-P ''" in its command line or it will prompt for a
password interactively.
Comment 1 Jim Parsons 2006-12-20 09:06:55 EST
Ryan - this agent used to work - this command line param must be new in a new
version of the ipmi package(s).  There are plenty of machines in westford to
test this with. Also, I can help you get going porbably with a phone call, if
you are new to ipmi.
Comment 2 Ryan O'Hara 2007-01-29 15:39:05 EST
Fixed. If the fence_ipmilan agent does not get a password (or gets a null
password), the agent will append a " -P '' " onto the ipmitool command. This
should prevent it from prompting for a password.

Note You need to log in before you can comment on or make changes to this bug.