From 4561c1fdb1bd57455dd38aad6486bf24a110d1a3 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 17 Jul 2018 01:39:11 -0400 Subject: [PATCH] Fix IPMItool command to use lanplus --- pvcd/NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvcd/NodeInstance.py b/pvcd/NodeInstance.py index a2d691d5..52cf0064 100644 --- a/pvcd/NodeInstance.py +++ b/pvcd/NodeInstance.py @@ -381,7 +381,7 @@ def migrateFromFencedHost(zk_conn, node_name): # Perform an IPMI fence # def rebootViaIPMI(ipmi_hostname, ipmi_user, ipmi_password): - ipmi_command = ['/usr/bin/ipmitool', '-H', ipmi_hostname, '-U', ipmi_user, '-P', ipmi_password, 'chassis', 'power', 'reset'] + ipmi_command = ['/usr/bin/ipmitool', '-I', 'lanplus', '-H', ipmi_hostname, '-U', ipmi_user, '-P', ipmi_password, 'chassis', 'power', 'reset'] ipmi_command_output = subprocess.run(ipmi_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if ipmi_command_output == 0: ansiiprint.echo('Successfully rebooted dead node', '', 'o')