On 05.08.2015 [05:36:29 -0400], Jennifer Patrick wrote:
Just having some woes with making fence_ipmilan work with some Supermicro servers (Don't say use the supermicro IPMI Tool, we're trying to get around that.)
The problem is, using fence_ipmilan, we can initiate a boot (off then on) from the web GUI, or from the CLI via...
*# cobbler system reboot --name=test123* *task started: 2015-08-05_092815_power* *task started (id=Power management (reboot), time=Wed Aug 5 09:28:15 2015)* *cobbler power configuration is:*
type : ipmilan*
address: 192.168.1.5*
user : user*
id :*
*running: /usr/sbin/fence_ipmilan* *running: /usr/sbin/fence_ipmilan* *received on stdout: Powering off machine @ IPMI:**192.168.1.5**...Failed*
*received on stderr:* *running: /usr/sbin/fence_ipmilan* *received on stdout: Powering off machine @ IPMI:**192.168.1.5**...Done*
*received on stderr:* *cobbler power configuration is:*
type : ipmilan*
address: **192.168.1.5*
user : user*
id :*
*running: /usr/sbin/fence_ipmilan* *received on stdout: Powering on machine @ IPMI:**192.168.1.5**...Failed*
*received on stderr: ipmilan: Power still off*
*running: /usr/sbin/fence_ipmilan* *received on stdout: Powering on machine @ IPMI:192.168.1.5...Done*
*received on stderr:* **** TASK COMPLETE ****
So that's great. My real question comes from the fact that I can't make cobbler set these machines to reboot via the Web GUI to Netboot/PXE. It just seems to never issue the right command via fence_ipmilan (which actually uses IPMITOOL)
I can do it fine in IPMITOOL:
*ipmitool -H 192.168.1.5 -U user -I lanplus -P password chassis bootdev pxe
Does this imply that you have to set the bootdev to pxe *every* time?
ipmitool -H 192.168.1.5 -U user -I lanplus -P password chassis power reset*
This is essentially the only command that Cobbler ends up invoking, I believe.
I think you will have to write a wrapper around fence_ipmilan (say fence_supermicro) that basically does everything the same as fence_ipmilan (so it could just source and inherit) except that reboot sets the pxe boot mode first, then falls through to what fence_ipmilan does.
-Nish