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 769 daemons/controld/controld_fencing.c stonith_history_t *history = NULL; history 772 daemons/controld/controld_fencing.c stonith_api->cmds->history(stonith_api, history 774 daemons/controld/controld_fencing.c NULL, &history, 5); history 775 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 380 include/crm/stonith-ng.h int (*history)(stonith_t *stonith, int call_options, const char *node, history 381 include/crm/stonith-ng.h stonith_history_t **history, int timeout); history 567 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 1876 lib/fencing/st_client.c new_stonith->cmds->history = stonith_api_history; history 2023 lib/fencing/st_client.c stonith_history_t *history = NULL, *hp = NULL; history 2045 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); history 2048 lib/fencing/st_client.c for (hp = history; hp; hp = hp->next) { history 2064 lib/fencing/st_client.c stonith_history_free(history); history 2305 lib/fencing/st_client.c stonith__sort_history(stonith_history_t *history) history 2309 lib/fencing/st_client.c for (hp = history; hp; ) { history 2372 lib/fencing/st_client.c stonith__first_matching_event(stonith_history_t *history, history 2376 lib/fencing/st_client.c for (stonith_history_t *hp = history; hp; hp = hp->next) { history 2386 lib/fencing/st_client.c stonith__event_state_pending(stonith_history_t *history, void *user_data) history 2388 lib/fencing/st_client.c return history->state != st_failed && history->state != st_done; history 2392 lib/fencing/st_client.c stonith__event_state_eq(stonith_history_t *history, void *user_data) history 2394 lib/fencing/st_client.c return history->state == GPOINTER_TO_INT(user_data); history 2398 lib/fencing/st_client.c stonith__event_state_neq(stonith_history_t *history, void *user_data) history 2400 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 1922 lib/pacemaker/pcmk_sched_actions.c xmlNode *history = NULL; history 1925 lib/pacemaker/pcmk_sched_actions.c history = get_xpath_object(xpath, scheduler->input, LOG_NEVER); history 1928 lib/pacemaker/pcmk_sched_actions.c process_node_history(node, history); history 3246 lib/pengine/unpack.c unpack_migrate_to_success(struct action_history *history) history 3290 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, history 3296 lib/pengine/unpack.c source_newer_op = non_monitor_after(history->rsc->id, source, history->xml, history 3297 lib/pengine/unpack.c true, history->rsc->cluster); history 3300 lib/pengine/unpack.c migrate_from = find_lrm_op(history->rsc->id, PCMK_ACTION_MIGRATE_FROM, history 3301 lib/pengine/unpack.c target, source, -1, history->rsc->cluster); history 3317 lib/pengine/unpack.c target_newer_state = newer_state_after_migrate(history->rsc->id, target, history 3318 lib/pengine/unpack.c history->xml, migrate_from, history 3319 lib/pengine/unpack.c history->rsc->cluster); history 3329 lib/pengine/unpack.c add_dangling_migration(history->rsc, history->node); history 3336 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 3338 lib/pengine/unpack.c target_node = pcmk_find_node(history->rsc->cluster, target); history 3344 lib/pengine/unpack.c native_add_running(history->rsc, target_node, history->rsc->cluster, history 3348 lib/pengine/unpack.c pcmk__set_rsc_flags(history->rsc, history 3350 lib/pengine/unpack.c pcmk__clear_rsc_flags(history->rsc, pcmk_rsc_migratable); history 3362 lib/pengine/unpack.c && unknown_on_node(history->rsc, target)) { history 3367 lib/pengine/unpack.c pcmk_node_t *source_node = pcmk_find_node(history->rsc->cluster, history 3370 lib/pengine/unpack.c native_add_running(history->rsc, target_node, history->rsc->cluster, history 3379 lib/pengine/unpack.c history->rsc->partial_migration_target = target_node; history 3380 lib/pengine/unpack.c history->rsc->partial_migration_source = source_node; history 3385 lib/pengine/unpack.c pcmk__set_rsc_flags(history->rsc, history 3387 lib/pengine/unpack.c pcmk__clear_rsc_flags(history->rsc, pcmk_rsc_migratable); history 3398 lib/pengine/unpack.c unpack_migrate_to_failure(struct action_history *history) history 3405 lib/pengine/unpack.c if (get_migration_node_names(history->xml, history->node, NULL, &source, history 3413 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 3416 lib/pengine/unpack.c target_migrate_from = find_lrm_op(history->rsc->id, history 3418 lib/pengine/unpack.c PCMK_OCF_OK, history->rsc->cluster); history 3425 lib/pengine/unpack.c !unknown_on_node(history->rsc, target) history 3429 lib/pengine/unpack.c && !newer_state_after_migrate(history->rsc->id, target, history->xml, history 3431 lib/pengine/unpack.c history->rsc->cluster)) { history 3436 lib/pengine/unpack.c pcmk_node_t *target_node = pcmk_find_node(history->rsc->cluster, history 3440 lib/pengine/unpack.c native_add_running(history->rsc, target_node, history->rsc->cluster, history 3444 lib/pengine/unpack.c } else if (!non_monitor_after(history->rsc->id, source, history->xml, true, history 3445 lib/pengine/unpack.c history->rsc->cluster)) { history 3452 lib/pengine/unpack.c history->rsc->dangling_migrations = history 3453 lib/pengine/unpack.c g_list_prepend(history->rsc->dangling_migrations, history 3454 lib/pengine/unpack.c (gpointer) history->node); history 3465 lib/pengine/unpack.c unpack_migrate_from_failure(struct action_history *history) history 3472 lib/pengine/unpack.c if (get_migration_node_names(history->xml, NULL, history->node, &source, history 3480 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 3483 lib/pengine/unpack.c source_migrate_to = find_lrm_op(history->rsc->id, PCMK_ACTION_MIGRATE_TO, history 3485 lib/pengine/unpack.c history->rsc->cluster); history 3492 lib/pengine/unpack.c !unknown_on_node(history->rsc, source) history 3496 lib/pengine/unpack.c && !newer_state_after_migrate(history->rsc->id, source, history 3497 lib/pengine/unpack.c source_migrate_to, history->xml, history 3498 lib/pengine/unpack.c history->rsc->cluster)) { history 3502 lib/pengine/unpack.c pcmk_node_t *source_node = pcmk_find_node(history->rsc->cluster, history 3506 lib/pengine/unpack.c native_add_running(history->rsc, source_node, history->rsc->cluster, history 3519 lib/pengine/unpack.c record_failed_op(struct action_history *history) history 3521 lib/pengine/unpack.c if (!(history->node->details->online)) { history 3525 lib/pengine/unpack.c for (const xmlNode *xIter = history->rsc->cluster->failed->children; history 3531 lib/pengine/unpack.c if (pcmk__str_eq(history->key, key, pcmk__str_none) history 3532 lib/pengine/unpack.c && pcmk__str_eq(uname, history->node->details->uname, history 3535 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); history 3541 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); history 3542 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK_XA_UNAME, history->node->details->uname); history 3543 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK__XA_RSC_ID, history->rsc->id); history 3544 lib/pengine/unpack.c pcmk__xml_copy(history->rsc->cluster->failed, history->xml); history 3704 lib/pengine/unpack.c unpack_failure_handling(struct action_history *history, history 3708 lib/pengine/unpack.c xmlNode *config = pcmk__find_action_config(history->rsc, history->task, history 3709 lib/pengine/unpack.c history->interval_ms, true); history 3711 lib/pengine/unpack.c GHashTable *meta = pcmk__unpack_action_meta(history->rsc, history->node, history 3712 lib/pengine/unpack.c history->task, history 3713 lib/pengine/unpack.c history->interval_ms, config); history 3717 lib/pengine/unpack.c *on_fail = pcmk__parse_on_fail(history->rsc, history->task, history 3718 lib/pengine/unpack.c history->interval_ms, on_fail_str); history 3719 lib/pengine/unpack.c *fail_role = pcmk__role_after_failure(history->rsc, history->task, *on_fail, history 3735 lib/pengine/unpack.c unpack_rsc_op_failure(struct action_history *history, history 3743 lib/pengine/unpack.c *last_failure = history->xml; history 3745 lib/pengine/unpack.c is_probe = pcmk_xe_is_probe(history->xml); history 3746 lib/pengine/unpack.c last_change_s = last_change_str(history->xml); history 3748 lib/pengine/unpack.c if (!pcmk_is_set(history->rsc->cluster->flags, pcmk_sched_symmetric_cluster) history 3749 lib/pengine/unpack.c && (history->exit_status == PCMK_OCF_NOT_INSTALLED)) { history 3752 lib/pengine/unpack.c services_ocf_exitcode_str(history->exit_status), history 3753 lib/pengine/unpack.c (pcmk__str_empty(history->exit_reason)? "" : ": "), history 3754 lib/pengine/unpack.c pcmk__s(history->exit_reason, ""), history 3755 lib/pengine/unpack.c (is_probe? "probe" : history->task), history->rsc->id, history 3756 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s, history 3757 lib/pengine/unpack.c history->exit_status, history->id); history 3761 lib/pengine/unpack.c services_ocf_exitcode_str(history->exit_status), history 3762 lib/pengine/unpack.c (pcmk__str_empty(history->exit_reason)? "" : ": "), history 3763 lib/pengine/unpack.c pcmk__s(history->exit_reason, ""), history 3764 lib/pengine/unpack.c (is_probe? "probe" : history->task), history->rsc->id, history 3765 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s, history 3766 lib/pengine/unpack.c history->exit_status, history->id); history 3768 lib/pengine/unpack.c if (is_probe && (history->exit_status != PCMK_OCF_OK) history 3769 lib/pengine/unpack.c && (history->exit_status != PCMK_OCF_NOT_RUNNING) history 3770 lib/pengine/unpack.c && (history->exit_status != PCMK_OCF_RUNNING_PROMOTED)) { history 3778 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); history 3781 lib/pengine/unpack.c record_failed_op(history); history 3787 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, "on-fail %s -> %s for %s", history 3789 lib/pengine/unpack.c pcmk_on_fail_text(config_on_fail), history->key); history 3793 lib/pengine/unpack.c if (strcmp(history->task, PCMK_ACTION_STOP) == 0) { history 3794 lib/pengine/unpack.c resource_location(history->rsc, history->node, -PCMK_SCORE_INFINITY, history 3795 lib/pengine/unpack.c "__stop_fail__", history->rsc->cluster); history 3797 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_MIGRATE_TO) == 0) { history 3798 lib/pengine/unpack.c unpack_migrate_to_failure(history); history 3800 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_MIGRATE_FROM) == 0) { history 3801 lib/pengine/unpack.c unpack_migrate_from_failure(history); history 3803 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_PROMOTE) == 0) { history 3804 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 3806 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_DEMOTE) == 0) { history 3808 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 3809 lib/pengine/unpack.c pe__set_next_role(history->rsc, pcmk_role_stopped, history 3812 lib/pengine/unpack.c } else if (history->exit_status == PCMK_OCF_NOT_RUNNING) { history 3813 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 3821 lib/pengine/unpack.c history->rsc->role = pcmk_role_unpromoted; history 3825 lib/pengine/unpack.c if (is_probe && (history->exit_status == PCMK_OCF_NOT_INSTALLED)) { history 3827 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, "Leaving %s stopped", history->rsc->id); history 3828 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 3830 lib/pengine/unpack.c } else if (history->rsc->role < pcmk_role_started) { history 3831 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, "Setting %s active", history->rsc->id); history 3832 lib/pengine/unpack.c set_active(history->rsc); history 3835 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 3837 lib/pengine/unpack.c history->rsc->id, pcmk_role_text(history->rsc->role), history 3838 lib/pengine/unpack.c pcmk__btoa(history->node->details->unclean), history 3843 lib/pengine/unpack.c && (history->rsc->next_role < fail_role)) { history 3844 lib/pengine/unpack.c pe__set_next_role(history->rsc, fail_role, "failure"); history 3848 lib/pengine/unpack.c ban_from_all_nodes(history->rsc); history 3862 lib/pengine/unpack.c block_if_unrecoverable(struct action_history *history) history 3866 lib/pengine/unpack.c if (strcmp(history->task, PCMK_ACTION_STOP) != 0) { history 3869 lib/pengine/unpack.c if (pe_can_fence(history->node->details->data_set, history->node)) { history 3873 lib/pengine/unpack.c last_change_s = last_change_str(history->xml); history 3877 lib/pengine/unpack.c history->rsc->id, history->task, history 3878 lib/pengine/unpack.c pcmk__node_name(history->node), history 3879 lib/pengine/unpack.c services_ocf_exitcode_str(history->exit_status), history 3880 lib/pengine/unpack.c (pcmk__str_empty(history->exit_reason)? "" : ": "), history 3881 lib/pengine/unpack.c pcmk__s(history->exit_reason, ""), history 3882 lib/pengine/unpack.c last_change_s, history->exit_status, history->id); history 3886 lib/pengine/unpack.c pcmk__clear_rsc_flags(history->rsc, pcmk_rsc_managed); history 3887 lib/pengine/unpack.c pcmk__set_rsc_flags(history->rsc, pcmk_rsc_blocked); history 3900 lib/pengine/unpack.c remap_because(struct action_history *history, const char **why, int value, history 3903 lib/pengine/unpack.c if (history->execution_status != value) { history 3904 lib/pengine/unpack.c history->execution_status = value; history 3932 lib/pengine/unpack.c remap_operation(struct action_history *history, history 3936 lib/pengine/unpack.c int orig_exit_status = history->exit_status; history 3937 lib/pengine/unpack.c int orig_exec_status = history->execution_status; history 3939 lib/pengine/unpack.c const char *task = history->task; history 3942 lib/pengine/unpack.c history->exit_status = pcmk__effective_rc(history->exit_status); history 3943 lib/pengine/unpack.c if (history->exit_status != orig_exit_status) { history 3945 lib/pengine/unpack.c if (!expired && (!history->node->details->shutdown history 3946 lib/pengine/unpack.c || history->node->details->online)) { history 3947 lib/pengine/unpack.c record_failed_op(history); history 3951 lib/pengine/unpack.c if (!pcmk__is_bundled(history->rsc) history 3952 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml) history 3953 lib/pengine/unpack.c && ((history->execution_status != PCMK_EXEC_DONE) history 3954 lib/pengine/unpack.c || (history->exit_status != PCMK_OCF_NOT_RUNNING))) { history 3955 lib/pengine/unpack.c history->execution_status = PCMK_EXEC_DONE; history 3956 lib/pengine/unpack.c history->exit_status = PCMK_OCF_NOT_RUNNING; history 3965 lib/pengine/unpack.c switch (history->execution_status) { history 3973 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR_HARD, history 3981 lib/pengine/unpack.c is_probe = pcmk_xe_is_probe(history->xml); history 3986 lib/pengine/unpack.c if (history->expected_exit_status < 0) { history 3995 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR, history 3999 lib/pengine/unpack.c history->key, pcmk__node_name(history->node)); history 4001 lib/pengine/unpack.c } else if (history->exit_status == history->expected_exit_status) { history 4002 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_DONE, "expected result"); history 4005 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR, "unexpected result"); history 4006 lib/pengine/unpack.c pcmk__rsc_debug(history->rsc, history 4008 lib/pengine/unpack.c history->key, pcmk__node_name(history->node), history 4009 lib/pengine/unpack.c history->expected_exit_status, history 4010 lib/pengine/unpack.c services_ocf_exitcode_str(history->expected_exit_status), history 4011 lib/pengine/unpack.c history->exit_status, history 4012 lib/pengine/unpack.c services_ocf_exitcode_str(history->exit_status), history 4013 lib/pengine/unpack.c (pcmk__str_empty(history->exit_reason)? "" : ": "), history 4014 lib/pengine/unpack.c pcmk__s(history->exit_reason, "")); history 4017 lib/pengine/unpack.c switch (history->exit_status) { history 4020 lib/pengine/unpack.c && (history->expected_exit_status == PCMK_OCF_NOT_RUNNING)) { history 4021 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); history 4023 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_DONE, "probe"); history 4024 lib/pengine/unpack.c pcmk__rsc_info(history->rsc, history 4026 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node), history 4034 lib/pengine/unpack.c || (history->expected_exit_status == history->exit_status) history 4035 lib/pengine/unpack.c || !pcmk_is_set(history->rsc->flags, pcmk_rsc_managed)) { history 4041 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_DONE, "exit status"); history 4042 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 4044 lib/pengine/unpack.c pe__set_next_role(history->rsc, pcmk_role_unknown, history 4051 lib/pengine/unpack.c && (history->exit_status != history->expected_exit_status)) { history 4052 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); history 4054 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_DONE, "probe"); history 4055 lib/pengine/unpack.c pcmk__rsc_info(history->rsc, history 4057 lib/pengine/unpack.c history->rsc->id, history 4058 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s); history 4062 lib/pengine/unpack.c || (history->exit_status == history->expected_exit_status)) { history 4063 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 4069 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 4071 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR, "exit status"); history 4075 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR_FATAL, "exit status"); history 4081 lib/pengine/unpack.c crm_element_value_ms(history->xml, PCMK_META_INTERVAL, history 4086 lib/pengine/unpack.c block_if_unrecoverable(history); history 4088 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR_HARD, history 4091 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_NOT_SUPPORTED, history 4101 lib/pengine/unpack.c block_if_unrecoverable(history); history 4103 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR_HARD, "exit status"); history 4107 lib/pengine/unpack.c if (history->execution_status == PCMK_EXEC_DONE) { history 4108 lib/pengine/unpack.c char *last_change_s = last_change_str(history->xml); history 4112 lib/pengine/unpack.c history->exit_status, task, history->rsc->id, history 4113 lib/pengine/unpack.c pcmk__node_name(history->node), last_change_s); history 4114 lib/pengine/unpack.c remap_because(history, &why, PCMK_EXEC_ERROR, history 4123 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4126 lib/pengine/unpack.c history->key, pcmk_exec_status_str(orig_exec_status), history 4128 lib/pengine/unpack.c pcmk_exec_status_str(history->execution_status), history 4129 lib/pengine/unpack.c crm_exit_str(history->exit_status), why); history 4245 lib/pengine/unpack.c check_operation_expiry(struct action_history *history) history 4248 lib/pengine/unpack.c bool is_last_failure = pcmk__ends_with(history->id, "_last_failure_0"); history 4253 lib/pengine/unpack.c if (history->execution_status == PCMK_EXEC_NOT_INSTALLED) { history 4254 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4257 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); history 4261 lib/pengine/unpack.c if ((history->rsc->failure_timeout > 0) history 4262 lib/pengine/unpack.c && (crm_element_value_epoch(history->xml, PCMK_XA_LAST_RC_CHANGE, history 4269 lib/pengine/unpack.c time_t now = get_effective_time(history->rsc->cluster); history 4273 lib/pengine/unpack.c if ((now >= (last_run + history->rsc->failure_timeout)) history 4274 lib/pengine/unpack.c && !should_ignore_failure_timeout(history->rsc, history->task, history 4275 lib/pengine/unpack.c history->interval_ms, history 4281 lib/pengine/unpack.c unexpired_fail_count = pe_get_failcount(history->node, history->rsc, history 4284 lib/pengine/unpack.c history->xml); history 4289 lib/pengine/unpack.c history->id, (long long) last_run, (expired? "" : "not "), history 4291 lib/pengine/unpack.c history->rsc->failure_timeout, (long long) last_failure); history 4292 lib/pengine/unpack.c last_failure += history->rsc->failure_timeout + 1; history 4294 lib/pengine/unpack.c pe__update_recheck_time(last_failure, history->rsc->cluster, history 4300 lib/pengine/unpack.c if (pe_get_failcount(history->node, history->rsc, NULL, history 4301 lib/pengine/unpack.c pcmk__fc_default, history->xml)) { history 4315 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4318 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); history 4323 lib/pengine/unpack.c && (history->rsc->remote_reconnect_ms != 0)) { history 4332 lib/pengine/unpack.c && should_clear_for_param_change(history->xml, history->task, history 4333 lib/pengine/unpack.c history->rsc, history->node)) { history 4341 lib/pengine/unpack.c clear_op = pe__clear_failcount(history->rsc, history->node, history 4342 lib/pengine/unpack.c clear_reason, history->rsc->cluster); history 4344 lib/pengine/unpack.c if (pcmk_is_set(history->rsc->cluster->flags, history 4346 lib/pengine/unpack.c && (history->rsc->remote_reconnect_ms != 0)) { history 4357 lib/pengine/unpack.c history->task, history->rsc->id); history 4358 lib/pengine/unpack.c order_after_remote_fencing(clear_op, history->rsc, history 4359 lib/pengine/unpack.c history->rsc->cluster); history 4363 lib/pengine/unpack.c if (expired && (history->interval_ms == 0) history 4364 lib/pengine/unpack.c && pcmk__str_eq(history->task, PCMK_ACTION_MONITOR, pcmk__str_none)) { history 4365 lib/pengine/unpack.c switch (history->exit_status) { history 4372 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4375 lib/pengine/unpack.c history->id, pcmk__node_name(history->node)); history 4407 lib/pengine/unpack.c update_resource_state(struct action_history *history, int exit_status, history 4414 lib/pengine/unpack.c || (!pcmk__is_bundled(history->rsc) history 4415 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml))) { history 4416 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 4421 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_MONITOR, history 4424 lib/pengine/unpack.c && pcmk__str_eq(history->key, pcmk__xe_history_key(last_failure), history 4428 lib/pengine/unpack.c if (history->rsc->role < pcmk_role_started) { history 4429 lib/pengine/unpack.c set_active(history->rsc); history 4432 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_START, pcmk__str_none)) { history 4433 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 4436 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_STOP, pcmk__str_none)) { history 4437 lib/pengine/unpack.c history->rsc->role = pcmk_role_stopped; history 4440 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_PROMOTE, history 4442 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 4445 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_DEMOTE, history 4453 lib/pengine/unpack.c history->rsc->role = pcmk_role_unpromoted; history 4455 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_MIGRATE_FROM, history 4457 lib/pengine/unpack.c history->rsc->role = pcmk_role_started; history 4460 lib/pengine/unpack.c } else if (pcmk__str_eq(history->task, PCMK_ACTION_MIGRATE_TO, history 4462 lib/pengine/unpack.c unpack_migrate_to_success(history); history 4464 lib/pengine/unpack.c } else if (history->rsc->role < pcmk_role_started) { history 4465 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, "%s active on %s", history 4466 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); history 4467 lib/pengine/unpack.c set_active(history->rsc); history 4479 lib/pengine/unpack.c pcmk__rsc_trace(history->rsc, history 4481 lib/pengine/unpack.c history->rsc->id, pcmk_on_fail_text(*on_fail), history 4482 lib/pengine/unpack.c history->task); history 4491 lib/pengine/unpack.c pe__set_next_role(history->rsc, pcmk_role_unknown, history 4496 lib/pengine/unpack.c if (history->rsc->remote_reconnect_ms == 0) { history 4504 lib/pengine/unpack.c pe__set_next_role(history->rsc, pcmk_role_unknown, history 4520 lib/pengine/unpack.c can_affect_state(struct action_history *history) history 4529 lib/pengine/unpack.c return pcmk__str_any_of(history->task, PCMK_ACTION_MONITOR, history 4535 lib/pengine/unpack.c return !pcmk__str_any_of(history->task, PCMK_ACTION_NOTIFY, history 4549 lib/pengine/unpack.c unpack_action_result(struct action_history *history) history 4551 lib/pengine/unpack.c if ((crm_element_value_int(history->xml, PCMK__XA_OP_STATUS, history 4552 lib/pengine/unpack.c &(history->execution_status)) < 0) history 4553 lib/pengine/unpack.c || (history->execution_status < PCMK_EXEC_PENDING) history 4554 lib/pengine/unpack.c || (history->execution_status > PCMK_EXEC_MAX) history 4555 lib/pengine/unpack.c || (history->execution_status == PCMK_EXEC_CANCELLED)) { history 4558 lib/pengine/unpack.c history->id, history->rsc->id, history 4559 lib/pengine/unpack.c pcmk__node_name(history->node), history 4560 lib/pengine/unpack.c pcmk__s(crm_element_value(history->xml, history 4565 lib/pengine/unpack.c if ((crm_element_value_int(history->xml, PCMK__XA_RC_CODE, history 4566 lib/pengine/unpack.c &(history->exit_status)) < 0) history 4567 lib/pengine/unpack.c || (history->exit_status < 0) || (history->exit_status > CRM_EX_MAX)) { history 4575 lib/pengine/unpack.c history->id, history->rsc->id, history 4576 lib/pengine/unpack.c pcmk__node_name(history->node), history 4577 lib/pengine/unpack.c pcmk__s(crm_element_value(history->xml, history 4582 lib/pengine/unpack.c history->exit_status = CRM_EX_ERROR; history 4585 lib/pengine/unpack.c history->exit_reason = crm_element_value(history->xml, PCMK_XA_EXIT_REASON); history 4600 lib/pengine/unpack.c process_expired_result(struct action_history *history, int orig_exit_status) history 4602 lib/pengine/unpack.c if (!pcmk__is_bundled(history->rsc) history 4603 lib/pengine/unpack.c && pcmk_xe_mask_probe_failure(history->xml) history 4604 lib/pengine/unpack.c && (orig_exit_status != history->expected_exit_status)) { history 4606 lib/pengine/unpack.c if (history->rsc->role <= pcmk_role_stopped) { history 4607 lib/pengine/unpack.c history->rsc->role = pcmk_role_unknown; history 4611 lib/pengine/unpack.c history->id, history->rsc->id, history 4612 lib/pengine/unpack.c pcmk__node_name(history->node)); history 4616 lib/pengine/unpack.c if (history->exit_status == history->expected_exit_status) { history 4620 lib/pengine/unpack.c if (history->interval_ms == 0) { history 4623 lib/pengine/unpack.c history->id, history->task, history->rsc->id, history 4624 lib/pengine/unpack.c pcmk__node_name(history->node)); history 4628 lib/pengine/unpack.c if (history->node->details->online && !history->node->details->unclean) { history 4641 lib/pengine/unpack.c pcmk__readable_interval(history->interval_ms), history->task, history 4642 lib/pengine/unpack.c history->rsc->id, pcmk__node_name(history->node)); history 4643 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK__XA_OP_RESTART_DIGEST, history 4661 lib/pengine/unpack.c mask_probe_failure(struct action_history *history, int orig_exit_status, history 4665 lib/pengine/unpack.c pcmk_resource_t *ban_rsc = history->rsc; history 4667 lib/pengine/unpack.c if (!pcmk_is_set(history->rsc->flags, pcmk_rsc_unique)) { history 4668 lib/pengine/unpack.c ban_rsc = uber_parent(history->rsc); history 4672 lib/pengine/unpack.c services_ocf_exitcode_str(orig_exit_status), history->rsc->id, history 4673 lib/pengine/unpack.c pcmk__node_name(history->node)); history 4674 lib/pengine/unpack.c update_resource_state(history, history->expected_exit_status, last_failure, history 4676 lib/pengine/unpack.c crm_xml_add(history->xml, PCMK_XA_UNAME, history->node->details->uname); history 4678 lib/pengine/unpack.c record_failed_op(history); history 4679 lib/pengine/unpack.c resource_location(ban_rsc, history->node, -PCMK_SCORE_INFINITY, history 4680 lib/pengine/unpack.c "masked-probe-failure", history->rsc->cluster); history 4696 lib/pengine/unpack.c failure_is_newer(const struct action_history *history, history 4707 lib/pengine/unpack.c if (!pcmk__str_eq(history->task, history 4715 lib/pengine/unpack.c || (history->interval_ms != failure_interval_ms)) { history 4719 lib/pengine/unpack.c if ((pcmk__scan_ll(crm_element_value(history->xml, PCMK_XA_LAST_RC_CHANGE), history 4739 lib/pengine/unpack.c process_pending_action(struct action_history *history, history 4751 lib/pengine/unpack.c if (failure_is_newer(history, last_failure)) { history 4755 lib/pengine/unpack.c if (strcmp(history->task, PCMK_ACTION_START) == 0) { history 4756 lib/pengine/unpack.c pcmk__set_rsc_flags(history->rsc, pcmk_rsc_start_pending); history 4757 lib/pengine/unpack.c set_active(history->rsc); history 4759 lib/pengine/unpack.c } else if (strcmp(history->task, PCMK_ACTION_PROMOTE) == 0) { history 4760 lib/pengine/unpack.c history->rsc->role = pcmk_role_promoted; history 4762 lib/pengine/unpack.c } else if ((strcmp(history->task, PCMK_ACTION_MIGRATE_TO) == 0) history 4763 lib/pengine/unpack.c && history->node->details->unclean) { history 4770 lib/pengine/unpack.c migrate_target = crm_element_value(history->xml, history 4772 lib/pengine/unpack.c target = pcmk_find_node(history->rsc->cluster, migrate_target); history 4774 lib/pengine/unpack.c stop_action(history->rsc, target, FALSE); history 4778 lib/pengine/unpack.c if (history->rsc->pending_task != NULL) { history 4785 lib/pengine/unpack.c if (pcmk_is_probe(history->task, history->interval_ms)) { history 4792 lib/pengine/unpack.c history->rsc->pending_task = strdup("probe"); history 4793 lib/pengine/unpack.c history->rsc->pending_node = history->node; history 4796 lib/pengine/unpack.c history->rsc->pending_task = strdup(history->task); history 4797 lib/pengine/unpack.c history->rsc->pending_node = history->node; history 4811 lib/pengine/unpack.c struct action_history history = { history 4820 lib/pengine/unpack.c history.id = pcmk__xe_id(xml_op); history 4821 lib/pengine/unpack.c if (history.id == NULL) { history 4828 lib/pengine/unpack.c history.task = crm_element_value(xml_op, PCMK_XA_OPERATION); history 4829 lib/pengine/unpack.c if (history.task == NULL) { history 4832 lib/pengine/unpack.c history.id, rsc->id, pcmk__node_name(node)); history 4835 lib/pengine/unpack.c crm_element_value_ms(xml_op, PCMK_META_INTERVAL, &(history.interval_ms)); history 4836 lib/pengine/unpack.c if (!can_affect_state(&history)) { history 4840 lib/pengine/unpack.c history.id, rsc->id, pcmk__node_name(node), history 4841 lib/pengine/unpack.c history.task); history 4845 lib/pengine/unpack.c if (unpack_action_result(&history) != pcmk_rc_ok) { history 4849 lib/pengine/unpack.c history.expected_exit_status = pe__target_rc_from_xml(xml_op); history 4850 lib/pengine/unpack.c history.key = pcmk__xe_history_key(xml_op); history 4851 lib/pengine/unpack.c crm_element_value_int(xml_op, PCMK__XA_CALL_ID, &(history.call_id)); history 4854 lib/pengine/unpack.c history.id, history.task, history.call_id, history 4856 lib/pengine/unpack.c pcmk_exec_status_str(history.execution_status), history 4857 lib/pengine/unpack.c crm_exit_str(history.exit_status)); history 4866 lib/pengine/unpack.c expired = check_operation_expiry(&history); history 4867 lib/pengine/unpack.c old_rc = history.exit_status; history 4869 lib/pengine/unpack.c remap_operation(&history, on_fail, expired); history 4871 lib/pengine/unpack.c if (expired && (process_expired_result(&history, old_rc) == pcmk_rc_ok)) { history 4876 lib/pengine/unpack.c mask_probe_failure(&history, old_rc, *last_failure, on_fail); history 4884 lib/pengine/unpack.c switch (history.execution_status) { history 4886 lib/pengine/unpack.c process_pending_action(&history, *last_failure); history 4890 lib/pengine/unpack.c update_resource_state(&history, history.exit_status, *last_failure, history 4895 lib/pengine/unpack.c unpack_failure_handling(&history, &failure_strategy, &fail_role); history 4900 lib/pengine/unpack.c history.task, rsc->id, pcmk__node_name(node), history 4901 lib/pengine/unpack.c history.execution_status, history.exit_status, history 4902 lib/pengine/unpack.c history.id); history 4910 lib/pengine/unpack.c unpack_rsc_op_failure(&history, failure_strategy, fail_role, history 4941 lib/pengine/unpack.c unpack_failure_handling(&history, &failure_strategy, &fail_role); history 4944 lib/pengine/unpack.c && (strcmp(history.task, PCMK_ACTION_STOP) == 0))) { history 4950 lib/pengine/unpack.c history.task, services_ocf_exitcode_str(history.exit_status), history 4951 lib/pengine/unpack.c (pcmk__str_empty(history.exit_reason)? "" : ": "), history 4952 lib/pengine/unpack.c pcmk__s(history.exit_reason, ""), rsc->id, history 4953 lib/pengine/unpack.c pcmk__node_name(node), last_change_s, history.id); history 4956 lib/pengine/unpack.c update_resource_state(&history, history.expected_exit_status, history 4961 lib/pengine/unpack.c record_failed_op(&history); history 4969 lib/pengine/unpack.c unpack_rsc_op_failure(&history, failure_strategy, fail_role, history 4972 lib/pengine/unpack.c if (history.execution_status == PCMK_EXEC_ERROR_HARD) { history 4975 lib/pengine/unpack.c if (history.exit_status == PCMK_OCF_NOT_INSTALLED) { history 4982 lib/pengine/unpack.c services_ocf_exitcode_str(history.exit_status), history 4983 lib/pengine/unpack.c (pcmk__str_empty(history.exit_reason)? "" : ": "), history 4984 lib/pengine/unpack.c pcmk__s(history.exit_reason, ""), history.id); history 4988 lib/pengine/unpack.c } else if (history.execution_status == PCMK_EXEC_ERROR_FATAL) { history 4992 lib/pengine/unpack.c services_ocf_exitcode_str(history.exit_status), history 4993 lib/pengine/unpack.c (pcmk__str_empty(history.exit_reason)? "" : ": "), history 4994 lib/pengine/unpack.c pcmk__s(history.exit_reason, ""), history.id); history 5002 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;