$self->recompute_online_node_usage();
$sd->{uid} = compute_new_uuid($new_state);
-
- $text_state = " ($text_state)" if $text_state;
- $haenv->log('info', "service '$sid': state changed from '${old_state}' to '${new_state}' $text_state");
+ $text_state = " ($text_state)" if $text_state;
+ $haenv->log('info', "service '$sid': state changed from '${old_state}'" .
+ " to '${new_state}'$text_state");
};
# after a node was fenced this recovers the service to a new node
if ($sd->{node} ne $cd->{node}) {
# this can happen if we fence a node with active migrations
# hack: modify $sd (normally this should be considered read-only)
- $haenv->log('info', "fixup service '$sid' location ($sd->{node} => $cd->{node}");
+ $haenv->log('info', "fixup service '$sid' location ($sd->{node} => $cd->{node})");
$sd->{node} = $cd->{node};
}
info 20 node1/crm: adding new service 'vm:101' on node 'node1'
info 20 node1/crm: adding new service 'vm:102' on node 'node2'
info 20 node1/crm: adding new service 'vm:103' on node 'node3'
-info 20 node1/crm: service 'vm:102': state changed from 'started' to 'request_stop'
+info 20 node1/crm: service 'vm:102': state changed from 'started' to 'request_stop'
info 21 node1/lrm: got lock 'ha_agent_node1_lock'
info 21 node1/lrm: status change wait_for_agent_lock => active
info 21 node1/lrm: starting service vm:101
info 25 node3/lrm: status change wait_for_agent_lock => active
info 25 node3/lrm: starting service vm:103
info 25 node3/lrm: service status vm:103 started
-info 40 node1/crm: service 'vm:102': state changed from 'request_stop' to 'stopped'
+info 40 node1/crm: service 'vm:102': state changed from 'request_stop' to 'stopped'
info 120 cmdlist: execute network node3 off
info 120 node1/crm: node 'node3': state changed from 'online' => 'unknown'
info 124 node3/crm: status change slave => wait_for_quorum
info 125 node3/lrm: status change active => lost_agent_lock
-info 160 node1/crm: service 'vm:103': state changed from 'started' to 'fence'
+info 160 node1/crm: service 'vm:103': state changed from 'started' to 'fence'
info 160 node1/crm: node 'node3': state changed from 'unknown' => 'fence'
info 166 watchdog: execute power node3 off
info 165 node3/crm: killed by poweroff
info 222 node3/crm: got lock 'ha_manager_lock'
info 222 node3/crm: status change slave => master
info 222 node3/crm: node 'node1': state changed from 'online' => 'unknown'
-info 282 node3/crm: service 'vm:101': state changed from 'started' to 'fence'
+info 282 node3/crm: service 'vm:101': state changed from 'started' to 'fence'
info 282 node3/crm: node 'node1': state changed from 'unknown' => 'fence'
info 282 node3/crm: got lock 'ha_agent_node1_lock'
info 282 node3/crm: fencing: acknowleged - got agent lock for node 'node1'
info 20 node1/crm: node 'node2': state changed from 'unknown' => 'online'
info 20 node1/crm: node 'node3': state changed from 'unknown' => 'online'
info 20 node1/crm: adding new service 'fa:110' on node 'node2'
-info 20 node1/crm: service 'fa:110': state changed from 'started' to 'request_stop'
+info 20 node1/crm: service 'fa:110': state changed from 'started' to 'request_stop'
info 22 node2/crm: status change wait_for_quorum => slave
info 23 node2/lrm: got lock 'ha_agent_node2_lock'
info 23 node2/lrm: status change wait_for_agent_lock => active
info 24 node3/crm: status change wait_for_quorum => slave
-info 40 node1/crm: service 'fa:110': state changed from 'request_stop' to 'stopped'
+info 40 node1/crm: service 'fa:110': state changed from 'request_stop' to 'stopped'
info 120 cmdlist: execute service fa:110 enabled
info 120 node1/crm: service 'fa:110': state changed from 'stopped' to 'started' (node = node2)
info 123 node2/lrm: starting service fa:110
info 20 node1/crm: node 'node2': state changed from 'unknown' => 'online'
info 20 node1/crm: node 'node3': state changed from 'unknown' => 'online'
info 20 node1/crm: adding new service 'fa:130' on node 'node2'
-info 20 node1/crm: service 'fa:130': state changed from 'started' to 'request_stop'
+info 20 node1/crm: service 'fa:130': state changed from 'started' to 'request_stop'
info 22 node2/crm: status change wait_for_quorum => slave
info 23 node2/lrm: got lock 'ha_agent_node2_lock'
info 23 node2/lrm: status change wait_for_agent_lock => active
info 24 node3/crm: status change wait_for_quorum => slave
-info 40 node1/crm: service 'fa:130': state changed from 'request_stop' to 'stopped'
+info 40 node1/crm: service 'fa:130': state changed from 'request_stop' to 'stopped'
info 120 cmdlist: execute service fa:130 enabled
info 120 node1/crm: service 'fa:130': state changed from 'stopped' to 'started' (node = node2)
info 123 node2/lrm: starting service fa:130
info 25 node3/lrm: starting service fa:1001
info 25 node3/lrm: service status fa:1001 started
info 120 cmdlist: execute service fa:1001 disabled
-info 120 node1/crm: service 'fa:1001': state changed from 'started' to 'request_stop'
+info 120 node1/crm: service 'fa:1001': state changed from 'started' to 'request_stop'
info 125 node3/lrm: stopping service fa:1001
info 125 node3/lrm: unable to stop stop service fa:1001 (still running)
err 140 node1/crm: service 'fa:1001' stop failed (exit code 1)
-info 140 node1/crm: service 'fa:1001': state changed from 'request_stop' to 'error'
-info 140 node1/crm: service 'fa:1001': state changed from 'error' to 'stopped'
+info 140 node1/crm: service 'fa:1001': state changed from 'request_stop' to 'error'
+info 140 node1/crm: service 'fa:1001': state changed from 'error' to 'stopped'
info 145 node3/lrm: stopping service fa:1001
info 145 node3/lrm: unable to stop stop service fa:1001 (still running)
info 165 node3/lrm: stopping service fa:1001
info 20 node1/crm: node 'node2': state changed from 'unknown' => 'online'
info 20 node1/crm: node 'node3': state changed from 'unknown' => 'online'
info 20 node1/crm: adding new service 'fa:130' on node 'node2'
-info 20 node1/crm: service 'fa:130': state changed from 'started' to 'request_stop'
+info 20 node1/crm: service 'fa:130': state changed from 'started' to 'request_stop'
info 22 node2/crm: status change wait_for_quorum => slave
info 23 node2/lrm: got lock 'ha_agent_node2_lock'
info 23 node2/lrm: status change wait_for_agent_lock => active
info 24 node3/crm: status change wait_for_quorum => slave
-info 40 node1/crm: service 'fa:130': state changed from 'request_stop' to 'stopped'
+info 40 node1/crm: service 'fa:130': state changed from 'request_stop' to 'stopped'
info 120 cmdlist: execute service fa:130 enabled
info 120 node1/crm: service 'fa:130': state changed from 'stopped' to 'started' (node = node2)
info 123 node2/lrm: starting service fa:130
warn 143 node2/lrm: unable to start service fa:130
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'
+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
warn 183 node2/lrm: service fa:130 is not running and in an error state
warn 203 node2/lrm: service fa:130 is not running and in an error state
info 220 cmdlist: execute service fa:130 disabled
-info 220 node1/crm: service 'fa:130': state changed from 'error' to 'stopped'
+info 220 node1/crm: service 'fa:130': state changed from 'error' to 'stopped'
info 820 hardware: exit simulation - done
info 25 node3/lrm: service status vm:103 started
info 120 cmdlist: execute restart-lrm node3
info 120 node3/lrm: restart LRM, freeze all services
-info 120 node1/crm: service 'vm:103': state changed from 'started' to 'freeze'
+info 120 node1/crm: service 'vm:103': state changed from 'started' to 'freeze'
info 126 node3/lrm: exit (loop end)
info 126 node3/lrm: status change startup => wait_for_agent_lock
-info 160 node1/crm: service 'vm:103': state changed from 'freeze' to 'started'
+info 160 node1/crm: service 'vm:103': state changed from 'freeze' to 'started'
info 165 node3/lrm: got lock 'ha_agent_node3_lock'
info 165 node3/lrm: status change wait_for_agent_lock => active
info 720 hardware: exit simulation - done
info 25 node3/lrm: starting service vm:103
info 25 node3/lrm: service status vm:103 started
info 120 cmdlist: execute service vm:103 disabled
-info 120 node1/crm: service 'vm:103': state changed from 'started' to 'request_stop'
+info 120 node1/crm: service 'vm:103': state changed from 'started' to 'request_stop'
info 125 node3/lrm: stopping service vm:103
info 125 node3/lrm: service status vm:103 stopped
-info 140 node1/crm: service 'vm:103': state changed from 'request_stop' to 'stopped'
+info 140 node1/crm: service 'vm:103': state changed from 'request_stop' to 'stopped'
info 220 cmdlist: execute service vm:103 enabled
info 220 node1/crm: service 'vm:103': state changed from 'stopped' to 'started' (node = node3)
info 225 node3/lrm: starting service vm:103
info 145 node3/crm: exit (loop end)
info 145 shutdown: execute power node3 off
info 160 node1/crm: node 'node3': state changed from 'online' => 'unknown'
-info 200 node1/crm: service 'vm:103': state changed from 'started' to 'fence'
+info 200 node1/crm: service 'vm:103': state changed from 'started' to 'fence'
info 200 node1/crm: node 'node3': state changed from 'unknown' => 'fence'
info 200 node1/crm: got lock 'ha_agent_node3_lock'
info 200 node1/crm: fencing: acknowleged - got agent lock for node 'node3'
info 145 node3/crm: exit (loop end)
info 145 shutdown: execute power node3 off
info 160 node1/crm: node 'node3': state changed from 'online' => 'unknown'
-info 200 node1/crm: service 'vm:103': state changed from 'started' to 'fence'
+info 200 node1/crm: service 'vm:103': state changed from 'started' to 'fence'
info 200 node1/crm: node 'node3': state changed from 'unknown' => 'fence'
info 200 node1/crm: got lock 'ha_agent_node3_lock'
info 200 node1/crm: fencing: acknowleged - got agent lock for node 'node3'
info 145 node3/crm: exit (loop end)
info 145 shutdown: execute power node3 off
info 160 node1/crm: node 'node3': state changed from 'online' => 'unknown'
-info 200 node1/crm: service 'ct:103': state changed from 'started' to 'fence'
+info 200 node1/crm: service 'ct:103': state changed from 'started' to 'fence'
info 200 node1/crm: node 'node3': state changed from 'unknown' => 'fence'
info 200 node1/crm: got lock 'ha_agent_node3_lock'
info 200 node1/crm: fencing: acknowleged - got agent lock for node 'node3'
info 141 node2/crm: got lock 'ha_manager_lock'
info 141 node2/crm: status change slave => master
info 141 node2/crm: node 'node1': state changed from 'online' => 'unknown'
-info 220 node2/crm: service 'vm:100': state changed from 'started' to 'fence'
+info 220 node2/crm: service 'vm:100': state changed from 'started' to 'fence'
info 220 node2/crm: node 'node1': state changed from 'unknown' => 'fence'
info 220 node2/crm: got lock 'ha_agent_node1_lock'
info 220 node2/crm: fencing: acknowleged - got agent lock for node 'node1'