history 92 daemons/controld/controld_execd.c history_remove_recurring_op(rsc_history_t *history, const lrmd_event_data_t *op) history 96 daemons/controld/controld_execd.c for (iter = history->recurring_op_list; iter != NULL; iter = iter->next) { history 103 daemons/controld/controld_execd.c history->recurring_op_list = g_list_delete_link(history->recurring_op_list, iter); history 118 daemons/controld/controld_execd.c history_free_recurring_ops(rsc_history_t *history) history 122 daemons/controld/controld_execd.c for (iter = history->recurring_op_list; iter != NULL; iter = iter->next) { history 125 daemons/controld/controld_execd.c g_list_free(history->recurring_op_list); history 126 daemons/controld/controld_execd.c history->recurring_op_list = NULL; history 138 daemons/controld/controld_execd.c rsc_history_t *history = (rsc_history_t*)data; history 140 daemons/controld/controld_execd.c if (history->stop_params) { history 141 daemons/controld/controld_execd.c g_hash_table_destroy(history->stop_params); history 145 daemons/controld/controld_execd.c free(history->rsc.type); history 146 daemons/controld/controld_execd.c free(history->rsc.standard); history 147 daemons/controld/controld_execd.c free(history->rsc.provider); history 149 daemons/controld/controld_execd.c lrmd_free_event(history->failed); history 150 daemons/controld/controld_execd.c lrmd_free_event(history->last); history 151 daemons/controld/controld_execd.c free(history->id); history 152 daemons/controld/controld_execd.c history_free_recurring_ops(history); history 153 daemons/controld/controld_execd.c free(history); history 778 daemons/controld/controld_fencing.c stonith_history_t *history = NULL; history 781 daemons/controld/controld_fencing.c stonith_api->cmds->history(stonith_api, history 783 daemons/controld/controld_fencing.c NULL, &history, 5); history 784 daemons/controld/controld_fencing.c stonith_history_free(history); history 40 daemons/fenced/fenced_history.c stonith_send_broadcast_history(xmlNode *history, history 53 daemons/fenced/fenced_history.c pcmk__xml_copy(call_data, history); history 235 daemons/fenced/fenced_history.c stonith_xml_history_to_list(const xmlNode *history) history 244 daemons/fenced/fenced_history.c for (xml_op = pcmk__xe_first_child(history, NULL, NULL, NULL); history 319 daemons/fenced/fenced_history.c xmlNode *history = NULL; history 328 daemons/fenced/fenced_history.c history = pcmk__xe_create(NULL, PCMK__XE_ST_HISTORY); history 380 daemons/fenced/fenced_history.c entry = pcmk__xe_create(history, STONITH_OP_EXEC); history 442 daemons/fenced/fenced_history.c free_xml(history); history 445 daemons/fenced/fenced_history.c return history; history 526 daemons/fenced/fenced_history.c xmlNode *history = get_xpath_object("//" PCMK__XE_ST_HISTORY, msg, history 538 daemons/fenced/fenced_history.c if (!history history 539 daemons/fenced/fenced_history.c || !pcmk__xe_attr_is_true(history, PCMK__XA_ST_DIFFERENTIAL)) { history 543 daemons/fenced/fenced_history.c if (history != NULL) { history 544 daemons/fenced/fenced_history.c received_history = stonith_xml_history_to_list(history); history 97 include/crm/fencing/internal.h stonith_history_t *stonith__sort_history(stonith_history_t *history); history 131 include/crm/fencing/internal.h stonith_history_t *stonith__first_matching_event(stonith_history_t *history, history 134 include/crm/fencing/internal.h bool stonith__event_state_pending(stonith_history_t *history, void *user_data); history 135 include/crm/fencing/internal.h bool stonith__event_state_eq(stonith_history_t *history, void *user_data); history 136 include/crm/fencing/internal.h bool stonith__event_state_neq(stonith_history_t *history, void *user_data); history 410 include/crm/stonith-ng.h int (*history)(stonith_t *stonith, int call_options, const char *node, history 411 include/crm/stonith-ng.h stonith_history_t **history, int timeout); history 597 include/crm/stonith-ng.h void stonith_history_free(stonith_history_t *history); history 705 lib/fencing/st_client.c stonith_history_t ** history, int timeout) history 712 lib/fencing/st_client.c *history = NULL; history 751 lib/fencing/st_client.c *history = kvp; history 762 lib/fencing/st_client.c void stonith_history_free(stonith_history_t *history) history 766 lib/fencing/st_client.c for (hp = history; hp; hp_old = hp, hp = hp->next, free(hp_old)) { history 1877 lib/fencing/st_client.c new_stonith->cmds->history = stonith_api_history; history 2024 lib/fencing/st_client.c stonith_history_t *history = NULL, *hp = NULL; history 2046 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); history 2049 lib/fencing/st_client.c for (hp = history; hp; hp = hp->next) { history 2065 lib/fencing/st_client.c stonith_history_free(history); history 2306 lib/fencing/st_client.c stonith__sort_history(stonith_history_t *history) history 2310 lib/fencing/st_client.c for (hp = history; hp; ) { history 2373 lib/fencing/st_client.c stonith__first_matching_event(stonith_history_t *history, history 2377 lib/fencing/st_client.c for (stonith_history_t *hp = history; hp; hp = hp->next) { history 2387 lib/fencing/st_client.c stonith__event_state_pending(stonith_history_t *history, void *user_data) history 2389 lib/fencing/st_client.c return history->state != st_failed && history->state != st_done; history 2393 lib/fencing/st_client.c stonith__event_state_eq(stonith_history_t *history, void *user_data) history 2395 lib/fencing/st_client.c return history->state == GPOINTER_TO_INT(user_data); history 2399 lib/fencing/st_client.c stonith__event_state_neq(stonith_history_t *history, void *user_data) history 2401 lib/fencing/st_client.c return history->state != GPOINTER_TO_INT(user_data); history 62 lib/fencing/st_output.c state_str(const stonith_history_t *history) history 64 lib/fencing/st_output.c switch (history->state) { history 89 lib/fencing/st_output.c stonith__history_description(const stonith_history_t *history, history 96 lib/fencing/st_output.c if ((history->state == st_failed) || (history->state == st_done)) { history 97 lib/fencing/st_output.c completed_time_s = timespec_string(history->completed, history 98 lib/fencing/st_output.c history->completed_nsec, true); history 102 lib/fencing/st_output.c stonith_action_str(history->action), " of ", history->target, history 107 lib/fencing/st_output.c if (((history->state == st_failed) || (history->state == st_done)) history 108 lib/fencing/st_output.c && (history->delegate != NULL)) { history 110 lib/fencing/st_output.c pcmk__g_strcat(str, " by ", history->delegate, NULL); history 112 lib/fencing/st_output.c pcmk__g_strcat(str, " for ", history->client, "@", history->origin, history 119 lib/fencing/st_output.c pcmk__add_word(&str, 0, state_str(history)); history 122 lib/fencing/st_output.c if ((history->state == st_failed) && (history->exit_reason != NULL)) { history 123 lib/fencing/st_output.c pcmk__g_strcat(str, " (", history->exit_reason, ")", NULL); history 131 lib/fencing/st_output.c if (((history->state == st_failed) || (history->state == st_done)) history 132 lib/fencing/st_output.c && (history->delegate != NULL)) { history 134 lib/fencing/st_output.c pcmk__g_strcat(str, PCMK_XA_DELEGATE "=", history->delegate, ", ", history 140 lib/fencing/st_output.c PCMK_XA_CLIENT "=", history->client, ", " history 141 lib/fencing/st_output.c PCMK_XA_ORIGIN "=", history->origin, NULL); history 147 lib/fencing/st_output.c } else if (history->state == st_failed) { history 159 lib/fencing/st_output.c if ((history->state == st_failed) && (later_succeeded != NULL)) { history 174 lib/fencing/st_output.c stonith_history_t *history = va_arg(args, stonith_history_t *); history 182 lib/fencing/st_output.c for (stonith_history_t *hp = history; hp; hp = hp->next) { history 194 lib/fencing/st_output.c false, stonith__later_succeeded(hp, history), show_opts); history 207 lib/fencing/st_output.c stonith_history_t *history = va_arg(args, stonith_history_t *); history 215 lib/fencing/st_output.c for (stonith_history_t *hp = history; hp; hp = hp->next) { history 225 lib/fencing/st_output.c false, stonith__later_succeeded(hp, history), show_opts); history 240 lib/fencing/st_output.c stonith_history_t *history = va_arg(args, stonith_history_t *); history 248 lib/fencing/st_output.c for (stonith_history_t *hp = history; hp; hp = hp->next) { history 256 lib/fencing/st_output.c false, stonith__later_succeeded(hp, history), show_opts); history 270 lib/fencing/st_output.c stonith_history_t *history = va_arg(args, stonith_history_t *); history 279 lib/fencing/st_output.c for (stonith_history_t *hp = history; hp; hp = hp->next) { history 288 lib/fencing/st_output.c false, stonith__later_succeeded(hp, history), show_opts); history 364 lib/fencing/st_output.c stonith_history_t *history = va_arg(args, stonith_history_t *); history 372 lib/fencing/st_output.c for (stonith_history_t *hp = history; hp; hp = hp->next) { history 385 lib/fencing/st_output.c false, stonith__later_succeeded(hp, history), show_opts); history 78 lib/pacemaker/pcmk_fence.c reduce_fence_history(stonith_history_t *history) history 82 lib/pacemaker/pcmk_fence.c if (!history) { history 83 lib/pacemaker/pcmk_fence.c return history; history 86 lib/pacemaker/pcmk_fence.c new = history; history 238 lib/pacemaker/pcmk_fence.c stonith_history_t *history = NULL, *hp, *latest = NULL; history 260 lib/pacemaker/pcmk_fence.c rc = st->cmds->history(st, opts, target, &history, (timeout / 1000)); history 264 lib/pacemaker/pcmk_fence.c stonith_history_free(history); history 270 lib/pacemaker/pcmk_fence.c history = stonith__sort_history(history); history 271 lib/pacemaker/pcmk_fence.c for (hp = history; hp; hp = hp->next) { history 281 lib/pacemaker/pcmk_fence.c stonith__later_succeeded(hp, history), history 299 lib/pacemaker/pcmk_fence.c stonith_history_free(history); history 620 lib/pacemaker/pcmk_fence.c rc = st->cmds->history(st, st_opt_sync_call, NULL, stonith_history, history 36 lib/pacemaker/pcmk_resource.c xmlNode *history = NULL; history 45 lib/pacemaker/pcmk_resource.c history = get_xpath_object(xpath, rsc->cluster->input, LOG_NEVER); history 49 lib/pacemaker/pcmk_resource.c for (xmlNode *lrm_rsc_op = pcmk__xe_first_child(history, history 1921 lib/pacemaker/pcmk_sched_actions.c xmlNode *history = NULL; history 1924 lib/pacemaker/pcmk_sched_actions.c history = get_xpath_object(xpath, scheduler->input, LOG_NEVER); history 1927 lib/pacemaker/pcmk_sched_actions.c process_node_history(node, history); history 3279 lib/pengine/unpack.c unpack_migrate_to_success(struct action_history *history) history 3323 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, history 3329 lib/pengine/unpack.c source_newer_op = non_monitor_after(history->rsc->id, source, history->xml, history 3330 lib/pengine/unpack.c true, history->rsc->cluster); history 3333 lib/pengine/unpack.c migrate_from = find_lrm_op(history->rsc->id, PCMK_ACTION_MIGRATE_FROM, history 3334 lib/pengine/unpack.c target, source, -1, history->rsc->cluster); history 3350 lib/pengine/unpack.c target_newer_state = newer_state_after_migrate(history->rsc->id, target, history 3351 lib/pengine/unpack.c history->xml, migrate_from, history 3352 lib/pengine/unpack.c history->rsc->cluster); history 3362 lib/pengine/unpack.c add_dangling_migration(history->rsc, history->node); history 3369 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 3371 lib/pengine/unpack.c target_node = pcmk_find_node(history->rsc->cluster, target); history 3377 lib/pengine/unpack.c native_add_running(history->rsc, target_node, history->rsc->cluster, history 3381 lib/pengine/unpack.c pcmk__set_rsc_flags(history->rsc, history 3383 lib/pengine/unpack.c pcmk__clear_rsc_flags(history->rsc, pcmk_rsc_migratable); history 3395 lib/pengine/unpack.c && unknown_on_node(history->rsc, target)) { history 3400 lib/pengine/unpack.c pcmk_node_t *source_node = pcmk_find_node(history->rsc->cluster, history 3403 lib/pengine/unpack.c native_add_running(history->rsc, target_node, history->rsc->cluster, history 3412 lib/pengine/unpack.c history->rsc->partial_migration_target = target_node; history 3413 lib/pengine/unpack.c history->rsc->partial_migration_source = source_node; history 3418 lib/pengine/unpack.c pcmk__set_rsc_flags(history->rsc, history 3420 lib/pengine/unpack.c pcmk__clear_rsc_flags(history->rsc, pcmk_rsc_migratable); history 3431 lib/pengine/unpack.c unpack_migrate_to_failure(struct action_history *history) history 3438 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, history 3446 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 3449 lib/pengine/unpack.c target_migrate_from = find_lrm_op(history->rsc->id, history 3451 lib/pengine/unpack.c PCMK_OCF_OK, history->rsc->cluster); history 3458 lib/pengine/unpack.c !unknown_on_node(history->rsc, target) history 3462 lib/pengine/unpack.c && !newer_state_after_migrate(history->rsc->id, target, history->xml, history 3464 lib/pengine/unpack.c history->rsc->cluster)) { history 3469 lib/pengine/unpack.c pcmk_node_t *target_node = pcmk_find_node(history->rsc->cluster, history 3473 lib/pengine/unpack.c native_add_running(history->rsc, target_node, history->rsc->cluster, history 3477 lib/pengine/unpack.c } else if (!non_monitor_after(history->rsc->id, source, history->xml, true, history 3478 lib/pengine/unpack.c history->rsc->cluster)) { history 3485 lib/pengine/unpack.c history->rsc->dangling_migrations = history 3486 lib/pengine/unpack.c g_list_prepend(history->rsc->dangling_migrations, history 3487 lib/pengine/unpack.c (gpointer) history->node); history 3498 lib/pengine/unpack.c unpack_migrate_from_failure(struct action_history *history) history 3505 lib/pengine/unpack.c if (get_migration_node_names(history->xml, NULL, history->node, &source, history 3513 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 3516 lib/pengine/unpack.c source_migrate_to = find_lrm_op(history->rsc->id, PCMK_ACTION_MIGRATE_TO, history 3518 lib/pengine/unpack.c history->rsc->cluster); history 3525 lib/pengine/unpack.c !unknown_on_node(history->rsc, source) history 3529 lib/pengine/unpack.c && !newer_state_after_migrate(history->rsc->id, source, history 3530 lib/pengine/unpack.c source_migrate_to, history->xml, history 3531 lib/pengine/unpack.c history->rsc->cluster)) { history 3535 lib/pengine/unpack.c pcmk_node_t *source_node = pcmk_find_node(history->rsc->cluster, history 3539 lib/pengine/unpack.c native_add_running(history->rsc, source_node, history->rsc->cluster, history 3552 lib/pengine/unpack.c record_failed_op(struct action_history *history) history 3554 lib/pengine/unpack.c if (!(history->node->details->online)) { history 3558 lib/pengine/unpack.c for (const xmlNode *xIter = history->rsc->cluster->failed->children; history 3564 lib/pengine/unpack.c if (pcmk__str_eq(history->key, key, pcmk__str_none) history 3565 lib/pengine/unpack.c && pcmk__str_eq(uname, history->node->details->uname, history 3568 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); history 3574 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); history 3575 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK_XA_UNAME, history->node->details->uname); history 3576 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK__XA_RSC_ID, history->rsc->id); history 3577 lib/pengine/unpack.c pcmk__xml_copy(history->rsc->cluster->failed, history->xml); history 3737 lib/pengine/unpack.c unpack_failure_handling(struct action_history *history, history 3741 lib/pengine/unpack.c xmlNode *config = pcmk__find_action_config(history->rsc, history->task, history 3742 lib/pengine/unpack.c history->interval_ms, true); history 3744 lib/pengine/unpack.c GHashTable *meta = pcmk__unpack_action_meta(history->rsc, history->node, history 3745 lib/pengine/unpack.c history->task, history 3746 lib/pengine/unpack.c history->interval_ms, config); history 3750 lib/pengine/unpack.c *on_fail = pcmk__parse_on_fail(history->rsc, history->task, history 3751 lib/pengine/unpack.c history->interval_ms, on_fail_str); history 3752 lib/pengine/unpack.c *fail_role = pcmk__role_after_failure(history->rsc, history->task, *on_fail, history 3768 lib/pengine/unpack.c unpack_rsc_op_failure(struct action_history *history, history 3776 lib/pengine/unpack.c *last_failure = history->xml; history 3778 lib/pengine/unpack.c is_probe = pcmk_xe_is_probe(history->xml); history 3779 lib/pengine/unpack.c last_change_s = last_change_str(history->xml); history 3781 lib/pengine/unpack.c if (!pcmk_is_set(history->rsc->cluster->flags, pcmk_sched_symmetric_cluster) history 3782 lib/pengine/unpack.c && (history->exit_status == PCMK_OCF_NOT_INSTALLED)) { history 3785 lib/pengine/unpack.c services_ocf_exitcode_str(history->exit_status), history 3786 lib/pengine/unpack.c (pcmk__str_empty(history->exit_reason)? "" : ": "), history 3787 lib/pengine/unpack.c pcmk__s(history->exit_reason, ""), history 3788 lib/pengine/unpack.c (is_probe? "probe" : history->task), history->rsc->id, history 3789 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s, history 3790 lib/pengine/unpack.c history->exit_status, history->id); history 3794 lib/pengine/unpack.c services_ocf_exitcode_str(history->exit_status), history 3795 lib/pengine/unpack.c (pcmk__str_empty(history->exit_reason)? "" : ": "), history 3796 lib/pengine/unpack.c pcmk__s(history->exit_reason, ""), history 3797 lib/pengine/unpack.c (is_probe? "probe" : history->task), history->rsc->id, history 3798 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s, history 3799 lib/pengine/unpack.c history->exit_status, history->id); history 3801 lib/pengine/unpack.c if (is_probe && (history->exit_status != PCMK_OCF_OK) history 3802 lib/pengine/unpack.c && (history->exit_status != PCMK_OCF_NOT_RUNNING) history 3803 lib/pengine/unpack.c && (history->exit_status != PCMK_OCF_RUNNING_PROMOTED)) { history 3811 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); history 3814 lib/pengine/unpack.c record_failed_op(history); history 3820 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, "on-fail %s -> %s for %s", history 3822 lib/pengine/unpack.c pcmk_on_fail_text(config_on_fail), history->key); history 3826 lib/pengine/unpack.c if (strcmp(history->task, PCMK_ACTION_STOP) == 0) { history 3827 lib/pengine/unpack.c resource_location(history->rsc, history->node, -PCMK_SCORE_INFINITY, history 3828 lib/pengine/unpack.c "__stop_fail__", history->rsc->cluster); history 3830 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_MIGRATE_TO) == 0) { history 3831 lib/pengine/unpack.c unpack_migrate_to_failure(history); history 3833 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_MIGRATE_FROM) == 0) { history 3834 lib/pengine/unpack.c unpack_migrate_from_failure(history); history 3836 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_PROMOTE) == 0) { history 3837 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 3839 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_DEMOTE) == 0) { history 3841 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 3842 lib/pengine/unpack.c pe__set_next_role(history->rsc, pcmk_role_stopped, history 3845 lib/pengine/unpack.c } else if (history->exit_status == PCMK_OCF_NOT_RUNNING) { history 3846 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 3854 lib/pengine/unpack.c history->rsc->role = pcmk_role_unpromoted; history 3858 lib/pengine/unpack.c if (is_probe && (history->exit_status == PCMK_OCF_NOT_INSTALLED)) { history 3860 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, "Leaving %s stopped", history->rsc->id); history 3861 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 3863 lib/pengine/unpack.c } else if (history->rsc->role < pcmk_role_started) { history 3864 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, "Setting %s active", history->rsc->id); history 3865 lib/pengine/unpack.c set_active(history->rsc); history 3868 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 3870 lib/pengine/unpack.c history->rsc->id, pcmk_role_text(history->rsc->role), history 3871 lib/pengine/unpack.c pcmk__btoa(history->node->details->unclean), history 3876 lib/pengine/unpack.c && (history->rsc->next_role < fail_role)) { history 3877 lib/pengine/unpack.c pe__set_next_role(history->rsc, fail_role, "failure"); history 3881 lib/pengine/unpack.c ban_from_all_nodes(history->rsc); history 3895 lib/pengine/unpack.c block_if_unrecoverable(struct action_history *history) history 3899 lib/pengine/unpack.c if (strcmp(history->task, PCMK_ACTION_STOP) != 0) { history 3902 lib/pengine/unpack.c if (pe_can_fence(history->node->details->data_set, history->node)) { history 3906 lib/pengine/unpack.c last_change_s = last_change_str(history->xml); history 3910 lib/pengine/unpack.c history->rsc->id, history->task, history 3911 lib/pengine/unpack.c pcmk__node_name(history->node), history 3912 lib/pengine/unpack.c services_ocf_exitcode_str(history->exit_status), history 3913 lib/pengine/unpack.c (pcmk__str_empty(history->exit_reason)? "" : ": "), history 3914 lib/pengine/unpack.c pcmk__s(history->exit_reason, ""), history 3915 lib/pengine/unpack.c last_change_s, history->exit_status, history->id); history 3919 lib/pengine/unpack.c pcmk__clear_rsc_flags(history->rsc, pcmk_rsc_managed); history 3920 lib/pengine/unpack.c pcmk__set_rsc_flags(history->rsc, pcmk_rsc_blocked); history 3933 lib/pengine/unpack.c remap_because(struct action_history *history, const char **why, int value, history 3936 lib/pengine/unpack.c if (history->execution_status != value) { history 3937 lib/pengine/unpack.c history->execution_status = value; history 3965 lib/pengine/unpack.c remap_operation(struct action_history *history, history 3969 lib/pengine/unpack.c int orig_exit_status = history->exit_status; history 3970 lib/pengine/unpack.c int orig_exec_status = history->execution_status; history 3972 lib/pengine/unpack.c const char *task = history->task; history 3975 lib/pengine/unpack.c history->exit_status = pcmk__effective_rc(history->exit_status); history 3976 lib/pengine/unpack.c if (history->exit_status != orig_exit_status) { history 3978 lib/pengine/unpack.c if (!expired && (!history->node->details->shutdown history 3979 lib/pengine/unpack.c || history->node->details->online)) { history 3980 lib/pengine/unpack.c record_failed_op(history); history 3984 lib/pengine/unpack.c if (!pcmk__is_bundled(history->rsc) history 3985 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml) history 3986 lib/pengine/unpack.c && ((history->execution_status != PCMK_EXEC_DONE) history 3987 lib/pengine/unpack.c || (history->exit_status != PCMK_OCF_NOT_RUNNING))) { history 3988 lib/pengine/unpack.c history->execution_status = PCMK_EXEC_DONE; history 3989 lib/pengine/unpack.c history->exit_status = PCMK_OCF_NOT_RUNNING; history 3998 lib/pengine/unpack.c switch (history->execution_status) { history 4006 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR_HARD, history 4014 lib/pengine/unpack.c is_probe = pcmk_xe_is_probe(history->xml); history 4019 lib/pengine/unpack.c if (history->expected_exit_status < 0) { history 4028 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR, history 4032 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); history 4034 lib/pengine/unpack.c } else if (history->exit_status == history->expected_exit_status) { history 4035 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_DONE, "expected result"); history 4038 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR, "unexpected result"); history 4039 lib/pengine/unpack.c pcmk__rsc_debug(history->rsc, history 4041 lib/pengine/unpack.c history->key, pcmk__node_name(history->node), history 4042 lib/pengine/unpack.c history->expected_exit_status, history 4043 lib/pengine/unpack.c services_ocf_exitcode_str(history->expected_exit_status), history 4044 lib/pengine/unpack.c history->exit_status, history 4045 lib/pengine/unpack.c services_ocf_exitcode_str(history->exit_status), history 4046 lib/pengine/unpack.c (pcmk__str_empty(history->exit_reason)? "" : ": "), history 4047 lib/pengine/unpack.c pcmk__s(history->exit_reason, "")); history 4050 lib/pengine/unpack.c switch (history->exit_status) { history 4053 lib/pengine/unpack.c && (history->expected_exit_status == PCMK_OCF_NOT_RUNNING)) { history 4054 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); history 4056 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_DONE, "probe"); history 4057 lib/pengine/unpack.c pcmk__rsc_info(history->rsc, history 4059 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node), history 4067 lib/pengine/unpack.c || (history->expected_exit_status == history->exit_status) history 4068 lib/pengine/unpack.c || !pcmk_is_set(history->rsc->flags, pcmk_rsc_managed)) { history 4074 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_DONE, "exit status"); history 4075 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 4077 lib/pengine/unpack.c pe__set_next_role(history->rsc, pcmk_role_unknown, history 4084 lib/pengine/unpack.c && (history->exit_status != history->expected_exit_status)) { history 4085 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); history 4087 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_DONE, "probe"); history 4088 lib/pengine/unpack.c pcmk__rsc_info(history->rsc, history 4090 lib/pengine/unpack.c history->rsc->id, history 4091 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s); history 4095 lib/pengine/unpack.c || (history->exit_status == history->expected_exit_status)) { history 4096 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 4102 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 4104 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR, "exit status"); history 4108 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR_FATAL, "exit status"); history 4114 lib/pengine/unpack.c crm_element_value_ms(history->xml, PCMK_META_INTERVAL, history 4119 lib/pengine/unpack.c block_if_unrecoverable(history); history 4121 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR_HARD, history 4124 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_NOT_SUPPORTED, history 4134 lib/pengine/unpack.c block_if_unrecoverable(history); history 4136 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR_HARD, "exit status"); history 4140 lib/pengine/unpack.c if (history->execution_status == PCMK_EXEC_DONE) { history 4141 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); history 4145 lib/pengine/unpack.c history->exit_status, task, history->rsc->id, history 4146 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s); history 4147 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR, history 4156 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4159 lib/pengine/unpack.c history->key, pcmk_exec_status_str(orig_exec_status), history 4161 lib/pengine/unpack.c pcmk_exec_status_str(history->execution_status), history 4162 lib/pengine/unpack.c crm_exit_str(history->exit_status), why); history 4278 lib/pengine/unpack.c check_operation_expiry(struct action_history *history) history 4281 lib/pengine/unpack.c bool is_last_failure = pcmk__ends_with(history->id, "_last_failure_0"); history 4286 lib/pengine/unpack.c if (history->execution_status == PCMK_EXEC_NOT_INSTALLED) { history 4287 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4290 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); history 4294 lib/pengine/unpack.c if ((history->rsc->failure_timeout > 0) history 4295 lib/pengine/unpack.c && (crm_element_value_epoch(history->xml, PCMK_XA_LAST_RC_CHANGE, history 4302 lib/pengine/unpack.c time_t now = get_effective_time(history->rsc->cluster); history 4306 lib/pengine/unpack.c if ((now >= (last_run + history->rsc->failure_timeout)) history 4307 lib/pengine/unpack.c && !should_ignore_failure_timeout(history->rsc, history->task, history 4308 lib/pengine/unpack.c history->interval_ms, history 4314 lib/pengine/unpack.c unexpired_fail_count = pe_get_failcount(history->node, history->rsc, history 4317 lib/pengine/unpack.c history->xml); history 4322 lib/pengine/unpack.c history->id, (long long) last_run, (expired? "" : "not "), history 4324 lib/pengine/unpack.c history->rsc->failure_timeout, (long long) last_failure); history 4325 lib/pengine/unpack.c last_failure += history->rsc->failure_timeout + 1; history 4327 lib/pengine/unpack.c pe__update_recheck_time(last_failure, history->rsc->cluster, history 4333 lib/pengine/unpack.c if (pe_get_failcount(history->node, history->rsc, NULL, history 4334 lib/pengine/unpack.c pcmk__fc_default, history->xml)) { history 4348 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4351 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); history 4356 lib/pengine/unpack.c && (history->rsc->remote_reconnect_ms != 0)) { history 4365 lib/pengine/unpack.c && should_clear_for_param_change(history->xml, history->task, history 4366 lib/pengine/unpack.c history->rsc, history->node)) { history 4374 lib/pengine/unpack.c clear_op = pe__clear_failcount(history->rsc, history->node, history 4375 lib/pengine/unpack.c clear_reason, history->rsc->cluster); history 4377 lib/pengine/unpack.c if (pcmk_is_set(history->rsc->cluster->flags, history 4379 lib/pengine/unpack.c && (history->rsc->remote_reconnect_ms != 0)) { history 4390 lib/pengine/unpack.c history->task, history->rsc->id); history 4391 lib/pengine/unpack.c order_after_remote_fencing(clear_op, history->rsc, history 4392 lib/pengine/unpack.c history->rsc->cluster); history 4396 lib/pengine/unpack.c if (expired && (history->interval_ms == 0) history 4397 lib/pengine/unpack.c && pcmk__str_eq(history->task, PCMK_ACTION_MONITOR, pcmk__str_none)) { history 4398 lib/pengine/unpack.c switch (history->exit_status) { history 4405 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4408 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); history 4440 lib/pengine/unpack.c update_resource_state(struct action_history *history, int exit_status, history 4447 lib/pengine/unpack.c || (!pcmk__is_bundled(history->rsc) history 4448 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml))) { history 4449 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 4454 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_MONITOR, history 4457 lib/pengine/unpack.c && pcmk__str_eq(history->key, pcmk__xe_history_key(last_failure), history 4461 lib/pengine/unpack.c if (history->rsc->role < pcmk_role_started) { history 4462 lib/pengine/unpack.c set_active(history->rsc); history 4465 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_START, pcmk__str_none)) { history 4466 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 4469 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_STOP, pcmk__str_none)) { history 4470 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 4473 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_PROMOTE, history 4475 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 4478 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_DEMOTE, history 4486 lib/pengine/unpack.c history->rsc->role = pcmk_role_unpromoted; history 4488 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_MIGRATE_FROM, history 4490 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 4493 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_MIGRATE_TO, history 4495 lib/pengine/unpack.c unpack_migrate_to_success(history); history 4497 lib/pengine/unpack.c } else if (history->rsc->role < pcmk_role_started) { history 4498 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, "%s active on %s", history 4499 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); history 4500 lib/pengine/unpack.c set_active(history->rsc); history 4512 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4514 lib/pengine/unpack.c history->rsc->id, pcmk_on_fail_text(*on_fail), history 4515 lib/pengine/unpack.c history->task); history 4524 lib/pengine/unpack.c pe__set_next_role(history->rsc, pcmk_role_unknown, history 4529 lib/pengine/unpack.c if (history->rsc->remote_reconnect_ms == 0) { history 4537 lib/pengine/unpack.c pe__set_next_role(history->rsc, pcmk_role_unknown, history 4553 lib/pengine/unpack.c can_affect_state(struct action_history *history) history 4562 lib/pengine/unpack.c return pcmk__str_any_of(history->task, PCMK_ACTION_MONITOR, history 4568 lib/pengine/unpack.c return !pcmk__str_any_of(history->task, PCMK_ACTION_NOTIFY, history 4582 lib/pengine/unpack.c unpack_action_result(struct action_history *history) history 4584 lib/pengine/unpack.c if ((crm_element_value_int(history->xml, PCMK__XA_OP_STATUS, history 4585 lib/pengine/unpack.c &(history->execution_status)) < 0) history 4586 lib/pengine/unpack.c || (history->execution_status < PCMK_EXEC_PENDING) history 4587 lib/pengine/unpack.c || (history->execution_status > PCMK_EXEC_MAX) history 4588 lib/pengine/unpack.c || (history->execution_status == PCMK_EXEC_CANCELLED)) { history 4591 lib/pengine/unpack.c history->id, history->rsc->id, history 4592 lib/pengine/unpack.c pcmk__node_name(history->node), history 4593 lib/pengine/unpack.c pcmk__s(crm_element_value(history->xml, history 4598 lib/pengine/unpack.c if ((crm_element_value_int(history->xml, PCMK__XA_RC_CODE, history 4599 lib/pengine/unpack.c &(history->exit_status)) < 0) history 4600 lib/pengine/unpack.c || (history->exit_status < 0) || (history->exit_status > CRM_EX_MAX)) { history 4608 lib/pengine/unpack.c history->id, history->rsc->id, history 4609 lib/pengine/unpack.c pcmk__node_name(history->node), history 4610 lib/pengine/unpack.c pcmk__s(crm_element_value(history->xml, history 4615 lib/pengine/unpack.c history->exit_status = CRM_EX_ERROR; history 4618 lib/pengine/unpack.c history->exit_reason = crm_element_value(history->xml, PCMK_XA_EXIT_REASON); history 4633 lib/pengine/unpack.c process_expired_result(struct action_history *history, int orig_exit_status) history 4635 lib/pengine/unpack.c if (!pcmk__is_bundled(history->rsc) history 4636 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml) history 4637 lib/pengine/unpack.c && (orig_exit_status != history->expected_exit_status)) { history 4639 lib/pengine/unpack.c if (history->rsc->role <= pcmk_role_stopped) { history 4640 lib/pengine/unpack.c history->rsc->role = pcmk_role_unknown; history 4644 lib/pengine/unpack.c history->id, history->rsc->id, history 4645 lib/pengine/unpack.c pcmk__node_name(history->node)); history 4649 lib/pengine/unpack.c if (history->exit_status == history->expected_exit_status) { history 4653 lib/pengine/unpack.c if (history->interval_ms == 0) { history 4656 lib/pengine/unpack.c history->id, history->task, history->rsc->id, history 4657 lib/pengine/unpack.c pcmk__node_name(history->node)); history 4661 lib/pengine/unpack.c if (history->node->details->online && !history->node->details->unclean) { history 4674 lib/pengine/unpack.c pcmk__readable_interval(history->interval_ms), history->task, history 4675 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); history 4676 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK__XA_OP_RESTART_DIGEST, history 4694 lib/pengine/unpack.c mask_probe_failure(struct action_history *history, int orig_exit_status, history 4698 lib/pengine/unpack.c pcmk_resource_t *ban_rsc = history->rsc; history 4700 lib/pengine/unpack.c if (!pcmk_is_set(history->rsc->flags, pcmk_rsc_unique)) { history 4701 lib/pengine/unpack.c ban_rsc = uber_parent(history->rsc); history 4705 lib/pengine/unpack.c services_ocf_exitcode_str(orig_exit_status), history->rsc->id, history 4706 lib/pengine/unpack.c pcmk__node_name(history->node)); history 4707 lib/pengine/unpack.c update_resource_state(history, history->expected_exit_status, last_failure, history 4709 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK_XA_UNAME, history->node->details->uname); history 4711 lib/pengine/unpack.c record_failed_op(history); history 4712 lib/pengine/unpack.c resource_location(ban_rsc, history->node, -PCMK_SCORE_INFINITY, history 4713 lib/pengine/unpack.c "masked-probe-failure", history->rsc->cluster); history 4729 lib/pengine/unpack.c failure_is_newer(const struct action_history *history, history 4740 lib/pengine/unpack.c if (!pcmk__str_eq(history->task, history 4748 lib/pengine/unpack.c || (history->interval_ms != failure_interval_ms)) { history 4752 lib/pengine/unpack.c if ((pcmk__scan_ll(crm_element_value(history->xml, PCMK_XA_LAST_RC_CHANGE), history 4772 lib/pengine/unpack.c process_pending_action(struct action_history *history, history 4784 lib/pengine/unpack.c if (failure_is_newer(history, last_failure)) { history 4788 lib/pengine/unpack.c if (strcmp(history->task, PCMK_ACTION_START) == 0) { history 4789 lib/pengine/unpack.c pcmk__set_rsc_flags(history->rsc, pcmk_rsc_start_pending); history 4790 lib/pengine/unpack.c set_active(history->rsc); history 4792 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_PROMOTE) == 0) { history 4793 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 4795 lib/pengine/unpack.c } else if ((strcmp(history->task, PCMK_ACTION_MIGRATE_TO) == 0) history 4796 lib/pengine/unpack.c && history->node->details->unclean) { history 4803 lib/pengine/unpack.c migrate_target = crm_element_value(history->xml, history 4805 lib/pengine/unpack.c target = pcmk_find_node(history->rsc->cluster, migrate_target); history 4807 lib/pengine/unpack.c stop_action(history->rsc, target, FALSE); history 4811 lib/pengine/unpack.c if (history->rsc->pending_task != NULL) { history 4818 lib/pengine/unpack.c if (pcmk_is_probe(history->task, history->interval_ms)) { history 4825 lib/pengine/unpack.c history->rsc->pending_task = strdup("probe"); history 4826 lib/pengine/unpack.c history->rsc->pending_node = history->node; history 4829 lib/pengine/unpack.c history->rsc->pending_task = strdup(history->task); history 4830 lib/pengine/unpack.c history->rsc->pending_node = history->node; history 4844 lib/pengine/unpack.c struct action_history history = { history 4853 lib/pengine/unpack.c history.id = pcmk__xe_id(xml_op); history 4854 lib/pengine/unpack.c if (history.id == NULL) { history 4861 lib/pengine/unpack.c history.task = crm_element_value(xml_op, PCMK_XA_OPERATION); history 4862 lib/pengine/unpack.c if (history.task == NULL) { history 4865 lib/pengine/unpack.c history.id, rsc->id, pcmk__node_name(node)); history 4868 lib/pengine/unpack.c crm_element_value_ms(xml_op, PCMK_META_INTERVAL, &(history.interval_ms)); history 4869 lib/pengine/unpack.c if (!can_affect_state(&history)) { history 4873 lib/pengine/unpack.c history.id, rsc->id, pcmk__node_name(node), history 4874 lib/pengine/unpack.c history.task); history 4878 lib/pengine/unpack.c if (unpack_action_result(&history) != pcmk_rc_ok) { history 4882 lib/pengine/unpack.c history.expected_exit_status = pe__target_rc_from_xml(xml_op); history 4883 lib/pengine/unpack.c history.key = pcmk__xe_history_key(xml_op); history 4884 lib/pengine/unpack.c crm_element_value_int(xml_op, PCMK__XA_CALL_ID, &(history.call_id)); history 4887 lib/pengine/unpack.c history.id, history.task, history.call_id, history 4889 lib/pengine/unpack.c pcmk_exec_status_str(history.execution_status), history 4890 lib/pengine/unpack.c crm_exit_str(history.exit_status)); history 4899 lib/pengine/unpack.c expired = check_operation_expiry(&history); history 4900 lib/pengine/unpack.c old_rc = history.exit_status; history 4902 lib/pengine/unpack.c remap_operation(&history, on_fail, expired); history 4904 lib/pengine/unpack.c if (expired && (process_expired_result(&history, old_rc) == pcmk_rc_ok)) { history 4909 lib/pengine/unpack.c mask_probe_failure(&history, old_rc, *last_failure, on_fail); history 4917 lib/pengine/unpack.c switch (history.execution_status) { history 4919 lib/pengine/unpack.c process_pending_action(&history, *last_failure); history 4923 lib/pengine/unpack.c update_resource_state(&history, history.exit_status, *last_failure, history 4928 lib/pengine/unpack.c unpack_failure_handling(&history, &failure_strategy, &fail_role); history 4933 lib/pengine/unpack.c history.task, rsc->id, pcmk__node_name(node), history 4934 lib/pengine/unpack.c history.execution_status, history.exit_status, history 4935 lib/pengine/unpack.c history.id); history 4943 lib/pengine/unpack.c unpack_rsc_op_failure(&history, failure_strategy, fail_role, history 4974 lib/pengine/unpack.c unpack_failure_handling(&history, &failure_strategy, &fail_role); history 4977 lib/pengine/unpack.c && (strcmp(history.task, PCMK_ACTION_STOP) == 0))) { history 4983 lib/pengine/unpack.c history.task, services_ocf_exitcode_str(history.exit_status), history 4984 lib/pengine/unpack.c (pcmk__str_empty(history.exit_reason)? "" : ": "), history 4985 lib/pengine/unpack.c pcmk__s(history.exit_reason, ""), rsc->id, history 4986 lib/pengine/unpack.c pcmk__node_name(node), last_change_s, history.id); history 4989 lib/pengine/unpack.c update_resource_state(&history, history.expected_exit_status, history 4994 lib/pengine/unpack.c record_failed_op(&history); history 5002 lib/pengine/unpack.c unpack_rsc_op_failure(&history, failure_strategy, fail_role, history 5005 lib/pengine/unpack.c if (history.execution_status == PCMK_EXEC_ERROR_HARD) { history 5008 lib/pengine/unpack.c if (history.exit_status == PCMK_OCF_NOT_INSTALLED) { history 5015 lib/pengine/unpack.c services_ocf_exitcode_str(history.exit_status), history 5016 lib/pengine/unpack.c (pcmk__str_empty(history.exit_reason)? "" : ": "), history 5017 lib/pengine/unpack.c pcmk__s(history.exit_reason, ""), history.id); history 5021 lib/pengine/unpack.c } else if (history.execution_status == PCMK_EXEC_ERROR_FATAL) { history 5025 lib/pengine/unpack.c services_ocf_exitcode_str(history.exit_status), history 5026 lib/pengine/unpack.c (pcmk__str_empty(history.exit_reason)? "" : ": "), history 5027 lib/pengine/unpack.c pcmk__s(history.exit_reason, ""), history.id); history 5035 lib/pengine/unpack.c rsc->id, pcmk__node_name(node), history.id, history 60 tools/stonith_admin.c char *history; history 128 tools/stonith_admin.c { "history", 'H', 0, G_OPTION_ARG_STRING, &options.history, history 506 tools/stonith_admin.c if (options.history != NULL) { history 508 tools/stonith_admin.c target = options.history;