From 778a1266043bdf510e56f736280ab7657060f5ce Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 16 Jun 2018 23:34:12 -0400 Subject: [PATCH] Ipmitool full command --- pvc/NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvc/NodeInstance.py b/pvc/NodeInstance.py index 8ffde4d7..80e0ab40 100644 --- a/pvc/NodeInstance.py +++ b/pvc/NodeInstance.py @@ -350,7 +350,7 @@ def fenceNode(node_name, zk): # Perform an IPMI fence # def rebootViaIPMI(ipmi_hostname, ipmi_user, ipmi_password): - ipmi_command = ['ipmitool', '-H', ipmi_hostname, '-U', ipmi_user, '-P', ipmi_password, 'chassis', 'power', 'reset'] + ipmi_command = ['/usr/bin/ipmitool', '-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')