When the process is killed, sm will re-enable the service per setting. But sm will not send alarm log to fm, so there is no log/event created in fm alarm list. This is the expected behavior with current code. Need check with SM/FM owner to determine whether we need add this kind of log or not.
Here is the log from sm.log:
sm.log:
2018-11-26T02:32:07.000 controller-0 sm: debug time[327342.281] log<626> INFO: sm[20372]: sm_service_fsm.c(1451): Service (glance-api) process failure, pid=25486, exit_code=-65533.
2018-11-26T02:32:07.000 controller-0 sm: debug time[327342.281] log<627> INFO: sm[20372]: sm_service_fsm.c(1032): Service (glance-api) received event (process-failure) was in the enabled-active state and is now in the disabled state.
2018-11-26T02:32:07.000 controller-0 sm: debug time[327342.631] log<628> INFO: sm[20372]: sm_service_action.c(98): Plugin (/usr/lib/ocf/resource.d/openstack/glance-api) has been changed, was=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, now=33f45fb614c61bd0de9c792074242122317125e578f10e982142915f86dca947cb6436dfd5254033cb6c09300a66ad2fc9a0b19c03b8b3c0ca2ea17b955b072f.
2018-11-26T02:32:07.000 controller-0 sm: debug time[327342.631] log<629> INFO: sm[20372]: sm_service_enable.c(459): Started enable action (11134) for service (glance-api).
2018-11-26T02:32:07.000 controller-0 sm: debug time[327342.631] log<630> INFO: sm[20372]: sm_service_fsm.c(1032): Service (glance-api) received event (enable-throttle) was in the disabled state and is now in the enabling state.
2018-11-26T02:32:07.000 controller-0 sm: debug time[327342.668] log<631> INFO: sm[20372]: sm_service_enable.c(361): Action (enable) completed with result (success), state (unknown), status (), and condition () for service (glance-api), reason_text=, exit_code=0.
2018-11-26T02:32:07.000 controller-0 sm: debug time[327342.668] log<632> INFO: sm[20372]: sm_service_fsm.c(1032): Service (glance-api) received event (enable-success) was in the enabling state and is now in the enabled-active state.
When the process is killed, sm will re-enable the service per setting. But sm will not send alarm log to fm, so there is no log/event created in fm alarm list. This is the expected behavior with current code. Need check with SM/FM owner to determine whether we need add this kind of log or not.
Here is the log from sm.log: 26T02:32: 07.000 controller-0 sm: debug time[327342.281] log<626> INFO: sm[20372]: sm_service_ fsm.c(1451) : Service (glance-api) process failure, pid=25486, exit_code=-65533. 26T02:32: 07.000 controller-0 sm: debug time[327342.281] log<627> INFO: sm[20372]: sm_service_ fsm.c(1032) : Service (glance-api) received event (process-failure) was in the enabled-active state and is now in the disabled state. 26T02:32: 07.000 controller-0 sm: debug time[327342.631] log<628> INFO: sm[20372]: sm_service_ action. c(98): Plugin (/usr/lib/ ocf/resource. d/openstack/ glance- api) has been changed, was=00000000000 000000000000000 000000000000000 000000000000000 000000000000000 000000000000000 000000000000000 000000000000000 000000000000, now=33f45fb614c 61bd0de9c792074 242122317125e57 8f10e982142915f 86dca947cb6436d fd5254033cb6c09 300a66ad2fc9a0b 19c03b8b3c0ca2e a17b955b072f. 26T02:32: 07.000 controller-0 sm: debug time[327342.631] log<629> INFO: sm[20372]: sm_service_ enable. c(459): Started enable action (11134) for service (glance-api). 26T02:32: 07.000 controller-0 sm: debug time[327342.631] log<630> INFO: sm[20372]: sm_service_ fsm.c(1032) : Service (glance-api) received event (enable-throttle) was in the disabled state and is now in the enabling state. 26T02:32: 07.000 controller-0 sm: debug time[327342.668] log<631> INFO: sm[20372]: sm_service_ enable. c(361): Action (enable) completed with result (success), state (unknown), status (), and condition () for service (glance-api), reason_text=, exit_code=0. 26T02:32: 07.000 controller-0 sm: debug time[327342.668] log<632> INFO: sm[20372]: sm_service_ fsm.c(1032) : Service (glance-api) received event (enable-success) was in the enabling state and is now in the enabled-active state.
sm.log:
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
sm-customer.log: 26T02:32: 07.400 | 327 | service-scn | glance-api | enabled-active | disabled | process (pid=25486) failed 26T02:32: 07.750 | 328 | service-scn | glance-api | disabled | enabling | enabled-active state requested 26T02:32: 07.787 | 329 | service-scn | glance-api | enabling | enabled-active | enable success
| 2018-11-
| 2018-11-
| 2018-11-