|
|
|
@ -1413,19 +1413,31 @@ sub configure_pacemaker |
|
|
|
|
}}); |
|
|
|
|
if ($return_code) |
|
|
|
|
{ |
|
|
|
|
# Something went wrong. |
|
|
|
|
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, 'print' => 1, level => 0, priority => "err", key => "error_0138", variables => { |
|
|
|
|
shell_call => $shell_call, |
|
|
|
|
output => $output, |
|
|
|
|
return_code => $return_code, |
|
|
|
|
}}); |
|
|
|
|
update_progress($anvil, 0, "error_0138,!!shell_call!".$shell_call."!!,!!output!".$output."!!,!!return_code!".$return_code."!!"); |
|
|
|
|
sleep 2; |
|
|
|
|
$anvil->nice_exit({exit_code => 6}); |
|
|
|
|
# See if this was because the fence method already existed. |
|
|
|
|
if ($output =~ /already exists/) |
|
|
|
|
{ |
|
|
|
|
# It already existed, we're fine. |
|
|
|
|
update_progress($anvil, ($anvil->data->{job}{progress} += 2), "job_0481,!!device!".$stonith_name."!!"); |
|
|
|
|
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, 'print' => 1, level => 1, key => "job_0120", variables => { device => $stonith_name }}); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
# Something went wrong. |
|
|
|
|
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, 'print' => 1, level => 0, priority => "err", key => "error_0138", variables => { |
|
|
|
|
shell_call => $shell_call, |
|
|
|
|
output => $output, |
|
|
|
|
return_code => $return_code, |
|
|
|
|
}}); |
|
|
|
|
update_progress($anvil, 0, "error_0138,!!shell_call!".$shell_call."!!,!!output!".$output."!!,!!return_code!".$return_code."!!"); |
|
|
|
|
sleep 2; |
|
|
|
|
$anvil->nice_exit({exit_code => 6}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
$something_changed->{$node_name} = 1; |
|
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { "something_changed->{$node_name}" => $something_changed->{$node_name} }}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$something_changed->{$node_name} = 1; |
|
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { "something_changed->{$node_name}" => $something_changed->{$node_name} }}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|