[Pacemaker] Question about behavior when a resource was put into unmanaged mode

Kazunori INOUE inouekazu at intellilink.co.jp
Wed Jul 31 02:20:58 EDT 2013


Hi,

I'm using pacemaker-1.1.10. (4ae1f17)
When I put a primitive (p1) of group resource into unmanaged mode, low-order primitive (p2) restarted.
In the case of pacemaker-1.0.13, p2 doesn't stop (it continues "Started").
Is this the assumed behavior?

node $id="3232261523" dev2
node $id="3232261525" dev1
primitive p1 ocf:pacemaker:Dummy
primitive p2 ocf:pacemaker:Dummy
group g1 p1 p2
location l1 g1 \
        rule $id="l1-rule" 200: #uname eq dev1 \
        rule $id="l1-rule-0" 100: #uname eq dev2
property $id="cib-bootstrap-options" \
        no-quorum-policy="ignore" \
        stonith-enabled="false"
rsc_defaults $id="rsc-options" \
        resource-stickiness="INFINITY" \
        migration-threshold="1"

$ crm resource unmanage p1
$ egrep "p2|Dummy" /var/log/ha-log
Jul 31 13:09:19 dev1 crmd[27240]:     info: do_lrm_rsc_op: Performing key=7:3:0:5c016569-9db4-4072-9dfa-ded64aa5a3a7 op=p2_stop_0
Jul 31 13:09:19 dev1 lrmd[27237]:     info: log_execute: executing - rsc:p2 action:stop call_id:19
Jul 31 13:09:19 dev1 Dummy(p2)[27562]: DEBUG: p2 stop : 0
Jul 31 13:09:19 dev1 lrmd[27237]:     info: log_finished: finished - rsc:p2 action:stop call_id:19 pid:27562 exit-code:0 exec-time:70ms queue-time:0ms
Jul 31 13:09:19 dev1 crmd[27240]:   notice: process_lrm_event: LRM operation p2_stop_0 (call=19, rc=0, cib-update=15, confirmed=true) ok
Jul 31 13:09:19 dev1 crmd[27240]:     info: do_lrm_rsc_op: Performing key=8:3:0:5c016569-9db4-4072-9dfa-ded64aa5a3a7 op=p2_start_0
Jul 31 13:09:19 dev1 lrmd[27237]:     info: log_execute: executing - rsc:p2 action:start call_id:22
Jul 31 13:09:19 dev1 Dummy(p2)[27571]: DEBUG: p2 start : 0
Jul 31 13:09:19 dev1 lrmd[27237]:     info: log_finished: finished - rsc:p2 action:start call_id:22 pid:27571 exit-code:0 exec-time:58ms queue-time:0ms
Jul 31 13:09:19 dev1 crmd[27240]:     info: services_os_action_execute: Managed Dummy_meta-data_0 process 27580 exited with rc=0
Jul 31 13:09:19 dev1 crmd[27240]:   notice: process_lrm_event: LRM operation p2_start_0 (call=22, rc=0, cib-update=16, confirmed=true) ok

Best regards.




More information about the Pacemaker mailing list