cobbler/cobbler — pull request #899 by aka-butters (2014-04-24 21:37:26+00:00)
Title: Update action_power.py to support fence_ipmilan

fence_ipmilan output was failing when status was called with the error (note I've replaced the IP with X's):

>xmlrpclib.Fault: :"command succeeded (rc=0), but output (\'Getting status of IPMI:XXX.XXX.XXX.XXX...Chassis power = On\\nDone\\n\') was not understood"'>

This was tested with the latest version of fence_impilan:

> tthompso@tthompso-ld:~ » /usr/sbin/fence_ipmilan -V
> fence_ipmilan UNKNOWN (built Apr 24 2014 14:19:25)
> Copyright (C) Red Hat, Inc. 2004-2010 All rights reserved.
> tthompso@tthompso-ld:~ » /usr/sbin/fence_ipmilan -a XXX.XXX.XXX.XXX -o > status -l USERNAME -p PASSWORD
> Getting status of IPMI:XXX.XXX.XXX.XXX...Chassis power = On
> Done

With this patch, it now works:

> server.power_system(server.get_system_handle('HOSTNAME', token), 'status', token)
> True