return EUNKNOWN_SERVICE;
}
+ # process error state early
+ if ($cmd eq 'error') {
+
+ $haenv->log('err', "service $sid is in an error state and needs manual " .
+ "intervention. Look up 'ERROR RECOVERY' in the documentation.");
+
+ return SUCCESS; # error always succeeds
+ }
+
if ($service_config->{node} ne $nodename) {
$haenv->log('err', "service '$sid' not on this node");
return EWRONG_NODE;
return SUCCESS;
- } elsif ($cmd eq 'error') {
-
- if ($running) {
- $haenv->log("err", "service $sid is in an error state while running");
- } else {
- $haenv->log("warning", "service $sid is not running and in an error state");
- }
- return SUCCESS; # error always succeeds
-
}
$haenv->log("err", "implement me (cmd '$cmd')");
err 143 node2/lrm: unable to start service fa:130 on local node after 1 retries
err 160 node1/crm: recovery policy for service fa:130 failed, entering error state!
info 160 node1/crm: service 'fa:130': state changed from 'started' to 'error'
-warn 163 node2/lrm: service fa:130 is not running and in an error state
+err 163 node2/lrm: service fa:130 is in an error state and needs manual intervention. Look up 'ERROR RECOVERY' in the documentation.
info 220 cmdlist: execute service fa:130 disabled
info 220 node1/crm: service 'fa:130': state changed from 'error' to 'stopped'
info 820 hardware: exit simulation - done