Fix IPMItool command to use lanplus
This commit is contained in:
parent
7e7618d529
commit
4561c1fdb1
|
@ -381,7 +381,7 @@ def migrateFromFencedHost(zk_conn, node_name):
|
||||||
# Perform an IPMI fence
|
# Perform an IPMI fence
|
||||||
#
|
#
|
||||||
def rebootViaIPMI(ipmi_hostname, ipmi_user, ipmi_password):
|
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)
|
ipmi_command_output = subprocess.run(ipmi_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if ipmi_command_output == 0:
|
if ipmi_command_output == 0:
|
||||||
ansiiprint.echo('Successfully rebooted dead node', '', 'o')
|
ansiiprint.echo('Successfully rebooted dead node', '', 'o')
|
||||||
|
|
Loading…
Reference in New Issue