out 58 daemons/fenced/pacemaker-fenced.c static pcmk__output_t *out = NULL; out 1588 daemons/fenced/pacemaker-fenced.c rc = pcmk__output_new(&out, "log", NULL, argv); out 1589 daemons/fenced/pacemaker-fenced.c if ((rc != pcmk_rc_ok) || (out == NULL)) { out 1595 daemons/fenced/pacemaker-fenced.c pe__register_messages(out); out 1596 daemons/fenced/pacemaker-fenced.c pcmk__register_lib_messages(out); out 1598 daemons/fenced/pacemaker-fenced.c pcmk__output_set_log_level(out, LOG_TRACE); out 1599 daemons/fenced/pacemaker-fenced.c fenced_data_set->priv = out; out 1613 daemons/fenced/pacemaker-fenced.c out->finish(out, CRM_EX_OK, true, NULL); out 1614 daemons/fenced/pacemaker-fenced.c pcmk__output_free(out); out 36 daemons/schedulerd/pacemaker-schedulerd.c static pcmk__output_t *out = NULL; out 63 daemons/schedulerd/pacemaker-schedulerd.c sched_data_set->priv = out; out 375 daemons/schedulerd/pacemaker-schedulerd.c rc = pcmk__output_new(&out, "log", NULL, argv); out 376 daemons/schedulerd/pacemaker-schedulerd.c if ((rc != pcmk_rc_ok) || (out == NULL)) { out 382 daemons/schedulerd/pacemaker-schedulerd.c pe__register_messages(out); out 383 daemons/schedulerd/pacemaker-schedulerd.c pcmk__register_lib_messages(out); out 385 daemons/schedulerd/pacemaker-schedulerd.c pcmk__output_set_log_level(out, LOG_TRACE); out 404 daemons/schedulerd/pacemaker-schedulerd.c if (out != NULL) { out 405 daemons/schedulerd/pacemaker-schedulerd.c out->finish(out, CRM_EX_OK, true, NULL); out 406 daemons/schedulerd/pacemaker-schedulerd.c pcmk__output_free(out); out 407 daemons/schedulerd/pacemaker-schedulerd.c out = NULL; out 216 include/crm/cib/internal.h void cib__set_output(cib_t *cib, pcmk__output_t *out); out 66 include/crm/common/output_internal.h typedef int (*pcmk__message_fn_t)(pcmk__output_t *out, va_list args); out 232 include/crm/common/output_internal.h bool (*init) (pcmk__output_t *out); out 243 include/crm/common/output_internal.h void (*free_priv) (pcmk__output_t *out); out 279 include/crm/common/output_internal.h void (*finish) (pcmk__output_t *out, crm_exit_t exit_status, bool print, out 297 include/crm/common/output_internal.h void (*reset) (pcmk__output_t *out); out 310 include/crm/common/output_internal.h void (*register_message) (pcmk__output_t *out, const char *message_id, out 328 include/crm/common/output_internal.h int (*message) (pcmk__output_t *out, const char *message_id, ...); out 339 include/crm/common/output_internal.h void (*subprocess_output) (pcmk__output_t *out, int exit_status, out 350 include/crm/common/output_internal.h void (*version) (pcmk__output_t *out, bool extended); out 369 include/crm/common/output_internal.h int (*info) (pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 383 include/crm/common/output_internal.h void (*err) (pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 393 include/crm/common/output_internal.h void (*output_xml) (pcmk__output_t *out, const char *name, const char *buf); out 414 include/crm/common/output_internal.h void (*begin_list) (pcmk__output_t *out, const char *singular_noun, out 427 include/crm/common/output_internal.h void (*list_item) (pcmk__output_t *out, const char *name, const char *format, ...) out 442 include/crm/common/output_internal.h void (*increment_list) (pcmk__output_t *out); out 454 include/crm/common/output_internal.h void (*end_list) (pcmk__output_t *out); out 467 include/crm/common/output_internal.h bool (*is_quiet) (pcmk__output_t *out); out 475 include/crm/common/output_internal.h void (*spacer) (pcmk__output_t *out); out 487 include/crm/common/output_internal.h void (*progress) (pcmk__output_t *out, bool end); out 521 include/crm/common/output_internal.h pcmk__call_message(pcmk__output_t *out, const char *message_id, ...); out 535 include/crm/common/output_internal.h void pcmk__output_free(pcmk__output_t *out); out 551 include/crm/common/output_internal.h int pcmk__output_new(pcmk__output_t **out, const char *fmt_name, out 608 include/crm/common/output_internal.h pcmk__register_message(pcmk__output_t *out, const char *message_id, out 623 include/crm/common/output_internal.h pcmk__register_messages(pcmk__output_t *out, pcmk__message_entry_t *table); out 638 include/crm/common/output_internal.h pcmk__indented_printf(pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 653 include/crm/common/output_internal.h pcmk__indented_vprintf(pcmk__output_t *out, const char *format, va_list args) G_GNUC_PRINTF(2, 0); out 666 include/crm/common/output_internal.h pcmk__formatted_printf(pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 681 include/crm/common/output_internal.h pcmk__formatted_vprintf(pcmk__output_t *out, const char *format, va_list args) G_GNUC_PRINTF(2, 0); out 708 include/crm/common/output_internal.h pcmk__output_set_log_level(pcmk__output_t *out, int log_level); out 722 include/crm/common/output_internal.h pcmk__output_xml_create_parent(pcmk__output_t *out, const char *name, ...) out 734 include/crm/common/output_internal.h pcmk__output_xml_add_node(pcmk__output_t *out, xmlNodePtr node); out 746 include/crm/common/output_internal.h pcmk__output_create_xml_node(pcmk__output_t *out, const char *name, ...) out 759 include/crm/common/output_internal.h pcmk__output_create_xml_text_node(pcmk__output_t *out, const char *name, const char *content); out 776 include/crm/common/output_internal.h pcmk__output_xml_push_parent(pcmk__output_t *out, xmlNodePtr node); out 793 include/crm/common/output_internal.h pcmk__output_xml_pop_parent(pcmk__output_t *out); out 810 include/crm/common/output_internal.h pcmk__output_xml_peek_parent(pcmk__output_t *out); out 826 include/crm/common/output_internal.h pcmk__output_create_html_node(pcmk__output_t *out, const char *element_name, const char *id, out 857 include/crm/common/output_internal.h void pcmk__output_and_clear_error(GError *error, pcmk__output_t *out); out 861 include/crm/common/output_internal.h out->spacer(out); \ out 84 include/crm/fencing/internal.h void stonith__register_messages(pcmk__output_t *out); out 188 include/crm/fencing/internal.h int stonith__failed_history(pcmk__output_t *out, va_list args); out 189 include/crm/fencing/internal.h int stonith__history(pcmk__output_t *out, va_list args); out 190 include/crm/fencing/internal.h int stonith__full_history(pcmk__output_t *out, va_list args); out 191 include/crm/fencing/internal.h int stonith__pending_actions(pcmk__output_t *out, va_list args); out 70 include/crm/lrmd_internal.h void lrmd__register_messages(pcmk__output_t *out); out 250 include/crm/pengine/internal.h int pe__name_and_nvpairs_xml(pcmk__output_t *out, bool is_list, const char *tag_name out 260 include/crm/pengine/internal.h int pe__clone_xml(pcmk__output_t *out, va_list args); out 261 include/crm/pengine/internal.h int pe__clone_html(pcmk__output_t *out, va_list args); out 262 include/crm/pengine/internal.h int pe__clone_text(pcmk__output_t *out, va_list args); out 263 include/crm/pengine/internal.h int pe__group_xml(pcmk__output_t *out, va_list args); out 264 include/crm/pengine/internal.h int pe__group_html(pcmk__output_t *out, va_list args); out 265 include/crm/pengine/internal.h int pe__group_text(pcmk__output_t *out, va_list args); out 266 include/crm/pengine/internal.h int pe__bundle_xml(pcmk__output_t *out, va_list args); out 267 include/crm/pengine/internal.h int pe__bundle_html(pcmk__output_t *out, va_list args); out 268 include/crm/pengine/internal.h int pe__bundle_text(pcmk__output_t *out, va_list args); out 269 include/crm/pengine/internal.h int pe__node_html(pcmk__output_t *out, va_list args); out 270 include/crm/pengine/internal.h int pe__node_text(pcmk__output_t *out, va_list args); out 271 include/crm/pengine/internal.h int pe__node_xml(pcmk__output_t *out, va_list args); out 272 include/crm/pengine/internal.h int pe__resource_xml(pcmk__output_t *out, va_list args); out 273 include/crm/pengine/internal.h int pe__resource_html(pcmk__output_t *out, va_list args); out 274 include/crm/pengine/internal.h int pe__resource_text(pcmk__output_t *out, va_list args); out 277 include/crm/pengine/internal.h int pe__ban_text(pcmk__output_t *out, va_list args); out 278 include/crm/pengine/internal.h int pe__cluster_counts_text(pcmk__output_t *out, va_list args); out 279 include/crm/pengine/internal.h int pe__cluster_dc_text(pcmk__output_t *out, va_list args); out 280 include/crm/pengine/internal.h int pe__cluster_maint_mode_text(pcmk__output_t *out, va_list args); out 281 include/crm/pengine/internal.h int pe__cluster_options_text(pcmk__output_t *out, va_list args); out 282 include/crm/pengine/internal.h int pe__cluster_stack_text(pcmk__output_t *out, va_list args); out 283 include/crm/pengine/internal.h int pe__cluster_summary(pcmk__output_t *out, va_list args); out 284 include/crm/pengine/internal.h int pe__cluster_times_text(pcmk__output_t *out, va_list args); out 285 include/crm/pengine/internal.h int pe__failed_action_text(pcmk__output_t *out, va_list args); out 286 include/crm/pengine/internal.h int pe__node_attribute_text(pcmk__output_t *out, va_list args); out 287 include/crm/pengine/internal.h int pe__node_list_text(pcmk__output_t *out, va_list args); out 288 include/crm/pengine/internal.h int pe__op_history_text(pcmk__output_t *out, va_list args); out 289 include/crm/pengine/internal.h int pe__resource_history_text(pcmk__output_t *out, va_list args); out 290 include/crm/pengine/internal.h int pe__ticket_text(pcmk__output_t *out, va_list args); out 364 include/crm/pengine/internal.h extern void pe__output_node(pe_node_t * node, gboolean details, pcmk__output_t *out); out 538 include/crm/pengine/internal.h int pe__rscs_brief_output(pcmk__output_t *out, GList *rsc_list, long options, gboolean print_all); out 544 include/crm/pengine/internal.h int pe__common_output_text(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, long options); out 545 include/crm/pengine/internal.h int pe__common_output_html(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, long options); out 574 include/crm/pengine/internal.h void pe__register_messages(pcmk__output_t *out); out 8 include/pcmki/pcmki_cluster_queries.h int pcmk__controller_status(pcmk__output_t *out, char *dest_node, guint message_timeout_ms); out 9 include/pcmki/pcmki_cluster_queries.h int pcmk__designated_controller(pcmk__output_t *out, guint message_timeout_ms); out 10 include/pcmki/pcmki_cluster_queries.h int pcmk__pacemakerd_status(pcmk__output_t *out, char *ipc_name, guint message_timeout_ms); out 11 include/pcmki/pcmki_cluster_queries.h int pcmk__list_nodes(pcmk__output_t *out, char *node_types, gboolean BASH_EXPORT); out 58 include/pcmki/pcmki_fence.h int pcmk__fence_history(pcmk__output_t *out, stonith_t *st, char *target, out 78 include/pcmki/pcmki_fence.h int pcmk__fence_installed(pcmk__output_t *out, stonith_t *st, unsigned int timeout); out 96 include/pcmki/pcmki_fence.h int pcmk__fence_last(pcmk__output_t *out, const char *target, bool as_nodeid); out 115 include/pcmki/pcmki_fence.h int pcmk__fence_list_targets(pcmk__output_t *out, stonith_t *st, out 135 include/pcmki/pcmki_fence.h int pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, out 156 include/pcmki/pcmki_fence.h int pcmk__fence_registered(pcmk__output_t *out, stonith_t *st, char *target, out 218 include/pcmki/pcmki_fence.h int pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, out 21 include/pcmki/pcmki_output.h int pcmk__out_prologue(pcmk__output_t **out, xmlNodePtr *xml); out 22 include/pcmki/pcmki_output.h void pcmk__out_epilogue(pcmk__output_t *out, xmlNodePtr *xml, int retval); out 29 include/pcmki/pcmki_output.h void pcmk__register_lib_messages(pcmk__output_t *out); out 17 include/pcmki/pcmki_resource.h int pcmk__resource_digests(pcmk__output_t *out, pe_resource_t *rsc, out 62 lib/cib/cib_remote.c pcmk__output_t *out; out 381 lib/cib/cib_remote.c if (private->out == NULL) { out 387 lib/cib/cib_remote.c private->out->prompt("Password", false, &(private->passwd)); out 616 lib/cib/cib_remote.c cib__set_output(cib_t *cib, pcmk__output_t *out) out 625 lib/cib/cib_remote.c private->out = out; out 200 lib/common/options.c goto out; out 205 lib/common/options.c goto out; out 263 lib/common/options.c out: out 19 lib/common/output.c pcmk__output_free(pcmk__output_t *out) { out 20 lib/common/output.c out->free_priv(out); out 22 lib/common/output.c if (out->messages != NULL) { out 23 lib/common/output.c g_hash_table_destroy(out->messages); out 26 lib/common/output.c g_free(out->request); out 27 lib/common/output.c free(out); out 31 lib/common/output.c pcmk__output_new(pcmk__output_t **out, const char *fmt_name, const char *filename, out 52 lib/common/output.c *out = create(argv); out 53 lib/common/output.c if (*out == NULL) { out 58 lib/common/output.c (*out)->dest = stdout; out 60 lib/common/output.c (*out)->dest = fopen(filename, "w"); out 61 lib/common/output.c if ((*out)->dest == NULL) { out 66 lib/common/output.c (*out)->quiet = false; out 67 lib/common/output.c (*out)->messages = pcmk__strkey_table(free, NULL); out 69 lib/common/output.c if ((*out)->init(*out) == false) { out 70 lib/common/output.c pcmk__output_free(*out); out 117 lib/common/output.c pcmk__call_message(pcmk__output_t *out, const char *message_id, ...) { out 122 lib/common/output.c fn = g_hash_table_lookup(out->messages, message_id); out 125 lib/common/output.c message_id, out->fmt_name); out 130 lib/common/output.c rc = fn(out, args); out 137 lib/common/output.c pcmk__register_message(pcmk__output_t *out, const char *message_id, out 139 lib/common/output.c g_hash_table_replace(out->messages, strdup(message_id), fn); out 143 lib/common/output.c pcmk__register_messages(pcmk__output_t *out, pcmk__message_entry_t *table) { out 147 lib/common/output.c if (pcmk__strcase_any_of(entry->fmt_name, "default", out->fmt_name, NULL)) { out 148 lib/common/output.c pcmk__register_message(out, entry->message_id, entry->fn); out 154 lib/common/output.c pcmk__output_and_clear_error(GError *error, pcmk__output_t *out) out 160 lib/common/output.c if (out != NULL) { out 161 lib/common/output.c out->err(out, "%s: %s", g_get_prgname(), error->message); out 69 lib/common/output_html.c html_free_priv(pcmk__output_t *out) { out 70 lib/common/output_html.c private_data_t *priv = out->priv; out 80 lib/common/output_html.c out->priv = NULL; out 84 lib/common/output_html.c html_init(pcmk__output_t *out) { out 88 lib/common/output_html.c if (out->priv != NULL) { out 91 lib/common/output_html.c out->priv = calloc(1, sizeof(private_data_t)); out 92 lib/common/output_html.c if (out->priv == NULL) { out 96 lib/common/output_html.c priv = out->priv; out 108 lib/common/output_html.c pcmk__output_xml_create_parent(out, "body", NULL); out 116 lib/common/output_html.c pcmk__output_t *out = (pcmk__output_t *) user_data; out 117 lib/common/output_html.c out->list_item(out, NULL, "%s", str); out 121 lib/common/output_html.c html_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 122 lib/common/output_html.c private_data_t *priv = out->priv; out 134 lib/common/output_html.c fprintf(out->dest, "Content-Type: text/html\n\n"); out 145 lib/common/output_html.c } else if (out->request != NULL) { out 146 lib/common/output_html.c pcmk_create_xml_text_node(head_node, "title", out->request); out 175 lib/common/output_html.c out->begin_list(out, "Errors", NULL, NULL); out 176 lib/common/output_html.c g_slist_foreach(priv->errors, add_error_node, (gpointer) out); out 177 lib/common/output_html.c out->end_list(out); out 181 lib/common/output_html.c htmlDocDump(out->dest, priv->root->doc); out 193 lib/common/output_html.c html_reset(pcmk__output_t *out) { out 194 lib/common/output_html.c CRM_ASSERT(out != NULL); out 196 lib/common/output_html.c out->dest = freopen(NULL, "w", out->dest); out 197 lib/common/output_html.c CRM_ASSERT(out->dest != NULL); out 199 lib/common/output_html.c html_free_priv(out); out 200 lib/common/output_html.c html_init(out); out 204 lib/common/output_html.c html_subprocess_output(pcmk__output_t *out, int exit_status, out 208 lib/common/output_html.c CRM_ASSERT(out != NULL); out 212 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", "Command Output"); out 213 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, rc_buf); out 216 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, "Stdout"); out 217 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, "output", proc_stdout); out 220 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, "Stderr"); out 221 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, "output", proc_stderr); out 228 lib/common/output_html.c html_version(pcmk__output_t *out, bool extended) { out 229 lib/common/output_html.c CRM_ASSERT(out != NULL); out 231 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", "Version Information"); out 232 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, "Program: Pacemaker"); out 233 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, crm_strdup_printf("Version: %s", PACEMAKER_VERSION)); out 234 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, "Author: Andrew Beekhof"); out 235 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, crm_strdup_printf("Build: %s", BUILD_VERSION)); out 236 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, crm_strdup_printf("Features: %s", CRM_FEATURES)); out 241 lib/common/output_html.c html_err(pcmk__output_t *out, const char *format, ...) { out 247 lib/common/output_html.c CRM_ASSERT(out != NULL && out->priv != NULL); out 248 lib/common/output_html.c priv = out->priv; out 260 lib/common/output_html.c html_info(pcmk__output_t *out, const char *format, ...) { out 265 lib/common/output_html.c html_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 268 lib/common/output_html.c CRM_ASSERT(out != NULL); out 270 lib/common/output_html.c node = pcmk__output_create_html_node(out, "pre", NULL, NULL, buf); out 276 lib/common/output_html.c html_begin_list(pcmk__output_t *out, const char *singular_noun, out 282 lib/common/output_html.c CRM_ASSERT(out != NULL && out->priv != NULL); out 283 lib/common/output_html.c priv = out->priv; out 291 lib/common/output_html.c pcmk__output_xml_create_parent(out, "li", NULL); out 305 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h3", buf); out 307 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", buf); out 313 lib/common/output_html.c node = pcmk__output_xml_create_parent(out, "ul", NULL); out 319 lib/common/output_html.c html_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { out 325 lib/common/output_html.c CRM_ASSERT(out != NULL); out 332 lib/common/output_html.c item_node = pcmk__output_create_xml_text_node(out, "li", buf); out 341 lib/common/output_html.c html_increment_list(pcmk__output_t *out) { out 346 lib/common/output_html.c html_end_list(pcmk__output_t *out) { out 349 lib/common/output_html.c CRM_ASSERT(out != NULL && out->priv != NULL); out 350 lib/common/output_html.c priv = out->priv; out 354 lib/common/output_html.c pcmk__output_xml_pop_parent(out); out 358 lib/common/output_html.c pcmk__output_xml_pop_parent(out); out 363 lib/common/output_html.c html_is_quiet(pcmk__output_t *out) { out 368 lib/common/output_html.c html_spacer(pcmk__output_t *out) { out 369 lib/common/output_html.c CRM_ASSERT(out != NULL); out 370 lib/common/output_html.c pcmk__output_create_xml_node(out, "br", NULL); out 374 lib/common/output_html.c html_progress(pcmk__output_t *out, bool end) { out 417 lib/common/output_html.c pcmk__output_create_html_node(pcmk__output_t *out, const char *element_name, const char *id, out 421 lib/common/output_html.c CRM_ASSERT(out != NULL); out 423 lib/common/output_html.c node = pcmk__output_create_xml_text_node(out, element_name, text); out 28 lib/common/output_log.c log_subprocess_output(pcmk__output_t *out, int exit_status, out 34 lib/common/output_log.c log_free_priv(pcmk__output_t *out) { out 35 lib/common/output_log.c private_data_t *priv = out->priv; out 43 lib/common/output_log.c out->priv = NULL; out 47 lib/common/output_log.c log_init(pcmk__output_t *out) { out 51 lib/common/output_log.c if (out->priv != NULL) { out 55 lib/common/output_log.c out->priv = calloc(1, sizeof(private_data_t)); out 56 lib/common/output_log.c if (out->priv == NULL) { out 60 lib/common/output_log.c priv = out->priv; out 69 lib/common/output_log.c log_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 74 lib/common/output_log.c log_reset(pcmk__output_t *out) { out 75 lib/common/output_log.c CRM_ASSERT(out != NULL); out 77 lib/common/output_log.c out->dest = freopen(NULL, "w", out->dest); out 78 lib/common/output_log.c CRM_ASSERT(out->dest != NULL); out 80 lib/common/output_log.c log_free_priv(out); out 81 lib/common/output_log.c log_init(out); out 85 lib/common/output_log.c log_version(pcmk__output_t *out, bool extended) { out 88 lib/common/output_log.c CRM_ASSERT(out != NULL && out->priv != NULL); out 89 lib/common/output_log.c priv = out->priv; out 102 lib/common/output_log.c log_err(pcmk__output_t *out, const char *format, ...) { out 107 lib/common/output_log.c CRM_ASSERT(out != NULL); out 123 lib/common/output_log.c log_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 127 lib/common/output_log.c CRM_ASSERT(out != NULL && out->priv != NULL); out 128 lib/common/output_log.c priv = out->priv; out 138 lib/common/output_log.c log_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 145 lib/common/output_log.c CRM_ASSERT(out != NULL && out->priv != NULL); out 146 lib/common/output_log.c priv = out->priv; out 165 lib/common/output_log.c log_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { out 173 lib/common/output_log.c CRM_ASSERT(out != NULL && out->priv != NULL); out 174 lib/common/output_log.c priv = out->priv; out 208 lib/common/output_log.c log_end_list(pcmk__output_t *out) { out 211 lib/common/output_log.c CRM_ASSERT(out != NULL && out->priv != NULL); out 212 lib/common/output_log.c priv = out->priv; out 225 lib/common/output_log.c log_info(pcmk__output_t *out, const char *format, ...) { out 231 lib/common/output_log.c CRM_ASSERT(out != NULL && out->priv != NULL); out 232 lib/common/output_log.c priv = out->priv; out 246 lib/common/output_log.c log_is_quiet(pcmk__output_t *out) { out 251 lib/common/output_log.c log_spacer(pcmk__output_t *out) { out 256 lib/common/output_log.c log_progress(pcmk__output_t *out, bool end) { out 303 lib/common/output_log.c pcmk__output_set_log_level(pcmk__output_t *out, int log_level) { out 306 lib/common/output_log.c CRM_ASSERT(out != NULL && out->priv != NULL); out 308 lib/common/output_log.c if (!pcmk__str_eq(out->fmt_name, "log", pcmk__str_none)) { out 312 lib/common/output_log.c priv = out->priv; out 22 lib/common/output_none.c none_free_priv(pcmk__output_t *out) { out 27 lib/common/output_none.c none_init(pcmk__output_t *out) { out 32 lib/common/output_none.c none_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 37 lib/common/output_none.c none_reset(pcmk__output_t *out) { out 38 lib/common/output_none.c CRM_ASSERT(out != NULL); out 39 lib/common/output_none.c none_free_priv(out); out 40 lib/common/output_none.c none_init(out); out 44 lib/common/output_none.c none_subprocess_output(pcmk__output_t *out, int exit_status, out 50 lib/common/output_none.c none_version(pcmk__output_t *out, bool extended) { out 56 lib/common/output_none.c none_err(pcmk__output_t *out, const char *format, ...) { out 62 lib/common/output_none.c none_info(pcmk__output_t *out, const char *format, ...) { out 67 lib/common/output_none.c none_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 73 lib/common/output_none.c none_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 80 lib/common/output_none.c none_list_item(pcmk__output_t *out, const char *id, const char *format, ...) { out 85 lib/common/output_none.c none_increment_list(pcmk__output_t *out) { out 90 lib/common/output_none.c none_end_list(pcmk__output_t *out) { out 95 lib/common/output_none.c none_is_quiet(pcmk__output_t *out) { out 96 lib/common/output_none.c return out->quiet; out 100 lib/common/output_none.c none_spacer(pcmk__output_t *out) { out 105 lib/common/output_none.c none_progress(pcmk__output_t *out, bool end) { out 38 lib/common/output_text.c text_free_priv(pcmk__output_t *out) { out 39 lib/common/output_text.c private_data_t *priv = out->priv; out 47 lib/common/output_text.c out->priv = NULL; out 51 lib/common/output_text.c text_init(pcmk__output_t *out) { out 55 lib/common/output_text.c if (out->priv != NULL) { out 58 lib/common/output_text.c out->priv = calloc(1, sizeof(private_data_t)); out 59 lib/common/output_text.c if (out->priv == NULL) { out 63 lib/common/output_text.c priv = out->priv; out 71 lib/common/output_text.c text_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 72 lib/common/output_text.c fflush(out->dest); out 76 lib/common/output_text.c text_reset(pcmk__output_t *out) { out 77 lib/common/output_text.c CRM_ASSERT(out != NULL); out 79 lib/common/output_text.c if (out->dest != stdout) { out 80 lib/common/output_text.c out->dest = freopen(NULL, "w", out->dest); out 83 lib/common/output_text.c CRM_ASSERT(out->dest != NULL); out 85 lib/common/output_text.c text_free_priv(out); out 86 lib/common/output_text.c text_init(out); out 90 lib/common/output_text.c text_subprocess_output(pcmk__output_t *out, int exit_status, out 92 lib/common/output_text.c CRM_ASSERT(out != NULL); out 95 lib/common/output_text.c fprintf(out->dest, "%s\n", proc_stdout); out 99 lib/common/output_text.c fprintf(out->dest, "%s\n", proc_stderr); out 104 lib/common/output_text.c text_version(pcmk__output_t *out, bool extended) { out 105 lib/common/output_text.c CRM_ASSERT(out != NULL); out 108 lib/common/output_text.c fprintf(out->dest, "Pacemaker %s (Build: %s): %s\n", PACEMAKER_VERSION, BUILD_VERSION, CRM_FEATURES); out 110 lib/common/output_text.c fprintf(out->dest, "Pacemaker %s\n", PACEMAKER_VERSION); out 111 lib/common/output_text.c fprintf(out->dest, "Written by Andrew Beekhof\n"); out 117 lib/common/output_text.c text_err(pcmk__output_t *out, const char *format, ...) { out 121 lib/common/output_text.c CRM_ASSERT(out != NULL); out 138 lib/common/output_text.c text_info(pcmk__output_t *out, const char *format, ...) { out 142 lib/common/output_text.c CRM_ASSERT(out != NULL); out 144 lib/common/output_text.c if (out->is_quiet(out)) { out 153 lib/common/output_text.c len = vfprintf(out->dest, format, ap); out 158 lib/common/output_text.c fprintf(out->dest, "\n"); out 163 lib/common/output_text.c text_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 164 lib/common/output_text.c CRM_ASSERT(out != NULL); out 165 lib/common/output_text.c pcmk__indented_printf(out, "%s", buf); out 170 lib/common/output_text.c text_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 176 lib/common/output_text.c CRM_ASSERT(out != NULL && out->priv != NULL); out 177 lib/common/output_text.c priv = out->priv; out 182 lib/common/output_text.c pcmk__indented_vprintf(out, format, ap); out 183 lib/common/output_text.c fprintf(out->dest, ":\n"); out 198 lib/common/output_text.c text_list_item(pcmk__output_t *out, const char *id, const char *format, ...) { out 201 lib/common/output_text.c CRM_ASSERT(out != NULL); out 211 lib/common/output_text.c pcmk__indented_printf(out, "%s: ", id); out 212 lib/common/output_text.c vfprintf(out->dest, format, ap); out 214 lib/common/output_text.c pcmk__indented_vprintf(out, format, ap); out 217 lib/common/output_text.c pcmk__indented_vprintf(out, format, ap); out 220 lib/common/output_text.c fputc('\n', out->dest); out 221 lib/common/output_text.c fflush(out->dest); out 224 lib/common/output_text.c out->increment_list(out); out 228 lib/common/output_text.c text_increment_list(pcmk__output_t *out) { out 232 lib/common/output_text.c CRM_ASSERT(out != NULL && out->priv != NULL); out 233 lib/common/output_text.c priv = out->priv; out 241 lib/common/output_text.c text_end_list(pcmk__output_t *out) { out 245 lib/common/output_text.c CRM_ASSERT(out != NULL && out->priv != NULL); out 246 lib/common/output_text.c priv = out->priv; out 252 lib/common/output_text.c pcmk__indented_printf(out, "%d %s found\n", node->len, node->singular_noun); out 254 lib/common/output_text.c pcmk__indented_printf(out, "%d %s found\n", node->len, node->plural_noun); out 262 lib/common/output_text.c text_is_quiet(pcmk__output_t *out) { out 263 lib/common/output_text.c CRM_ASSERT(out != NULL); out 264 lib/common/output_text.c return out->quiet; out 268 lib/common/output_text.c text_spacer(pcmk__output_t *out) { out 269 lib/common/output_text.c CRM_ASSERT(out != NULL); out 270 lib/common/output_text.c fprintf(out->dest, "\n"); out 274 lib/common/output_text.c text_progress(pcmk__output_t *out, bool end) { out 275 lib/common/output_text.c CRM_ASSERT(out != NULL); out 277 lib/common/output_text.c if (out->dest == stdout) { out 278 lib/common/output_text.c fprintf(out->dest, "."); out 281 lib/common/output_text.c fprintf(out->dest, "\n"); out 326 lib/common/output_text.c pcmk__formatted_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 329 lib/common/output_text.c CRM_ASSERT(out != NULL); out 331 lib/common/output_text.c len = vfprintf(out->dest, format, args); out 337 lib/common/output_text.c pcmk__formatted_printf(pcmk__output_t *out, const char *format, ...) { out 340 lib/common/output_text.c CRM_ASSERT(out != NULL); out 343 lib/common/output_text.c pcmk__formatted_vprintf(out, format, ap); out 349 lib/common/output_text.c pcmk__indented_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 350 lib/common/output_text.c CRM_ASSERT(out != NULL); out 352 lib/common/output_text.c if (!pcmk__str_eq(out->fmt_name, "text", pcmk__str_none)) { out 358 lib/common/output_text.c private_data_t *priv = out->priv; out 365 lib/common/output_text.c fprintf(out->dest, " "); out 369 lib/common/output_text.c fprintf(out->dest, "* "); out 373 lib/common/output_text.c pcmk__formatted_vprintf(out, format, args); out 378 lib/common/output_text.c pcmk__indented_printf(pcmk__output_t *out, const char *format, ...) { out 381 lib/common/output_text.c CRM_ASSERT(out != NULL); out 384 lib/common/output_text.c pcmk__indented_vprintf(out, format, ap); out 83 lib/common/output_xml.c xml_free_priv(pcmk__output_t *out) { out 84 lib/common/output_xml.c private_data_t *priv = out->priv; out 94 lib/common/output_xml.c out->priv = NULL; out 98 lib/common/output_xml.c xml_init(pcmk__output_t *out) { out 102 lib/common/output_xml.c if (out->priv != NULL) { out 105 lib/common/output_xml.c out->priv = calloc(1, sizeof(private_data_t)); out 106 lib/common/output_xml.c if (out->priv == NULL) { out 110 lib/common/output_xml.c priv = out->priv; out 120 lib/common/output_xml.c if (out->request != NULL) { out 121 lib/common/output_xml.c crm_xml_add(priv->root, "request", out->request); out 146 lib/common/output_xml.c xml_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 150 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 151 lib/common/output_xml.c priv = out->priv; out 189 lib/common/output_xml.c fprintf(out->dest, "%s", buf); out 190 lib/common/output_xml.c fflush(out->dest); out 200 lib/common/output_xml.c xml_reset(pcmk__output_t *out) { out 201 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 203 lib/common/output_xml.c out->dest = freopen(NULL, "w", out->dest); out 204 lib/common/output_xml.c CRM_ASSERT(out->dest != NULL); out 206 lib/common/output_xml.c xml_free_priv(out); out 207 lib/common/output_xml.c xml_init(out); out 211 lib/common/output_xml.c xml_subprocess_output(pcmk__output_t *out, int exit_status, out 216 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 220 lib/common/output_xml.c node = pcmk__output_xml_create_parent(out, "command", out 234 lib/common/output_xml.c pcmk__output_xml_add_node(out, node); out 239 lib/common/output_xml.c xml_version(pcmk__output_t *out, bool extended) { out 240 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 242 lib/common/output_xml.c pcmk__output_create_xml_node(out, "version", out 253 lib/common/output_xml.c xml_err(pcmk__output_t *out, const char *format, ...) { out 259 lib/common/output_xml.c CRM_ASSERT(out != NULL && out->priv != NULL); out 260 lib/common/output_xml.c priv = out->priv; out 272 lib/common/output_xml.c xml_info(pcmk__output_t *out, const char *format, ...) { out 277 lib/common/output_xml.c xml_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 281 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 283 lib/common/output_xml.c parent = pcmk__output_create_xml_node(out, name, NULL); out 290 lib/common/output_xml.c xml_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 297 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 318 lib/common/output_xml.c pcmk__output_xml_create_parent(out, name, NULL); out 320 lib/common/output_xml.c pcmk__output_xml_create_parent(out, "list", out 331 lib/common/output_xml.c xml_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { out 337 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 344 lib/common/output_xml.c item_node = pcmk__output_create_xml_text_node(out, "item", buf); out 354 lib/common/output_xml.c xml_increment_list(pcmk__output_t *out) { out 359 lib/common/output_xml.c xml_end_list(pcmk__output_t *out) { out 362 lib/common/output_xml.c CRM_ASSERT(out != NULL && out->priv != NULL); out 363 lib/common/output_xml.c priv = out->priv; out 379 lib/common/output_xml.c xml_is_quiet(pcmk__output_t *out) { out 384 lib/common/output_xml.c xml_spacer(pcmk__output_t *out) { out 389 lib/common/output_xml.c xml_progress(pcmk__output_t *out, bool end) { out 432 lib/common/output_xml.c pcmk__output_xml_create_parent(pcmk__output_t *out, const char *name, ...) { out 436 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 438 lib/common/output_xml.c node = pcmk__output_create_xml_node(out, name, NULL); out 444 lib/common/output_xml.c pcmk__output_xml_push_parent(out, node); out 449 lib/common/output_xml.c pcmk__output_xml_add_node(pcmk__output_t *out, xmlNodePtr node) { out 452 lib/common/output_xml.c CRM_ASSERT(out != NULL && out->priv != NULL); out 455 lib/common/output_xml.c if (!pcmk__str_any_of(out->fmt_name, "xml", "html", NULL)) { out 459 lib/common/output_xml.c priv = out->priv; out 465 lib/common/output_xml.c pcmk__output_create_xml_node(pcmk__output_t *out, const char *name, ...) { out 470 lib/common/output_xml.c CRM_ASSERT(out != NULL && out->priv != NULL); out 471 lib/common/output_xml.c CRM_ASSERT(pcmk__str_any_of(out->fmt_name, "xml", "html", NULL)); out 473 lib/common/output_xml.c priv = out->priv; out 484 lib/common/output_xml.c pcmk__output_create_xml_text_node(pcmk__output_t *out, const char *name, const char *content) { out 487 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 489 lib/common/output_xml.c node = pcmk__output_create_xml_node(out, name, NULL); out 495 lib/common/output_xml.c pcmk__output_xml_push_parent(pcmk__output_t *out, xmlNodePtr parent) { out 498 lib/common/output_xml.c CRM_ASSERT(out != NULL && out->priv != NULL); out 501 lib/common/output_xml.c if (!pcmk__str_any_of(out->fmt_name, "xml", "html", NULL)) { out 505 lib/common/output_xml.c priv = out->priv; out 511 lib/common/output_xml.c pcmk__output_xml_pop_parent(pcmk__output_t *out) { out 514 lib/common/output_xml.c CRM_ASSERT(out != NULL && out->priv != NULL); out 516 lib/common/output_xml.c if (!pcmk__str_any_of(out->fmt_name, "xml", "html", NULL)) { out 520 lib/common/output_xml.c priv = out->priv; out 527 lib/common/output_xml.c pcmk__output_xml_peek_parent(pcmk__output_t *out) { out 530 lib/common/output_xml.c CRM_ASSERT(out != NULL && out->priv != NULL); out 531 lib/common/output_xml.c CRM_ASSERT(pcmk__str_any_of(out->fmt_name, "xml", "html", NULL)); out 533 lib/common/output_xml.c priv = out->priv; out 905 lib/common/schemas.c xmlNode *out = NULL; out 944 lib/common/schemas.c out = string2xml((const char *) emergency_result); out 947 lib/common/schemas.c out = xmlDocGetRootElement(res); out 957 lib/common/schemas.c return out; out 35 lib/fencing/st_output.c stonith__failed_history(pcmk__output_t *out, va_list args) { out 52 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Fencing Actions"); out 53 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 54 lib/fencing/st_output.c out->increment_list(out); out 57 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 63 lib/fencing/st_output.c stonith__history(pcmk__output_t *out, va_list args) { out 77 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); out 78 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 79 lib/fencing/st_output.c out->increment_list(out); out 83 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 89 lib/fencing/st_output.c stonith__full_history(pcmk__output_t *out, va_list args) { out 103 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); out 104 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 105 lib/fencing/st_output.c out->increment_list(out); out 108 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 114 lib/fencing/st_output.c full_history_xml(pcmk__output_t *out, va_list args) { out 129 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Fencing History"); out 130 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 131 lib/fencing/st_output.c out->increment_list(out); out 134 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 138 lib/fencing/st_output.c pcmk__output_create_xml_node(out, "fence_history", out 151 lib/fencing/st_output.c last_fenced_html(pcmk__output_t *out, va_list args) { out 157 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); out 167 lib/fencing/st_output.c last_fenced_text(pcmk__output_t *out, va_list args) { out 172 lib/fencing/st_output.c pcmk__indented_printf(out, "Node %s last fenced at: %s", target, ctime(&when)); out 174 lib/fencing/st_output.c pcmk__indented_printf(out, "Node %s has never been fenced\n", target); out 182 lib/fencing/st_output.c last_fenced_xml(pcmk__output_t *out, va_list args) { out 189 lib/fencing/st_output.c pcmk__output_create_xml_node(out, "last-fenced", out 203 lib/fencing/st_output.c stonith__pending_actions(pcmk__output_t *out, va_list args) { out 221 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Pending Fencing Actions"); out 222 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 223 lib/fencing/st_output.c out->increment_list(out); out 226 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 232 lib/fencing/st_output.c stonith_event_html(pcmk__output_t *out, va_list args) { out 241 lib/fencing/st_output.c out->list_item(out, "successful-stonith-event", out 255 lib/fencing/st_output.c out->list_item(out, "failed-stonith-event", out 268 lib/fencing/st_output.c out->list_item(out, "pending-stonith-event", out 280 lib/fencing/st_output.c stonith_event_text(pcmk__output_t *out, va_list args) { out 289 lib/fencing/st_output.c pcmk__indented_printf(out, "%s of %s failed: delegate=%s, client=%s, origin=%s, %s='%s' %s\n", out 298 lib/fencing/st_output.c pcmk__indented_printf(out, "%s of %s successful: delegate=%s, client=%s, origin=%s, %s='%s'\n", out 306 lib/fencing/st_output.c pcmk__indented_printf(out, "%s of %s pending: client=%s, origin=%s\n", out 318 lib/fencing/st_output.c stonith_event_xml(pcmk__output_t *out, va_list args) { out 325 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "fence_event", out 366 lib/fencing/st_output.c validate_agent_html(pcmk__output_t *out, va_list args) { out 376 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); out 381 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); out 385 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); out 391 lib/fencing/st_output.c validate_agent_text(pcmk__output_t *out, va_list args) { out 399 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s on %s %s\n", agent, device, out 402 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s %s\n", agent, out 406 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); out 412 lib/fencing/st_output.c validate_agent_xml(pcmk__output_t *out, va_list args) { out 419 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "validate", out 428 lib/fencing/st_output.c pcmk__output_xml_push_parent(out, node); out 429 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); out 430 lib/fencing/st_output.c pcmk__output_xml_pop_parent(out); out 458 lib/fencing/st_output.c stonith__register_messages(pcmk__output_t *out) { out 459 lib/fencing/st_output.c pcmk__register_messages(out, fmt_functions); out 17 lib/lrmd/lrmd_output.c default_list(pcmk__output_t *out, lrmd_list_t *list, const char *title) { out 20 lib/lrmd/lrmd_output.c out->begin_list(out, NULL, NULL, "%s", title); out 23 lib/lrmd/lrmd_output.c out->list_item(out, NULL, "%s", iter->val); out 26 lib/lrmd/lrmd_output.c out->end_list(out); out 32 lib/lrmd/lrmd_output.c xml_list(pcmk__output_t *out, lrmd_list_t *list, const char *ele) { out 36 lib/lrmd/lrmd_output.c pcmk__output_create_xml_text_node(out, ele, iter->val); out 45 lib/lrmd/lrmd_output.c lrmd__alternatives_list_xml(pcmk__output_t *out, va_list args) { out 49 lib/lrmd/lrmd_output.c pcmk__output_xml_create_parent(out, "providers", out 52 lib/lrmd/lrmd_output.c return xml_list(out, list, "provider"); out 57 lib/lrmd/lrmd_output.c lrmd__alternatives_list(pcmk__output_t *out, va_list args) { out 61 lib/lrmd/lrmd_output.c return default_list(out, list, "Providers"); out 66 lib/lrmd/lrmd_output.c lrmd__agents_list_xml(pcmk__output_t *out, va_list args) { out 71 lib/lrmd/lrmd_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, "agents", out 79 lib/lrmd/lrmd_output.c return xml_list(out, list, "agent"); out 84 lib/lrmd/lrmd_output.c lrmd__agents_list(pcmk__output_t *out, va_list args) { out 92 lib/lrmd/lrmd_output.c rc = default_list(out, list, title); out 99 lib/lrmd/lrmd_output.c lrmd__providers_list_xml(pcmk__output_t *out, va_list args) { out 103 lib/lrmd/lrmd_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, "providers", out 111 lib/lrmd/lrmd_output.c return xml_list(out, list, "provider"); out 116 lib/lrmd/lrmd_output.c lrmd__providers_list(pcmk__output_t *out, va_list args) { out 120 lib/lrmd/lrmd_output.c return default_list(out, list, "Providers"); out 125 lib/lrmd/lrmd_output.c lrmd__standards_list(pcmk__output_t *out, va_list args) { out 128 lib/lrmd/lrmd_output.c return default_list(out, list, "Standards"); out 144 lib/lrmd/lrmd_output.c lrmd__register_messages(pcmk__output_t *out) { out 145 lib/lrmd/lrmd_output.c pcmk__register_messages(out, fmt_functions); out 33 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out; out 56 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = data->out; out 58 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: No reply received from controller before timeout (%dms)", out 91 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = data->out; out 97 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Lost connection to controller"); out 115 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Bad reply from controller: %s", out 123 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Unknown reply type %d from controller", out 139 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = data->out; out 144 lib/pacemaker/pcmk_cluster_queries.c out->message(out, "health", out 161 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = data->out; out 166 lib/pacemaker/pcmk_cluster_queries.c out->message(out, "dc", reply->host_from); out 179 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = data->out; out 188 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Lost connection to pacemakerd"); out 206 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Bad reply from pacemakerd: %s", out 213 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Unknown reply type %d from pacemakerd", out 226 lib/pacemaker/pcmk_cluster_queries.c out->message(out, "pacemakerd-health", out 243 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = data->out; out 249 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Could not connect to %s: %s", out 260 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Could not connect to %s: %s", out 271 lib/pacemaker/pcmk_cluster_queries.c pcmk__controller_status(pcmk__output_t *out, char *dest_node, guint message_timeout_ms) out 274 lib/pacemaker/pcmk_cluster_queries.c .out = out, out 285 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); out 300 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = NULL; out 303 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__out_prologue(&out, xml); out 308 lib/pacemaker/pcmk_cluster_queries.c pcmk__register_lib_messages(out); out 310 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__controller_status(out, dest_node, (guint) message_timeout_ms); out 311 lib/pacemaker/pcmk_cluster_queries.c pcmk__out_epilogue(out, xml, rc); out 316 lib/pacemaker/pcmk_cluster_queries.c pcmk__designated_controller(pcmk__output_t *out, guint message_timeout_ms) out 319 lib/pacemaker/pcmk_cluster_queries.c .out = out, out 330 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); out 345 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = NULL; out 348 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__out_prologue(&out, xml); out 353 lib/pacemaker/pcmk_cluster_queries.c pcmk__register_lib_messages(out); out 355 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__designated_controller(out, (guint) message_timeout_ms); out 356 lib/pacemaker/pcmk_cluster_queries.c pcmk__out_epilogue(out, xml, rc); out 361 lib/pacemaker/pcmk_cluster_queries.c pcmk__pacemakerd_status(pcmk__output_t *out, char *ipc_name, guint message_timeout_ms) out 364 lib/pacemaker/pcmk_cluster_queries.c .out = out, out 375 lib/pacemaker/pcmk_cluster_queries.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); out 390 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = NULL; out 393 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__out_prologue(&out, xml); out 398 lib/pacemaker/pcmk_cluster_queries.c pcmk__register_lib_messages(out); out 400 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__pacemakerd_status(out, ipc_name, (guint) message_timeout_ms); out 401 lib/pacemaker/pcmk_cluster_queries.c pcmk__out_epilogue(out, xml, rc); out 407 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out; out 418 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = data->out; out 423 lib/pacemaker/pcmk_cluster_queries.c out->message(out, "crmadmin-node", data->type, out 432 lib/pacemaker/pcmk_cluster_queries.c pcmk__list_nodes(pcmk__output_t *out, char *node_types, gboolean BASH_EXPORT) out 450 lib/pacemaker/pcmk_cluster_queries.c .out = out, out 455 lib/pacemaker/pcmk_cluster_queries.c out->begin_list(out, NULL, NULL, "nodes"); out 482 lib/pacemaker/pcmk_cluster_queries.c out->end_list(out); out 485 lib/pacemaker/pcmk_cluster_queries.c out->info(out, "No nodes configured"); out 497 lib/pacemaker/pcmk_cluster_queries.c pcmk__output_t *out = NULL; out 500 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__out_prologue(&out, xml); out 505 lib/pacemaker/pcmk_cluster_queries.c pcmk__register_lib_messages(out); out 507 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__list_nodes(out, node_types, FALSE); out 508 lib/pacemaker/pcmk_cluster_queries.c pcmk__out_epilogue(out, xml, rc); out 173 lib/pacemaker/pcmk_fence.c pcmk__fence_history(pcmk__output_t *out, stonith_t *st, char *target, out 181 lib/pacemaker/pcmk_fence.c out->info(out, "cleaning up fencing-history%s%s", out 185 lib/pacemaker/pcmk_fence.c out->info(out, "gather fencing-history from all nodes"); out 205 lib/pacemaker/pcmk_fence.c out->begin_list(out, "event", "events", "Fencing history"); out 213 lib/pacemaker/pcmk_fence.c if (out->is_quiet(out) || !verbose) { out 217 lib/pacemaker/pcmk_fence.c out->message(out, "stonith-event", hp, 1, stonith__later_succeeded(hp, history)); out 218 lib/pacemaker/pcmk_fence.c out->increment_list(out); out 222 lib/pacemaker/pcmk_fence.c if (out->is_quiet(out)) { out 223 lib/pacemaker/pcmk_fence.c pcmk__formatted_printf(out, "%lld\n", (long long) latest->completed); out 225 lib/pacemaker/pcmk_fence.c out->message(out, "stonith-event", latest, 0, FALSE); out 226 lib/pacemaker/pcmk_fence.c out->increment_list(out); out 230 lib/pacemaker/pcmk_fence.c out->end_list(out); out 240 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 243 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 248 lib/pacemaker/pcmk_fence.c stonith__register_messages(out); out 250 lib/pacemaker/pcmk_fence.c out->quiet = quiet; out 252 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_history(out, st, target, timeout, verbose, broadcast, cleanup); out 253 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 259 lib/pacemaker/pcmk_fence.c pcmk__fence_installed(pcmk__output_t *out, stonith_t *st, unsigned int timeout) { out 269 lib/pacemaker/pcmk_fence.c out->begin_list(out, "fence device", "fence devices", "Installed fence devices"); out 271 lib/pacemaker/pcmk_fence.c out->list_item(out, "device", "%s", dIter->value); out 273 lib/pacemaker/pcmk_fence.c out->end_list(out); out 282 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 285 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 290 lib/pacemaker/pcmk_fence.c stonith__register_messages(out); out 292 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_installed(out, st, timeout); out 293 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 299 lib/pacemaker/pcmk_fence.c pcmk__fence_last(pcmk__output_t *out, const char *target, bool as_nodeid) { out 312 lib/pacemaker/pcmk_fence.c return out->message(out, "last-fenced", target, when); out 318 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 321 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 326 lib/pacemaker/pcmk_fence.c stonith__register_messages(out); out 328 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_last(out, target, as_nodeid); out 329 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 335 lib/pacemaker/pcmk_fence.c pcmk__fence_list_targets(pcmk__output_t *out, stonith_t *st, out 348 lib/pacemaker/pcmk_fence.c out->begin_list(out, "fence target", "fence targets", "Fence Targets"); out 350 lib/pacemaker/pcmk_fence.c out->list_item(out, NULL, "%s", (const char *) targets->data); out 353 lib/pacemaker/pcmk_fence.c out->end_list(out); out 363 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 366 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 371 lib/pacemaker/pcmk_fence.c stonith__register_messages(out); out 373 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_list_targets(out, st, device_id, timeout); out 374 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 380 lib/pacemaker/pcmk_fence.c pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, out 390 lib/pacemaker/pcmk_fence.c out->output_xml(out, "metadata", buffer); out 399 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 402 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 407 lib/pacemaker/pcmk_fence.c stonith__register_messages(out); out 409 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); out 410 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 416 lib/pacemaker/pcmk_fence.c pcmk__fence_registered(pcmk__output_t *out, stonith_t *st, char *target, out 427 lib/pacemaker/pcmk_fence.c out->begin_list(out, "fence device", "fence devices", "Registered fence devices"); out 429 lib/pacemaker/pcmk_fence.c out->list_item(out, "device", "%s", dIter->value); out 431 lib/pacemaker/pcmk_fence.c out->end_list(out); out 445 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 448 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 453 lib/pacemaker/pcmk_fence.c stonith__register_messages(out); out 455 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_registered(out, st, target, timeout); out 456 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 488 lib/pacemaker/pcmk_fence.c pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, out 497 lib/pacemaker/pcmk_fence.c out->message(out, "validate", agent, id, output, error_output, rc); out 506 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 509 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 514 lib/pacemaker/pcmk_fence.c stonith__register_messages(out); out 516 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); out 517 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 40 lib/pacemaker/pcmk_output.c colocations_xml_node(pcmk__output_t *out, pe_resource_t *rsc, out 46 lib/pacemaker/pcmk_output.c node = pcmk__output_create_xml_node(out, XML_CONS_TAG_RSC_DEPEND, out 69 lib/pacemaker/pcmk_output.c do_locations_list_xml(pcmk__output_t *out, pe_resource_t *rsc, bool add_header) out 85 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "locations"); out 88 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, XML_CONS_TAG_RSC_LOCATION, out 99 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 109 lib/pacemaker/pcmk_output.c rsc_action_item(pcmk__output_t *out, va_list args) out 210 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%-8s %-*s ( %*s )%s%s", change, rsc_width, out 222 lib/pacemaker/pcmk_output.c rsc_action_item_xml(pcmk__output_t *out, va_list args) out 259 lib/pacemaker/pcmk_output.c xml = pcmk__output_create_xml_node(out, "rsc_action", out 351 lib/pacemaker/pcmk_output.c rsc_is_colocated_with_list(pcmk__output_t *out, va_list args) { out 366 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resources %s is colocated with", rsc->id); out 369 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s (id=%s - loop)", cons->rsc_rh->id, cons->id); out 374 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s", hdr); out 378 lib/pacemaker/pcmk_output.c out->begin_list(out, NULL, NULL, NULL); out 380 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->rsc_rh); out 382 lib/pacemaker/pcmk_output.c out->message(out, "rsc-is-colocated-with-list", cons->rsc_rh, recursive); out 385 lib/pacemaker/pcmk_output.c out->end_list(out); out 388 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 394 lib/pacemaker/pcmk_output.c rsc_is_colocated_with_list_xml(pcmk__output_t *out, va_list args) { out 409 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_rh, cons); out 413 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_rh, cons); out 414 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->rsc_rh, false); out 417 lib/pacemaker/pcmk_output.c out->message(out, "rsc-is-colocated-with-list", cons->rsc_rh, recursive); out 426 lib/pacemaker/pcmk_output.c rscs_colocated_with_list(pcmk__output_t *out, va_list args) { out 441 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resources colocated with %s", rsc->id); out 444 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s (id=%s - loop)", cons->rsc_lh->id, cons->id); out 449 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s", hdr); out 453 lib/pacemaker/pcmk_output.c out->begin_list(out, NULL, NULL, NULL); out 455 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->rsc_lh); out 457 lib/pacemaker/pcmk_output.c out->message(out, "rscs-colocated-with-list", cons->rsc_lh, recursive); out 460 lib/pacemaker/pcmk_output.c out->end_list(out); out 463 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 469 lib/pacemaker/pcmk_output.c rscs_colocated_with_list_xml(pcmk__output_t *out, va_list args) { out 484 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_lh, cons); out 488 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_lh, cons); out 489 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->rsc_lh, false); out 492 lib/pacemaker/pcmk_output.c out->message(out, "rscs-colocated-with-list", cons->rsc_lh, recursive); out 501 lib/pacemaker/pcmk_output.c locations_list(pcmk__output_t *out, va_list args) { out 517 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Locations"); out 518 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Node %s (score=%s, id=%s, rsc=%s)", out 524 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 530 lib/pacemaker/pcmk_output.c locations_list_xml(pcmk__output_t *out, va_list args) { out 532 lib/pacemaker/pcmk_output.c return do_locations_list_xml(out, rsc, true); out 537 lib/pacemaker/pcmk_output.c stacks_and_constraints(pcmk__output_t *out, va_list args) { out 550 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", rsc); out 553 lib/pacemaker/pcmk_output.c out->message(out, "rscs-colocated-with-list", rsc, recursive); out 556 lib/pacemaker/pcmk_output.c out->message(out, "rsc-is-colocated-with-list", rsc, recursive); out 562 lib/pacemaker/pcmk_output.c stacks_and_constraints_xml(pcmk__output_t *out, va_list args) { out 575 lib/pacemaker/pcmk_output.c pcmk__output_xml_create_parent(out, "constraints", NULL); out 576 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, rsc, false); out 579 lib/pacemaker/pcmk_output.c out->message(out, "rscs-colocated-with-list", rsc, recursive); out 582 lib/pacemaker/pcmk_output.c out->message(out, "rsc-is-colocated-with-list", rsc, recursive); out 584 lib/pacemaker/pcmk_output.c pcmk__output_xml_pop_parent(out); out 590 lib/pacemaker/pcmk_output.c health_text(pcmk__output_t *out, va_list args) out 597 lib/pacemaker/pcmk_output.c if (!out->is_quiet(out)) { out 598 lib/pacemaker/pcmk_output.c return out->info(out, "Controller on %s in state %s: %s", crm_str(host_from), out 601 lib/pacemaker/pcmk_output.c pcmk__formatted_printf(out, "%s\n", fsa_state); out 610 lib/pacemaker/pcmk_output.c health_xml(pcmk__output_t *out, va_list args) out 617 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, crm_str(sys_from), out 627 lib/pacemaker/pcmk_output.c pacemakerd_health_text(pcmk__output_t *out, va_list args) out 633 lib/pacemaker/pcmk_output.c if (!out->is_quiet(out)) { out 634 lib/pacemaker/pcmk_output.c return out->info(out, "Status of %s: '%s' %s %s", crm_str(sys_from), out 638 lib/pacemaker/pcmk_output.c pcmk__formatted_printf(out, "%s\n", crm_str(state)); out 647 lib/pacemaker/pcmk_output.c pacemakerd_health_xml(pcmk__output_t *out, va_list args) out 653 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, crm_str(sys_from), out 662 lib/pacemaker/pcmk_output.c dc_text(pcmk__output_t *out, va_list args) out 666 lib/pacemaker/pcmk_output.c if (!out->is_quiet(out)) { out 667 lib/pacemaker/pcmk_output.c return out->info(out, "Designated Controller is: %s", crm_str(dc)); out 669 lib/pacemaker/pcmk_output.c pcmk__formatted_printf(out, "%s\n", dc); out 678 lib/pacemaker/pcmk_output.c dc_xml(pcmk__output_t *out, va_list args) out 682 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, "dc", out 690 lib/pacemaker/pcmk_output.c crmadmin_node_text(pcmk__output_t *out, va_list args) out 697 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 698 lib/pacemaker/pcmk_output.c pcmk__formatted_printf(out, "%s\n", crm_str(name)); out 701 lib/pacemaker/pcmk_output.c return out->info(out, "export %s=%s", crm_str(name), crm_str(id)); out 703 lib/pacemaker/pcmk_output.c return out->info(out, "%s node: %s (%s)", type ? type : "cluster", out 710 lib/pacemaker/pcmk_output.c crmadmin_node_xml(pcmk__output_t *out, va_list args) out 716 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, "node", out 727 lib/pacemaker/pcmk_output.c digests_text(pcmk__output_t *out, va_list args) out 754 lib/pacemaker/pcmk_output.c out->begin_list(out, NULL, NULL, "Digests for %s %s on %s", out 759 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "none"); out 760 lib/pacemaker/pcmk_output.c out->end_list(out); out 764 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s (all parameters)", out 768 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s (non-private parameters)", out 772 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s (non-reloadable parameters)", out 775 lib/pacemaker/pcmk_output.c out->end_list(out); out 797 lib/pacemaker/pcmk_output.c digests_xml(pcmk__output_t *out, va_list args) out 808 lib/pacemaker/pcmk_output.c xml = pcmk__output_create_xml_node(out, "digests", out 843 lib/pacemaker/pcmk_output.c rsc_action_default(pcmk__output_t *out, va_list args) out 913 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Migrate", rsc, current, out 917 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Reload", rsc, current, out 924 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Re-promote", rsc, out 932 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Stop", rsc, current, out 937 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", pcmk_is_set(rsc->flags, pe_rsc_failed)? "Recover" : "Move", out 941 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Recover", rsc, current, out 946 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Restart", rsc, current, out 976 lib/pacemaker/pcmk_output.c if (out->message(out, "rsc-action-item", "Stop", rsc, node, NULL, out 987 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Recover", rsc, current, out 992 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Move", rsc, current, next, out 997 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Reload", rsc, current, next, out 1001 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Restart", rsc, current, out 1007 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Demote", rsc, current, out 1012 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Promote", rsc, current, out 1016 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Start", rsc, current, next, out 1025 lib/pacemaker/pcmk_output.c node_action(pcmk__output_t *out, va_list args) out 1034 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s %s '%s'", task, node_name, reason); out 1044 lib/pacemaker/pcmk_output.c node_action_xml(pcmk__output_t *out, va_list args) out 1053 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, "node_action", out 1067 lib/pacemaker/pcmk_output.c inject_cluster_action(pcmk__output_t *out, va_list args) out 1073 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1078 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s for %s on %s", task, ID(rsc), node); out 1080 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s on %s", task, node); out 1088 lib/pacemaker/pcmk_output.c inject_cluster_action_xml(pcmk__output_t *out, va_list args) out 1096 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1100 lib/pacemaker/pcmk_output.c xml_node = pcmk__output_create_xml_node(out, "cluster_action", out 1114 lib/pacemaker/pcmk_output.c inject_fencing_action(pcmk__output_t *out, va_list args) out 1119 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1123 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Fencing %s (%s)", target, op); out 1129 lib/pacemaker/pcmk_output.c inject_fencing_action_xml(pcmk__output_t *out, va_list args) out 1134 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1138 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, "fencing_action", out 1147 lib/pacemaker/pcmk_output.c inject_attr(pcmk__output_t *out, va_list args) out 1155 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1161 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Injecting attribute %s=%s into %s '%s'", out 1170 lib/pacemaker/pcmk_output.c inject_attr_xml(pcmk__output_t *out, va_list args) out 1178 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1184 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, "inject_attr", out 1196 lib/pacemaker/pcmk_output.c inject_spec(pcmk__output_t *out, va_list args) out 1200 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1204 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Injecting %s into the configuration", spec); out 1210 lib/pacemaker/pcmk_output.c inject_spec_xml(pcmk__output_t *out, va_list args) out 1214 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1218 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, "inject_spec", out 1226 lib/pacemaker/pcmk_output.c inject_modify_config(pcmk__output_t *out, va_list args) out 1231 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1235 lib/pacemaker/pcmk_output.c out->begin_list(out, NULL, NULL, "Performing Requested Modifications"); out 1238 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Setting quorum: %s", quorum); out 1242 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Setting watchdog: %s", watchdog); out 1250 lib/pacemaker/pcmk_output.c inject_modify_config_xml(pcmk__output_t *out, va_list args) out 1257 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1261 lib/pacemaker/pcmk_output.c node = pcmk__output_xml_create_parent(out, "modifications", NULL); out 1276 lib/pacemaker/pcmk_output.c inject_modify_node(pcmk__output_t *out, va_list args) out 1281 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1286 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Bringing node %s online", node); out 1289 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Taking node %s offline", node); out 1292 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Failing node %s", node); out 1301 lib/pacemaker/pcmk_output.c inject_modify_node_xml(pcmk__output_t *out, va_list args) out 1306 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1310 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, "modify_node", out 1319 lib/pacemaker/pcmk_output.c inject_modify_ticket(pcmk__output_t *out, va_list args) out 1324 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1329 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Making ticket %s standby", ticket); out 1331 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s ticket %s", action, ticket); out 1339 lib/pacemaker/pcmk_output.c inject_modify_ticket_xml(pcmk__output_t *out, va_list args) out 1344 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1348 lib/pacemaker/pcmk_output.c pcmk__output_create_xml_node(out, "modify_ticket", out 1357 lib/pacemaker/pcmk_output.c inject_pseudo_action(pcmk__output_t *out, va_list args) out 1362 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1366 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Pseudo action: %s%s%s", task, node ? " on " : "", out 1373 lib/pacemaker/pcmk_output.c inject_pseudo_action_xml(pcmk__output_t *out, va_list args) out 1380 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1384 lib/pacemaker/pcmk_output.c xml_node = pcmk__output_create_xml_node(out, "pseudo_action", out 1396 lib/pacemaker/pcmk_output.c inject_rsc_action(pcmk__output_t *out, va_list args) out 1403 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1408 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Resource action: %-15s %s=%u on %s", out 1411 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Resource action: %-15s %s on %s", out 1420 lib/pacemaker/pcmk_output.c inject_rsc_action_xml(pcmk__output_t *out, va_list args) out 1429 lib/pacemaker/pcmk_output.c if (out->is_quiet(out)) { out 1433 lib/pacemaker/pcmk_output.c xml_node = pcmk__output_create_xml_node(out, "rsc_action", out 1496 lib/pacemaker/pcmk_output.c pcmk__register_lib_messages(pcmk__output_t *out) { out 1497 lib/pacemaker/pcmk_output.c pcmk__register_messages(out, fmt_functions); out 22 lib/pacemaker/pcmk_output_utils.c pcmk__out_prologue(pcmk__output_t **out, xmlNodePtr *xml) { out 30 lib/pacemaker/pcmk_output_utils.c rc = pcmk__output_new(out, "xml", NULL, NULL); out 39 lib/pacemaker/pcmk_output_utils.c pcmk__out_epilogue(pcmk__output_t *out, xmlNodePtr *xml, int retval) { out 41 lib/pacemaker/pcmk_output_utils.c out->finish(out, 0, FALSE, (void **) xml); out 44 lib/pacemaker/pcmk_output_utils.c pcmk__output_free(out); out 84 lib/pacemaker/pcmk_resource.c pcmk__resource_digests(pcmk__output_t *out, pe_resource_t *rsc, out 94 lib/pacemaker/pcmk_resource.c if ((out == NULL) || (rsc == NULL) || (node == NULL) || (data_set == NULL)) { out 118 lib/pacemaker/pcmk_resource.c rc = out->message(out, "digests", rsc, node, task, interval_ms, digests); out 129 lib/pacemaker/pcmk_resource.c pcmk__output_t *out = NULL; out 132 lib/pacemaker/pcmk_resource.c rc = pcmk__out_prologue(&out, xml); out 136 lib/pacemaker/pcmk_resource.c pcmk__register_lib_messages(out); out 137 lib/pacemaker/pcmk_resource.c rc = pcmk__resource_digests(out, rsc, node, overrides, data_set); out 138 lib/pacemaker/pcmk_resource.c pcmk__out_epilogue(out, xml, rc); out 286 lib/pacemaker/pcmk_sched_allocate.c pcmk__output_t *out = data_set->priv; out 287 lib/pacemaker/pcmk_sched_allocate.c out->info(out, "Only 'private' parameters to " out 1385 lib/pacemaker/pcmk_sched_allocate.c pcmk__output_t *out = data_set->priv; out 1403 lib/pacemaker/pcmk_sched_allocate.c out->message(out, "node-capacity", node, "Original"); out 1417 lib/pacemaker/pcmk_sched_allocate.c out->message(out, "node-capacity", node, "Remaining"); out 2814 lib/pacemaker/pcmk_sched_allocate.c pcmk__output_t *out = NULL; out 2884 lib/pacemaker/pcmk_sched_allocate.c out = pcmk__new_logger(); out 2885 lib/pacemaker/pcmk_sched_allocate.c if (out == NULL) { out 2889 lib/pacemaker/pcmk_sched_allocate.c pcmk__output_set_log_level(out, LOG_NOTICE); out 2890 lib/pacemaker/pcmk_sched_allocate.c data_set->priv = out; out 2892 lib/pacemaker/pcmk_sched_allocate.c out->begin_list(out, NULL, NULL, "Actions"); out 2901 lib/pacemaker/pcmk_sched_allocate.c out->end_list(out); out 2902 lib/pacemaker/pcmk_sched_allocate.c out->finish(out, CRM_EX_OK, true, NULL); out 2903 lib/pacemaker/pcmk_sched_allocate.c pcmk__output_free(out); out 3060 lib/pacemaker/pcmk_sched_allocate.c pcmk__output_t *out = data_set->priv; out 3088 lib/pacemaker/pcmk_sched_allocate.c out->message(out, "node-action", task, node_name, action->reason); out 188 lib/pacemaker/pcmk_sched_clone.c goto out; out 194 lib/pacemaker/pcmk_sched_clone.c goto out; out 201 lib/pacemaker/pcmk_sched_clone.c goto out; out 241 lib/pacemaker/pcmk_sched_clone.c out: out 30 lib/pacemaker/pcmk_sched_messages.c pcmk__output_t *out = data_set->priv; out 46 lib/pacemaker/pcmk_sched_messages.c out->message(out, crm_map_element_name(rsc->xml), 0, rsc, all, all); out 2384 lib/pacemaker/pcmk_sched_native.c pcmk__output_t *out = data_set->priv; out 2424 lib/pacemaker/pcmk_sched_native.c out->message(out, "rsc-action", rsc, current, next, moving); out 762 lib/pacemaker/pcmk_sched_promotable.c pcmk__output_t *out = data_set->priv; out 763 lib/pacemaker/pcmk_sched_promotable.c out->message(out, "promotion-score", child_rsc, chosen, score); out 30 lib/pacemaker/pcmk_sched_transition.c static pcmk__output_t *out = NULL; out 50 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-attr", name, value, cib_node); out 266 lib/pacemaker/pcmk_sched_transition.c out->err(out, "Resource %s not found in the status section of %s." out 273 lib/pacemaker/pcmk_sched_transition.c out->err(out, "Invalid class for %s: %s", resource, rclass); out 278 lib/pacemaker/pcmk_sched_transition.c out->err(out, "Please specify the provider for resource %s", resource); out 343 lib/pacemaker/pcmk_sched_transition.c out->err(out, "Multiple ticket_states match ticket_id=%s", ticket_id); out 406 lib/pacemaker/pcmk_sched_transition.c out = data_set->priv; out 408 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-config", quorum, watchdog); out 431 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-node", "Online", node); out 446 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-node", "Offline", node); out 470 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-node", "Failing", node); out 485 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-ticket", "Granting", ticket_id); out 496 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-ticket", "Revoking", ticket_id); out 507 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-ticket", "Standby", ticket_id); out 518 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-ticket", "Activating", ticket_id); out 544 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-spec", spec); out 550 lib/pacemaker/pcmk_sched_transition.c out->err(out, "Invalid operation spec: %s. Only found %d fields", spec, rc); out 560 lib/pacemaker/pcmk_sched_transition.c out->err(out, "Invalid resource name: %s", resource); out 591 lib/pacemaker/pcmk_sched_transition.c if (!out->is_quiet(out)) { out 592 lib/pacemaker/pcmk_sched_transition.c out->end_list(out); out 603 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-pseudo-action", node, task); out 660 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-rsc-action", resource, operation, node, (guint) 0); out 687 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-rsc-action", resource, op->op_type, node, op->interval_ms); out 717 lib/pacemaker/pcmk_sched_transition.c out->err(out, out 724 lib/pacemaker/pcmk_sched_transition.c out->info(out, "Pretending action %d failed with rc=%d", action->id, op->rc); out 754 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-cluster-action", node, task, rsc); out 765 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-fencing-action", target, op); out 810 lib/pacemaker/pcmk_sched_transition.c out = data_set->priv; out 815 lib/pacemaker/pcmk_sched_transition.c if (!out->is_quiet(out)) { out 816 lib/pacemaker/pcmk_sched_transition.c out->begin_list(out, NULL, NULL, "Executing Cluster Transition"); out 831 lib/pacemaker/pcmk_sched_transition.c out->err(out, "Transition failed: %s", transition_status(graph_rc)); out 836 lib/pacemaker/pcmk_sched_transition.c out->err(out, "An invalid transition was produced"); out 839 lib/pacemaker/pcmk_sched_transition.c if (!out->is_quiet(out)) { out 847 lib/pacemaker/pcmk_sched_transition.c out->end_list(out); out 273 lib/pacemaker/pcmk_sched_utils.c pcmk__output_t *out = rsc->cluster->priv; out 350 lib/pacemaker/pcmk_sched_utils.c out->message(out, "resource-util", rsc, chosen, __func__); out 774 lib/pacemaker/pcmk_sched_utils.c pcmk__output_t *out = NULL; out 782 lib/pacemaker/pcmk_sched_utils.c rc = pcmk__output_new(&out, "log", NULL, (char**)argv); out 783 lib/pacemaker/pcmk_sched_utils.c if ((rc != pcmk_rc_ok) || (out == NULL)) { out 789 lib/pacemaker/pcmk_sched_utils.c pe__register_messages(out); out 790 lib/pacemaker/pcmk_sched_utils.c pcmk__register_lib_messages(out); out 791 lib/pacemaker/pcmk_sched_utils.c return out; out 1474 lib/pengine/bundle.c pe__bundle_xml(pcmk__output_t *out, va_list args) out 1523 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, "bundle", 6, out 1533 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, "replica", 1, "id", id); out 1538 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), options, out 1543 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), options, out 1548 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), options, out 1553 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), options, out 1557 lib/pengine/bundle.c pcmk__output_xml_pop_parent(out); // replica out 1561 lib/pengine/bundle.c pcmk__output_xml_pop_parent(out); // bundle out 1568 lib/pengine/bundle.c pe__bundle_replica_output_html(pcmk__output_t *out, pe__bundle_replica_t *replica, out 1592 lib/pengine/bundle.c pe__common_output_html(out, rsc, buffer, node, options); out 1597 lib/pengine/bundle.c pe__bundle_html(pcmk__output_t *out, va_list args) out 1650 lib/pengine/bundle.c pcmk__output_create_xml_node(out, "br", NULL); out 1653 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", out 1659 lib/pengine/bundle.c pcmk__output_xml_create_parent(out, "li", NULL); out 1663 lib/pengine/bundle.c xmlNodeSetContent(pcmk__output_xml_peek_parent(out), (pcmkXmlStr) buffer); out 1665 lib/pengine/bundle.c pcmk__output_create_xml_node(out, "br", NULL); out 1666 lib/pengine/bundle.c out->begin_list(out, NULL, NULL, NULL); out 1669 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), out 1674 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), out 1679 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), out 1684 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), out 1688 lib/pengine/bundle.c out->end_list(out); out 1692 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", out 1698 lib/pengine/bundle.c pe__bundle_replica_output_html(out, replica, pe__current_node(replica->container), out 1702 lib/pengine/bundle.c pcmk__output_xml_pop_parent(out); out 1705 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 1710 lib/pengine/bundle.c pe__bundle_replica_output_text(pcmk__output_t *out, pe__bundle_replica_t *replica, out 1734 lib/pengine/bundle.c pe__common_output_text(out, rsc, buffer, node, options); out 1739 lib/pengine/bundle.c pe__bundle_text(pcmk__output_t *out, va_list args) out 1789 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", out 1796 lib/pengine/bundle.c out->list_item(out, NULL, "Replica[%d]", replica->offset); out 1799 lib/pengine/bundle.c out->begin_list(out, NULL, NULL, NULL); out 1802 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), out 1807 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), out 1812 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), out 1817 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), out 1821 lib/pengine/bundle.c out->end_list(out); out 1825 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", out 1831 lib/pengine/bundle.c pe__bundle_replica_output_text(out, replica, pe__current_node(replica->container), out 1836 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 610 lib/pengine/clone.c pe__clone_xml(pcmk__output_t *out, va_list args) out 643 lib/pengine/clone.c rc = pe__name_and_nvpairs_xml(out, true, "clone", 8, out 655 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 660 lib/pengine/clone.c pcmk__output_xml_pop_parent(out); out 668 lib/pengine/clone.c pe__clone_html(pcmk__output_t *out, va_list args) out 698 lib/pengine/clone.c out->begin_list(out, NULL, NULL, "Clone Set: %s [%s]%s%s%s%s", out 786 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 794 lib/pengine/clone.c out->end_list(out); out 812 lib/pengine/clone.c out->list_item(out, NULL, PROMOTED_INSTANCES ": [ %s ]", list_text); out 837 lib/pengine/clone.c out->list_item(out, NULL, out 841 lib/pengine/clone.c out->list_item(out, NULL, UNPROMOTED_INSTANCES ": [ %s ]", out 846 lib/pengine/clone.c out->list_item(out, NULL, "Started: [ %s ]", list_text); out 895 lib/pengine/clone.c out->list_item(out, NULL, "%s: [ %s ]", state, stopped_list); out 901 lib/pengine/clone.c out->end_list(out); out 908 lib/pengine/clone.c pe__clone_text(pcmk__output_t *out, va_list args) out 938 lib/pengine/clone.c out->begin_list(out, NULL, NULL, "Clone Set: %s [%s]%s%s%s%s", out 1026 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 1034 lib/pengine/clone.c out->end_list(out); out 1052 lib/pengine/clone.c out->list_item(out, PROMOTED_INSTANCES, "[ %s ]", list_text); out 1077 lib/pengine/clone.c out->list_item(out, UNPROMOTED_INSTANCES " (target-role)", out 1080 lib/pengine/clone.c out->list_item(out, UNPROMOTED_INSTANCES, "[ %s ]", list_text); out 1083 lib/pengine/clone.c out->list_item(out, "Started", "[ %s ]", list_text); out 1131 lib/pengine/clone.c out->list_item(out, state, "[ %s ]", stopped_list); out 1136 lib/pengine/clone.c out->end_list(out); out 185 lib/pengine/group.c pe__group_xml(pcmk__output_t *out, va_list args) out 214 lib/pengine/group.c rc = pe__name_and_nvpairs_xml(out, true, "group", 4 out 223 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), options, child_rsc, out 228 lib/pengine/group.c pcmk__output_xml_pop_parent(out); out 236 lib/pengine/group.c pe__group_html(pcmk__output_t *out, va_list args) out 257 lib/pengine/group.c out->begin_list(out, NULL, NULL, "Resource Group: %s%s%s", rsc->id, out 261 lib/pengine/group.c pe__rscs_brief_output(out, rscs, options, TRUE); out 275 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resource Group: %s%s%s", rsc->id, out 279 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 284 lib/pengine/group.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 291 lib/pengine/group.c pe__group_text(pcmk__output_t *out, va_list args) out 312 lib/pengine/group.c out->begin_list(out, NULL, NULL, "Resource Group: %s%s%s", rsc->id, out 316 lib/pengine/group.c pe__rscs_brief_output(out, rscs, options, TRUE); out 330 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resource Group: %s%s%s", rsc->id, out 334 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 339 lib/pengine/group.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 676 lib/pengine/native.c pe__common_output_html(pcmk__output_t *out, pe_resource_t * rsc, out 723 lib/pengine/native.c list_node = pcmk__output_create_html_node(out, "li", NULL, NULL, NULL); out 732 lib/pengine/native.c pe__common_output_text(pcmk__output_t *out, pe_resource_t * rsc, out 755 lib/pengine/native.c out->list_item(out, NULL, "%s", s); out 900 lib/pengine/native.c pe__resource_xml(pcmk__output_t *out, va_list args) out 937 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, true, "resource", 12, out 961 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, false, "node", 3, out 969 lib/pengine/native.c pcmk__output_xml_pop_parent(out); out 975 lib/pengine/native.c pe__resource_html(pcmk__output_t *out, va_list args) out 994 lib/pengine/native.c return pe__common_output_html(out, rsc, rsc_printable_id(rsc), node, options); out 999 lib/pengine/native.c pe__resource_text(pcmk__output_t *out, va_list args) out 1018 lib/pengine/native.c return pe__common_output_text(out, rsc, rsc_printable_id(rsc), node, options); out 1262 lib/pengine/native.c pe__rscs_brief_output(pcmk__output_t *out, GList *rsc_list, long options, gboolean print_all) out 1302 lib/pengine/native.c out->list_item(out, NULL, "%d/%d\t(%s):\tActive %s", out 1307 lib/pengine/native.c out->list_item(out, NULL, "%d\t(%s):\tActive %s", out 1316 lib/pengine/native.c out->list_item(out, NULL, "%d/%d\t(%s):\tActive", out 549 lib/pengine/pe_digest.c pcmk__output_t *out = data_set->priv; out 550 lib/pengine/pe_digest.c out->info(out, "Only 'private' parameters to %s " out 561 lib/pengine/pe_digest.c pcmk__output_t *out = data_set->priv; out 565 lib/pengine/pe_digest.c out->info(out, "Parameters to %s for unfencing " out 364 lib/pengine/pe_output.c pe__cluster_summary(pcmk__output_t *out, va_list args) { out 377 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 378 lib/pengine/pe_output.c out->message(out, "cluster-stack", stack_s); out 391 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 392 lib/pengine/pe_output.c out->message(out, "cluster-dc", data_set->dc_node, quorum, dc_version_s, dc_name); out 402 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 403 lib/pengine/pe_output.c out->message(out, "cluster-times", last_written, user, client, origin); out 407 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 408 lib/pengine/pe_output.c out->message(out, "cluster-counts", g_list_length(data_set->nodes), out 414 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 415 lib/pengine/pe_output.c out->message(out, "cluster-options", data_set); out 418 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 420 lib/pengine/pe_output.c if (out->message(out, "maint-mode", data_set->flags) == pcmk_rc_ok) { out 430 lib/pengine/pe_output.c cluster_summary_html(pcmk__output_t *out, va_list args) { out 443 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 444 lib/pengine/pe_output.c out->message(out, "cluster-stack", stack_s); out 457 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 458 lib/pengine/pe_output.c out->message(out, "cluster-dc", data_set->dc_node, quorum, dc_version_s, dc_name); out 468 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 469 lib/pengine/pe_output.c out->message(out, "cluster-times", last_written, user, client, origin); out 473 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 474 lib/pengine/pe_output.c out->message(out, "cluster-counts", g_list_length(data_set->nodes), out 484 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 486 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Config Options"); out 487 lib/pengine/pe_output.c out->message(out, "cluster-options", data_set); out 490 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 492 lib/pengine/pe_output.c if (out->message(out, "maint-mode", data_set->flags) == pcmk_rc_ok) { out 552 lib/pengine/pe_output.c pe__name_and_nvpairs_xml(pcmk__output_t *out, bool is_list, const char *tag_name out 560 lib/pengine/pe_output.c xml_node = pcmk__output_xml_peek_parent(out); out 577 lib/pengine/pe_output.c pcmk__output_xml_push_parent(out, xml_node); out 597 lib/pengine/pe_output.c ban_html(pcmk__output_t *out, va_list args) { out 607 lib/pengine/pe_output.c pcmk__output_create_html_node(out, "li", NULL, NULL, buf); out 616 lib/pengine/pe_output.c pe__ban_text(pcmk__output_t *out, va_list args) { out 622 lib/pengine/pe_output.c out->list_item(out, NULL, "%s\tprevents %s from running %son %s", out 632 lib/pengine/pe_output.c ban_xml(pcmk__output_t *out, va_list args) { out 640 lib/pengine/pe_output.c pcmk__output_create_xml_node(out, "ban", out 662 lib/pengine/pe_output.c ban_list(pcmk__output_t *out, va_list args) { out 689 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Negative Location Constraints"); out 690 lib/pengine/pe_output.c out->message(out, "ban", node, location, print_clone_detail); out 695 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 701 lib/pengine/pe_output.c cluster_counts_html(pcmk__output_t *out, va_list args) { out 707 lib/pengine/pe_output.c xmlNodePtr nodes_node = pcmk__output_create_xml_node(out, "li", NULL); out 708 lib/pengine/pe_output.c xmlNodePtr resources_node = pcmk__output_create_xml_node(out, "li", NULL); out 763 lib/pengine/pe_output.c pe__cluster_counts_text(pcmk__output_t *out, va_list args) { out 769 lib/pengine/pe_output.c out->list_item(out, NULL, "%d node%s configured", out 773 lib/pengine/pe_output.c out->list_item(out, NULL, "%d resource instance%s configured " out 779 lib/pengine/pe_output.c out->list_item(out, NULL, "%d resource instance%s configured " out 783 lib/pengine/pe_output.c out->list_item(out, NULL, "%d resource instance%s configured " out 788 lib/pengine/pe_output.c out->list_item(out, NULL, "%d resource instance%s configured", out 797 lib/pengine/pe_output.c cluster_counts_xml(pcmk__output_t *out, va_list args) { out 803 lib/pengine/pe_output.c xmlNodePtr nodes_node = pcmk__output_create_xml_node(out, "nodes_configured", NULL); out 804 lib/pengine/pe_output.c xmlNodePtr resources_node = pcmk__output_create_xml_node(out, "resources_configured", NULL); out 827 lib/pengine/pe_output.c cluster_dc_html(pcmk__output_t *out, va_list args) { out 833 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); out 861 lib/pengine/pe_output.c pe__cluster_dc_text(pcmk__output_t *out, va_list args) { out 868 lib/pengine/pe_output.c out->list_item(out, "Current DC", "%s (version %s) - partition %s quorum", out 872 lib/pengine/pe_output.c out->list_item(out, "Current DC", "NONE"); out 880 lib/pengine/pe_output.c cluster_dc_xml(pcmk__output_t *out, va_list args) { out 887 lib/pengine/pe_output.c pcmk__output_create_xml_node(out, "current_dc", out 895 lib/pengine/pe_output.c pcmk__output_create_xml_node(out, "current_dc", out 905 lib/pengine/pe_output.c pe__cluster_maint_mode_text(pcmk__output_t *out, va_list args) { out 909 lib/pengine/pe_output.c pcmk__formatted_printf(out, "\n *** Resource management is DISABLED ***\n"); out 910 lib/pengine/pe_output.c pcmk__formatted_printf(out, " The cluster will not attempt to start, stop or recover services\n"); out 913 lib/pengine/pe_output.c pcmk__formatted_printf(out, "\n *** Resource management is DISABLED ***\n"); out 914 lib/pengine/pe_output.c pcmk__formatted_printf(out, " The cluster will keep all resources stopped\n"); out 923 lib/pengine/pe_output.c cluster_options_html(pcmk__output_t *out, va_list args) { out 926 lib/pengine/pe_output.c out->list_item(out, NULL, "STONITH of failed nodes %s", out 929 lib/pengine/pe_output.c out->list_item(out, NULL, "Cluster is %s", out 934 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Freeze resources"); out 938 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Stop ALL resources"); out 942 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Demote promotable " out 947 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Ignore"); out 951 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Suicide"); out 956 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); out 963 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); out 970 lib/pengine/pe_output.c out->list_item(out, NULL, "Resource management: enabled"); out 978 lib/pengine/pe_output.c cluster_options_log(pcmk__output_t *out, va_list args) { out 982 lib/pengine/pe_output.c return out->info(out, "Resource management is DISABLED. The cluster will not attempt to start, stop or recover services."); out 984 lib/pengine/pe_output.c return out->info(out, "Resource management is DISABLED. The cluster has stopped all resources."); out 992 lib/pengine/pe_output.c pe__cluster_options_text(pcmk__output_t *out, va_list args) { out 995 lib/pengine/pe_output.c out->list_item(out, NULL, "STONITH of failed nodes %s", out 998 lib/pengine/pe_output.c out->list_item(out, NULL, "Cluster is %s", out 1003 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Freeze resources"); out 1007 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Stop ALL resources"); out 1011 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Demote promotable " out 1016 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Ignore"); out 1020 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Suicide"); out 1029 lib/pengine/pe_output.c cluster_options_xml(pcmk__output_t *out, va_list args) { out 1056 lib/pengine/pe_output.c pcmk__output_create_xml_node(out, "cluster_options", out 1068 lib/pengine/pe_output.c cluster_stack_html(pcmk__output_t *out, va_list args) { out 1071 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); out 1081 lib/pengine/pe_output.c pe__cluster_stack_text(pcmk__output_t *out, va_list args) { out 1084 lib/pengine/pe_output.c out->list_item(out, "Stack", "%s", stack_s); out 1090 lib/pengine/pe_output.c cluster_stack_xml(pcmk__output_t *out, va_list args) { out 1093 lib/pengine/pe_output.c pcmk__output_create_xml_node(out, "stack", out 1102 lib/pengine/pe_output.c cluster_times_html(pcmk__output_t *out, va_list args) { out 1108 lib/pengine/pe_output.c xmlNodePtr updated_node = pcmk__output_create_xml_node(out, "li", NULL); out 1109 lib/pengine/pe_output.c xmlNodePtr changed_node = pcmk__output_create_xml_node(out, "li", NULL); out 1126 lib/pengine/pe_output.c cluster_times_xml(pcmk__output_t *out, va_list args) { out 1132 lib/pengine/pe_output.c pcmk__output_create_xml_node(out, "last_update", out 1135 lib/pengine/pe_output.c pcmk__output_create_xml_node(out, "last_change", out 1147 lib/pengine/pe_output.c pe__cluster_times_text(pcmk__output_t *out, va_list args) { out 1155 lib/pengine/pe_output.c out->list_item(out, "Last updated", "%s", pcmk__epoch2str(NULL)); out 1156 lib/pengine/pe_output.c out->list_item(out, "Last change", " %s", buf); out 1164 lib/pengine/pe_output.c pe__failed_action_text(pcmk__output_t *out, va_list args) { out 1169 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", s); out 1176 lib/pengine/pe_output.c failed_action_xml(pcmk__output_t *out, va_list args) { out 1194 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, "failure", out 1238 lib/pengine/pe_output.c failed_action_list(pcmk__output_t *out, va_list args) { out 1273 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Resource Actions"); out 1274 lib/pengine/pe_output.c out->message(out, "failed-action", xml_op); out 1277 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 1284 lib/pengine/pe_output.c pe__node_html(pcmk__output_t *out, va_list args) { out 1299 lib/pengine/pe_output.c xmlNodePtr item_node = pcmk__output_create_xml_node(out, "li", NULL); out 1324 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, NULL); out 1325 lib/pengine/pe_output.c pe__rscs_brief_output(out, rscs, print_opts | pe_print_rsconly, FALSE); out 1326 lib/pengine/pe_output.c out->end_list(out); out 1332 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, NULL); out 1335 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), print_opts | pe_print_rsconly, out 1338 lib/pengine/pe_output.c out->end_list(out); out 1341 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); out 1352 lib/pengine/pe_output.c pe__node_text(pcmk__output_t *out, va_list args) { out 1382 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); out 1383 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Resources"); out 1385 lib/pengine/pe_output.c pe__rscs_brief_output(out, rscs, print_opts | pe_print_rsconly, FALSE); out 1387 lib/pengine/pe_output.c out->end_list(out); out 1388 lib/pengine/pe_output.c out->end_list(out); out 1394 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); out 1395 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Resources"); out 1399 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), print_opts | pe_print_rsconly, out 1403 lib/pengine/pe_output.c out->end_list(out); out 1404 lib/pengine/pe_output.c out->end_list(out); out 1407 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); out 1414 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Node: %s", node_name); out 1424 lib/pengine/pe_output.c pe__node_xml(pcmk__output_t *out, va_list args) { out 1450 lib/pengine/pe_output.c pe__name_and_nvpairs_xml(out, true, "node", 13, out 1466 lib/pengine/pe_output.c xmlNodePtr xml_node = pcmk__output_xml_peek_parent(out); out 1475 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), print_opts | pe_print_rsconly, out 1482 lib/pengine/pe_output.c out->end_list(out); out 1484 lib/pengine/pe_output.c pcmk__output_xml_create_parent(out, "node", out 1494 lib/pengine/pe_output.c pe__node_attribute_text(pcmk__output_t *out, va_list args) { out 1509 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s\t: Connectivity is lost", name, value); out 1511 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s\t: Connectivity is degraded (Expected=%d)", name, value, expected_score); out 1513 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s", name, value); out 1516 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s", name, value); out 1524 lib/pengine/pe_output.c node_attribute_html(pcmk__output_t *out, va_list args) { out 1533 lib/pengine/pe_output.c xmlNodePtr item_node = pcmk__output_create_xml_node(out, "li", NULL); out 1552 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s", name, value); out 1560 lib/pengine/pe_output.c node_and_op(pcmk__output_t *out, va_list args) { out 1601 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s (node=%s, call=%s, rc=%s%s): %s", out 1616 lib/pengine/pe_output.c node_and_op_xml(pcmk__output_t *out, va_list args) { out 1629 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, "operation", out 1667 lib/pengine/pe_output.c node_attribute_xml(pcmk__output_t *out, va_list args) { out 1673 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "attribute", out 1691 lib/pengine/pe_output.c node_attribute_list(pcmk__output_t *out, va_list args) { out 1728 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Node Attributes"); out 1730 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, FALSE, NULL, out 1746 lib/pengine/pe_output.c out->message(out, "node-attribute", name, value, add_extra, out 1751 lib/pengine/pe_output.c out->end_list(out); out 1754 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 1760 lib/pengine/pe_output.c node_capacity(pcmk__output_t *out, va_list args) out 1769 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", dump_text); out 1777 lib/pengine/pe_output.c node_capacity_xml(pcmk__output_t *out, va_list args) out 1782 lib/pengine/pe_output.c xmlNodePtr xml_node = pcmk__output_create_xml_node(out, "capacity", out 1795 lib/pengine/pe_output.c node_history_list(pcmk__output_t *out, va_list args) { out 1856 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, FALSE, NULL, out 1861 lib/pengine/pe_output.c out->message(out, "resource-history", rsc, rsc_id, FALSE, out 1874 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, FALSE, NULL, out 1879 lib/pengine/pe_output.c out->message(out, "resource-operation-list", data_set, rsc, node, out 1884 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 1890 lib/pengine/pe_output.c node_list_html(pcmk__output_t *out, va_list args) { out 1908 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Node List"); out 1910 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, NULL, print_clone_detail, out 1914 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 1920 lib/pengine/pe_output.c pe__node_list_text(pcmk__output_t *out, va_list args) { out 1954 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Node List"); out 2026 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, node_mode, print_clone_detail, out 2033 lib/pengine/pe_output.c out->list_item(out, "Online", "[ %s ]", online_nodes); out 2037 lib/pengine/pe_output.c out->list_item(out, "OFFLINE", "[ %s ]", offline_nodes); out 2041 lib/pengine/pe_output.c out->list_item(out, "RemoteOnline", "[ %s ]", online_remote_nodes); out 2045 lib/pengine/pe_output.c out->list_item(out, "RemoteOFFLINE", "[ %s ]", offline_remote_nodes); out 2049 lib/pengine/pe_output.c out->list_item(out, "GuestOnline", "[ %s ]", online_guest_nodes); out 2053 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 2059 lib/pengine/pe_output.c node_list_xml(pcmk__output_t *out, va_list args) { out 2068 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "nodes"); out 2076 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, NULL, print_clone_detail, out 2079 lib/pengine/pe_output.c out->end_list(out); out 2088 lib/pengine/pe_output.c node_summary(pcmk__output_t *out, va_list args) { out 2127 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, operations ? "Operations" : "Migration Summary"); out 2129 lib/pengine/pe_output.c out->message(out, "node-history-list", data_set, node, node_state, out 2134 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 2140 lib/pengine/pe_output.c node_weight(pcmk__output_t *out, va_list args) out 2148 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s allocation score on %s: %s", out 2151 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score); out 2159 lib/pengine/pe_output.c node_weight_xml(pcmk__output_t *out, va_list args) out 2166 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "node_weight", out 2181 lib/pengine/pe_output.c pe__op_history_text(pcmk__output_t *out, va_list args) { out 2190 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); out 2198 lib/pengine/pe_output.c op_history_xml(pcmk__output_t *out, va_list args) { out 2206 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "operation_history", out 2248 lib/pengine/pe_output.c promotion_score(pcmk__output_t *out, va_list args) out 2254 lib/pengine/pe_output.c out->list_item(out, NULL, "%s promotion score on %s: %s", out 2263 lib/pengine/pe_output.c promotion_score_xml(pcmk__output_t *out, va_list args) out 2269 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "promotion_score", out 2283 lib/pengine/pe_output.c resource_config(pcmk__output_t *out, va_list args) { out 2295 lib/pengine/pe_output.c pcmk__formatted_printf(out, "Resource XML:\n"); out 2296 lib/pengine/pe_output.c out->output_xml(out, "xml", rsc_xml); out 2304 lib/pengine/pe_output.c pe__resource_history_text(pcmk__output_t *out, va_list args) { out 2315 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); out 2317 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); out 2326 lib/pengine/pe_output.c resource_history_xml(pcmk__output_t *out, va_list args) { out 2334 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, "resource_history", out 2361 lib/pengine/pe_output.c pcmk__output_xml_pop_parent(out); out 2368 lib/pengine/pe_output.c print_resource_header(pcmk__output_t *out, gboolean group_by_node, out 2373 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Inactive Resources"); out 2375 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Full List of Resources"); out 2377 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Active Resources"); out 2385 lib/pengine/pe_output.c resource_list(pcmk__output_t *out, va_list args) out 2413 lib/pengine/pe_output.c PCMK__OUTPUT_SPACER_IF(out, print_spacer); out 2414 lib/pengine/pe_output.c print_resource_header(out, group_by_node, inactive_resources); out 2417 lib/pengine/pe_output.c rc = pe__rscs_brief_output(out, rscs, print_opts, inactive_resources); out 2455 lib/pengine/pe_output.c PCMK__OUTPUT_SPACER_IF(out, print_spacer); out 2456 lib/pengine/pe_output.c print_resource_header(out, group_by_node, inactive_resources); out 2461 lib/pengine/pe_output.c x = out->message(out, crm_map_element_name(rsc->xml), print_opts, rsc, out 2470 lib/pengine/pe_output.c PCMK__OUTPUT_SPACER_IF(out, print_spacer); out 2471 lib/pengine/pe_output.c print_resource_header(out, group_by_node, inactive_resources); out 2476 lib/pengine/pe_output.c out->list_item(out, NULL, "No inactive resources"); out 2478 lib/pengine/pe_output.c out->list_item(out, NULL, "No resources"); out 2480 lib/pengine/pe_output.c out->list_item(out, NULL, "No active resources"); out 2485 lib/pengine/pe_output.c out->end_list(out); out 2494 lib/pengine/pe_output.c resource_operation_list(pcmk__output_t *out, va_list args) out 2528 lib/pengine/pe_output.c out->message(out, "resource-history", rsc, rsc_printable_id(rsc), TRUE, out 2534 lib/pengine/pe_output.c out->message(out, "op-history", xml_op, task, interval_ms_s, out 2541 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 2547 lib/pengine/pe_output.c resource_util(pcmk__output_t *out, va_list args) out 2557 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", dump_text); out 2565 lib/pengine/pe_output.c resource_util_xml(pcmk__output_t *out, va_list args) out 2571 lib/pengine/pe_output.c xmlNodePtr xml_node = pcmk__output_create_xml_node(out, "utilization", out 2583 lib/pengine/pe_output.c ticket_html(pcmk__output_t *out, va_list args) { out 2590 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s %s", ticket->id, out 2596 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s", ticket->id, out 2606 lib/pengine/pe_output.c pe__ticket_text(pcmk__output_t *out, va_list args) { out 2613 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s%s %s", out 2619 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s%s", out 2629 lib/pengine/pe_output.c ticket_xml(pcmk__output_t *out, va_list args) { out 2634 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, "ticket", out 2649 lib/pengine/pe_output.c ticket_list(pcmk__output_t *out, va_list args) { out 2660 lib/pengine/pe_output.c PCMK__OUTPUT_SPACER_IF(out, print_spacer); out 2663 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Tickets"); out 2669 lib/pengine/pe_output.c out->message(out, "ticket", ticket); out 2673 lib/pengine/pe_output.c out->end_list(out); out 2767 lib/pengine/pe_output.c pe__register_messages(pcmk__output_t *out) { out 2768 lib/pengine/pe_output.c pcmk__register_messages(out, fmt_functions); out 2772 lib/pengine/pe_output.c pe__output_node(pe_node_t *node, gboolean details, pcmk__output_t *out) out 2800 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), out 236 lib/pengine/utils.c pcmk__output_t *out = data_set->priv; out 246 lib/pengine/utils.c out->message(out, "node-weight", rsc, comment, node->details->uname, score); out 2084 lib/pengine/utils.c pcmk__output_t *out = data_set->priv; out 2085 lib/pengine/utils.c out->info(out, "notice: Unfencing %s (remote): because the definition of %s changed", out 79 tools/crm_mon.c static pcmk__output_t *out = NULL; out 733 tools/crm_mon.c out->info(out, "Reconnecting..."); out 756 tools/crm_mon.c out->info(out, "Connection to the cluster-daemons terminated"); out 867 tools/crm_mon.c out->err(out, "Could not connect to the CIB: %s", out 875 tools/crm_mon.c out->info(out,"Waiting for CIB ..."); out 886 tools/crm_mon.c out->err(out, out 903 tools/crm_mon.c out->err(out, "Notification setup failed, could not monitor CIB actions"); out 971 tools/crm_mon.c out->err(out, "Bad reply from pacemakerd: %s", out 977 tools/crm_mon.c out->err(out, "Unknown reply type %d from pacemakerd", out 1014 tools/crm_mon.c out->err(out, "Could not connect to pacemakerd: %s", out 1036 tools/crm_mon.c out->info(out,"Pacemaker daemons starting ..."); out 1039 tools/crm_mon.c out->info(out,"Waiting for startup-trigger from SBD ..."); out 1042 tools/crm_mon.c out->info(out,"Pacemaker daemons shutting down ..."); out 1050 tools/crm_mon.c out->info(out,"Pacemaker daemons shut down - reporting to SBD ..."); out 1077 tools/crm_mon.c out->info(out, out 1105 tools/crm_mon.c #define print_option_help(out, option, condition) \ out 1106 tools/crm_mon.c curses_formatted_printf(out, "%c %c: \t%s\n", ((condition)? '*': ' '), option, get_option_desc(option)); out 1200 tools/crm_mon.c curses_formatted_printf(out, "%s", "Display option change mode\n"); out 1201 tools/crm_mon.c print_option_help(out, 'c', pcmk_is_set(show, mon_show_tickets)); out 1202 tools/crm_mon.c print_option_help(out, 'f', pcmk_is_set(show, mon_show_failcounts)); out 1203 tools/crm_mon.c print_option_help(out, 'n', pcmk_is_set(options.mon_ops, mon_op_group_by_node)); out 1204 tools/crm_mon.c print_option_help(out, 'o', pcmk_is_set(show, mon_show_operations)); out 1205 tools/crm_mon.c print_option_help(out, 'r', pcmk_is_set(options.mon_ops, mon_op_inactive_resources)); out 1206 tools/crm_mon.c print_option_help(out, 't', pcmk_is_set(options.mon_ops, mon_op_print_timing)); out 1207 tools/crm_mon.c print_option_help(out, 'A', pcmk_is_set(show, mon_show_attributes)); out 1208 tools/crm_mon.c print_option_help(out, 'L', pcmk_is_set(show,mon_show_bans)); out 1209 tools/crm_mon.c print_option_help(out, 'D', !pcmk_is_set(show, mon_show_summary)); out 1210 tools/crm_mon.c print_option_help(out, 'R', pcmk_is_set(options.mon_ops, mon_op_print_clone_detail)); out 1211 tools/crm_mon.c print_option_help(out, 'b', pcmk_is_set(options.mon_ops, mon_op_print_brief)); out 1212 tools/crm_mon.c print_option_help(out, 'j', pcmk_is_set(options.mon_ops, mon_op_print_pending)); out 1213 tools/crm_mon.c curses_formatted_printf(out, "%d m: \t%s\n", interactive_fence_level, get_option_desc('m')); out 1214 tools/crm_mon.c curses_formatted_printf(out, "%s", "\nToggle fields via field letter, type any other key to return\n"); out 1589 tools/crm_mon.c rc = pcmk__output_new(&out, "text", args->output_dest, argv); out 1591 tools/crm_mon.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); out 1628 tools/crm_mon.c crm_mon_register_messages(out); out 1629 tools/crm_mon.c pe__register_messages(out); out 1630 tools/crm_mon.c stonith__register_messages(out); out 1633 tools/crm_mon.c out->version(out, false); out 1660 tools/crm_mon.c out->dest != stdout) { out 1667 tools/crm_mon.c cib__set_output(cib, out); out 1674 tools/crm_mon.c out->info(out,"Waiting until cluster is available on this node ..."); out 1690 tools/crm_mon.c } else if (output_format == mon_output_html && out->dest != stdout) { out 1743 tools/crm_mon.c print_simple_status(pcmk__output_t *out, pe_working_set_t * data_set, out 1780 tools/crm_mon.c out->info(out, "CLUSTER WARN: %s%s%s", out 1800 tools/crm_mon.c out->info(out, "CLUSTER OK: %d node%s online%s%s, " out 2098 tools/crm_mon.c out->progress(out, false); out 2140 tools/crm_mon.c out->info(out, "--- Stale data ---"); out 2190 tools/crm_mon.c out->err(out, "Upgrade failed: %s", pcmk_strerror(-pcmk_err_schema_validation)); out 2205 tools/crm_mon.c mon_data_set->priv = out; out 2218 tools/crm_mon.c out->reset(out); out 2247 tools/crm_mon.c print_simple_status(out, mon_data_set, options.mon_ops); out 2279 tools/crm_mon.c out->finish(out, CRM_EX_OK, true, NULL); out 2367 tools/crm_mon.c out->progress(out, false); out 2435 tools/crm_mon.c out->finish(out, exit_code, false, NULL); out 2436 tools/crm_mon.c pcmk__output_free(out); out 2437 tools/crm_mon.c out = NULL; out 2457 tools/crm_mon.c if (out != NULL) { out 2458 tools/crm_mon.c out->err(out, "%s: %s", g_get_prgname(), error->message); out 2459 tools/crm_mon.c out->finish(out, exit_code, true, NULL); out 2460 tools/crm_mon.c pcmk__output_free(out); out 2472 tools/crm_mon.c if (out != NULL) { out 2474 tools/crm_mon.c out->finish(out, exit_code, true, NULL); out 2477 tools/crm_mon.c pcmk__output_free(out); out 84 tools/crm_mon.h void crm_mon_register_messages(pcmk__output_t *out); out 87 tools/crm_mon.h void curses_formatted_printf(pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 88 tools/crm_mon.h void curses_formatted_vprintf(pcmk__output_t *out, const char *format, va_list args) G_GNUC_PRINTF(2, 0); out 89 tools/crm_mon.h void curses_indented_printf(pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 90 tools/crm_mon.h void curses_indented_vprintf(pcmk__output_t *out, const char *format, va_list args) G_GNUC_PRINTF(2, 0); out 38 tools/crm_mon_curses.c curses_free_priv(pcmk__output_t *out) { out 39 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 47 tools/crm_mon_curses.c out->priv = NULL; out 51 tools/crm_mon_curses.c curses_init(pcmk__output_t *out) { out 55 tools/crm_mon_curses.c if (out->priv != NULL) { out 58 tools/crm_mon_curses.c out->priv = calloc(1, sizeof(private_data_t)); out 59 tools/crm_mon_curses.c if (out->priv == NULL) { out 63 tools/crm_mon_curses.c priv = out->priv; out 76 tools/crm_mon_curses.c curses_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 77 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 85 tools/crm_mon_curses.c curses_reset(pcmk__output_t *out) { out 86 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 88 tools/crm_mon_curses.c curses_free_priv(out); out 89 tools/crm_mon_curses.c curses_init(out); out 93 tools/crm_mon_curses.c curses_subprocess_output(pcmk__output_t *out, int exit_status, out 95 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 113 tools/crm_mon_curses.c curses_ver(pcmk__output_t *out, bool extended) { out 114 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 126 tools/crm_mon_curses.c curses_error(pcmk__output_t *out, const char *format, ...) { out 129 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 148 tools/crm_mon_curses.c curses_info(pcmk__output_t *out, const char *format, ...) { out 151 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 153 tools/crm_mon_curses.c if (out->is_quiet(out)) { out 173 tools/crm_mon_curses.c curses_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 174 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 175 tools/crm_mon_curses.c curses_indented_printf(out, "%s", buf); out 180 tools/crm_mon_curses.c curses_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 186 tools/crm_mon_curses.c CRM_ASSERT(out != NULL && out->priv != NULL); out 187 tools/crm_mon_curses.c priv = out->priv; out 191 tools/crm_mon_curses.c curses_indented_vprintf(out, format, ap); out 206 tools/crm_mon_curses.c curses_list_item(pcmk__output_t *out, const char *id, const char *format, ...) { out 209 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 214 tools/crm_mon_curses.c curses_indented_printf(out, "%s: ", id); out 217 tools/crm_mon_curses.c curses_indented_vprintf(out, format, ap); out 223 tools/crm_mon_curses.c out->increment_list(out); out 227 tools/crm_mon_curses.c curses_increment_list(pcmk__output_t *out) { out 231 tools/crm_mon_curses.c CRM_ASSERT(out != NULL && out->priv != NULL); out 232 tools/crm_mon_curses.c priv = out->priv; out 240 tools/crm_mon_curses.c curses_end_list(pcmk__output_t *out) { out 244 tools/crm_mon_curses.c CRM_ASSERT(out != NULL && out->priv != NULL); out 245 tools/crm_mon_curses.c priv = out->priv; out 251 tools/crm_mon_curses.c curses_indented_printf(out, "%d %s found\n", node->len, node->singular_noun); out 253 tools/crm_mon_curses.c curses_indented_printf(out, "%d %s found\n", node->len, node->plural_noun); out 261 tools/crm_mon_curses.c curses_is_quiet(pcmk__output_t *out) { out 262 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 263 tools/crm_mon_curses.c return out->quiet; out 267 tools/crm_mon_curses.c curses_spacer(pcmk__output_t *out) { out 268 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 273 tools/crm_mon_curses.c curses_progress(pcmk__output_t *out, bool end) { out 274 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 365 tools/crm_mon_curses.c curses_formatted_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 374 tools/crm_mon_curses.c curses_formatted_printf(pcmk__output_t *out, const char *format, ...) { out 378 tools/crm_mon_curses.c curses_formatted_vprintf(out, format, ap); out 384 tools/crm_mon_curses.c curses_indented_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 386 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 400 tools/crm_mon_curses.c curses_formatted_vprintf(out, format, args); out 405 tools/crm_mon_curses.c curses_indented_printf(pcmk__output_t *out, const char *format, ...) { out 409 tools/crm_mon_curses.c curses_indented_vprintf(out, format, ap); out 415 tools/crm_mon_curses.c cluster_maint_mode_console(pcmk__output_t *out, va_list args) { out 419 tools/crm_mon_curses.c curses_formatted_printf(out, "\n *** Resource management is DISABLED ***\n"); out 420 tools/crm_mon_curses.c curses_formatted_printf(out, " The cluster will not attempt to start, stop or recover services\n"); out 423 tools/crm_mon_curses.c curses_formatted_printf(out, "\n *** Resource management is DISABLED ***\n"); out 424 tools/crm_mon_curses.c curses_formatted_printf(out, " The cluster will keep all resources stopped\n"); out 433 tools/crm_mon_curses.c stonith_event_console(pcmk__output_t *out, va_list args) { out 446 tools/crm_mon_curses.c curses_indented_printf(out, "%s of %s failed: delegate=%s, client=%s, origin=%s, %s='%s'%s\n", out 455 tools/crm_mon_curses.c curses_indented_printf(out, "%s of %s successful: delegate=%s, client=%s, origin=%s, %s='%s'\n", out 463 tools/crm_mon_curses.c curses_indented_printf(out, "%s of %s pending: client=%s, origin=%s\n", out 504 tools/crm_mon_curses.c crm_mon_register_messages(pcmk__output_t *out) { out 505 tools/crm_mon_curses.c pcmk__register_messages(out, fmt_functions); out 518 tools/crm_mon_curses.c curses_formatted_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 524 tools/crm_mon_curses.c curses_formatted_printf(pcmk__output_t *out, const char *format, ...) { out 530 tools/crm_mon_curses.c curses_indented_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 536 tools/crm_mon_curses.c curses_indented_printf(pcmk__output_t *out, const char *format, ...) { out 541 tools/crm_mon_curses.c crm_mon_register_messages(pcmk__output_t *out) { out 59 tools/crm_mon_print.c pcmk__output_t *out = data_set->priv; out 64 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "cluster-summary", data_set, out 73 tools/crm_mon_print.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); out 74 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "node-list", data_set->nodes, unames, out 83 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "resource-list", data_set, print_opts, out 92 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "node-attribute-list", data_set, out 106 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "node-summary", data_set, unames, out 120 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "failed-action-list", data_set, unames, out 133 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "failed-fencing-list", stonith_history, unames, out 138 tools/crm_mon_print.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); out 139 tools/crm_mon_print.c out->begin_list(out, NULL, NULL, "Failed Fencing Actions"); out 140 tools/crm_mon_print.c out->list_item(out, NULL, "Failed to get fencing history: %s", out 142 tools/crm_mon_print.c out->end_list(out); out 150 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "ticket-list", data_set, rc == pcmk_rc_ok)); out 155 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "ban-list", data_set, prefix, resources, out 164 tools/crm_mon_print.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); out 165 tools/crm_mon_print.c out->begin_list(out, NULL, NULL, "Failed Fencing Actions"); out 166 tools/crm_mon_print.c out->list_item(out, NULL, "Failed to get fencing history: %s", out 168 tools/crm_mon_print.c out->end_list(out); out 175 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "fencing-list", hp, unames, out 183 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "pending-fencing-list", hp, unames, out 208 tools/crm_mon_print.c pcmk__output_t *out = data_set->priv; out 210 tools/crm_mon_print.c out->message(out, "cluster-summary", data_set, out 220 tools/crm_mon_print.c out->message(out, "node-list", data_set->nodes, unames, out 229 tools/crm_mon_print.c out->message(out, "resource-list", data_set, print_opts, out 237 tools/crm_mon_print.c out->message(out, "node-attribute-list", data_set, out 251 tools/crm_mon_print.c out->message(out, "node-summary", data_set, unames, out 265 tools/crm_mon_print.c out->message(out, "failed-action-list", data_set, unames, resources, out 273 tools/crm_mon_print.c out->message(out, "full-fencing-list", history_rc, stonith_history, out 280 tools/crm_mon_print.c out->message(out, "ticket-list", data_set, FALSE); out 285 tools/crm_mon_print.c out->message(out, "ban-list", data_set, prefix, resources, out 307 tools/crm_mon_print.c pcmk__output_t *out = data_set->priv; out 311 tools/crm_mon_print.c out->message(out, "cluster-summary", data_set, out 321 tools/crm_mon_print.c out->message(out, "node-list", data_set->nodes, unames, out 330 tools/crm_mon_print.c out->message(out, "resource-list", data_set, print_opts, out 339 tools/crm_mon_print.c out->message(out, "node-attribute-list", data_set, out 353 tools/crm_mon_print.c out->message(out, "node-summary", data_set, unames, out 367 tools/crm_mon_print.c out->message(out, "failed-action-list", data_set, unames, resources, out 380 tools/crm_mon_print.c out->message(out, "failed-fencing-list", stonith_history, unames, out 384 tools/crm_mon_print.c out->begin_list(out, NULL, NULL, "Failed Fencing Actions"); out 385 tools/crm_mon_print.c out->list_item(out, NULL, "Failed to get fencing history: %s", out 387 tools/crm_mon_print.c out->end_list(out); out 395 tools/crm_mon_print.c out->begin_list(out, NULL, NULL, "Failed Fencing Actions"); out 396 tools/crm_mon_print.c out->list_item(out, NULL, "Failed to get fencing history: %s", out 398 tools/crm_mon_print.c out->end_list(out); out 405 tools/crm_mon_print.c out->message(out, "fencing-list", hp, unames, out 413 tools/crm_mon_print.c out->message(out, "pending-fencing-list", hp, unames, out 422 tools/crm_mon_print.c out->message(out, "ticket-list", data_set, FALSE); out 427 tools/crm_mon_print.c out->message(out, "ban-list", data_set, prefix, resources, out 170 tools/crm_resource.c static pcmk__output_t *out = NULL; out 195 tools/crm_resource.c pcmk__output_and_clear_error(error, out); out 197 tools/crm_resource.c if (out != NULL) { out 198 tools/crm_resource.c out->finish(out, ec, true, NULL); out 199 tools/crm_resource.c pcmk__output_free(out); out 267 tools/crm_resource.c out->err(out, "Error: bad reply from controller: %s", out 274 tools/crm_resource.c out->info(out, "... got reply (done)"); out 279 tools/crm_resource.c out->info(out, "... got reply"); out 295 tools/crm_resource.c out->info(out, "Waiting for %d %s from the controller", out 955 tools/crm_resource.c ban_or_move(pcmk__output_t *out, pe_resource_t *rsc, const char *move_lifetime) out 966 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, NULL, out 985 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, NULL, out 1012 tools/crm_resource.c cleanup(pcmk__output_t *out, pe_resource_t *rsc) out 1025 tools/crm_resource.c if ((rc == pcmk_rc_ok) && !out->is_quiet(out)) { out 1027 tools/crm_resource.c cli_resource_check(out, cib_conn, rsc); out 1036 tools/crm_resource.c clear_constraints(pcmk__output_t *out, xmlNodePtr *cib_xml_copy) out 1045 tools/crm_resource.c if (!out->is_quiet(out)) { out 1058 tools/crm_resource.c if (!out->is_quiet(out)) { out 1071 tools/crm_resource.c if (!out->is_quiet(out)) { out 1089 tools/crm_resource.c out->info(out, "Removing constraint: %s", (char *) ele->data); out 1124 tools/crm_resource.c list_agents(pcmk__output_t *out, const char *agent_spec) out 1138 tools/crm_resource.c rc = out->message(out, "agents-list", list, agent_spec, provider); out 1159 tools/crm_resource.c list_providers(pcmk__output_t *out, const char *agent_spec) out 1171 tools/crm_resource.c rc = out->message(out, "alternatives-list", list, agent_spec); out 1182 tools/crm_resource.c rc = out->message(out, "standards-list", list); out 1193 tools/crm_resource.c rc = out->message(out, "providers-list", list, agent_spec); out 1247 tools/crm_resource.c data_set->priv = out; out 1256 tools/crm_resource.c refresh(pcmk__output_t *out) out 1280 tools/crm_resource.c out->info(out, "Dry run: skipping clean-up of %s due to CIB_file", out 1301 tools/crm_resource.c refresh_resource(pcmk__output_t *out, pe_resource_t *rsc) out 1314 tools/crm_resource.c if ((rc == pcmk_rc_ok) && !out->is_quiet(out)) { out 1316 tools/crm_resource.c cli_resource_check(out, cib_conn, rsc); out 1358 tools/crm_resource.c show_metadata(pcmk__output_t *out, const char *agent_spec) out 1377 tools/crm_resource.c out->output_xml(out, "metadata", metadata); out 1539 tools/crm_resource.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); out 1547 tools/crm_resource.c pe__register_messages(out); out 1548 tools/crm_resource.c crm_resource_register_messages(out); out 1549 tools/crm_resource.c lrmd__register_messages(out); out 1550 tools/crm_resource.c pcmk__register_lib_messages(out); out 1552 tools/crm_resource.c out->quiet = args->quiet; out 1654 tools/crm_resource.c out->version(out, false); out 1776 tools/crm_resource.c rc = out->message(out, "resource-list", data_set, out 1788 tools/crm_resource.c rc = out->message(out, "resource-names-list", data_set->resources); out 1799 tools/crm_resource.c rc = list_providers(out, options.agent_spec); out 1803 tools/crm_resource.c rc = list_agents(out, options.agent_spec); out 1807 tools/crm_resource.c rc = show_metadata(out, options.agent_spec); out 1816 tools/crm_resource.c rc = cli_resource_restart(out, rsc, options.host_uname, out 1824 tools/crm_resource.c rc = wait_till_stable(out, options.timeout_ms, cib_conn); out 1829 tools/crm_resource.c exit_code = cli_resource_execute_from_params(out, "test", out 1847 tools/crm_resource.c rc = pcmk__resource_digests(out, rsc, node, out 1853 tools/crm_resource.c rc = out->message(out, "stacks-constraints", rsc, data_set, false); out 1857 tools/crm_resource.c rc = out->message(out, "stacks-constraints", rsc, data_set, true); out 1867 tools/crm_resource.c cli_resource_print_cts(out, rsc); out 1895 tools/crm_resource.c rc = out->message(out, "resource-search-list", nodes, options.rsc_id); out 1912 tools/crm_resource.c rc = out->message(out, "resource-reasons-list", cib_conn, out 1918 tools/crm_resource.c rc = clear_constraints(out, &cib_xml_copy); out 1923 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); out 1941 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); out 1945 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, node->details->uname, out 1959 tools/crm_resource.c rc = out->message(out, "property-list", rsc, options.prop_name); out 1977 tools/crm_resource.c out->err(out, "%s is active on more than one node," out 1998 tools/crm_resource.c rc = out->message(out, "attribute-list", rsc, options.prop_name, params); out 2045 tools/crm_resource.c cleanup(out, rsc); out 2051 tools/crm_resource.c rc = refresh(out); out 2053 tools/crm_resource.c refresh_resource(out, rsc); out 46 tools/crm_resource.h int cli_resource_prefer(pcmk__output_t *out, const char *rsc_id, const char *host, out 49 tools/crm_resource.h int cli_resource_ban(pcmk__output_t *out, const char *rsc_id, const char *host, out 58 tools/crm_resource.h void cli_resource_print_cts(pcmk__output_t *out, pe_resource_t * rsc); out 59 tools/crm_resource.h void cli_resource_print_raw(pcmk__output_t *out, pe_resource_t * rsc); out 67 tools/crm_resource.h int cli_resource_check(pcmk__output_t *out, cib_t * cib, pe_resource_t *rsc); out 79 tools/crm_resource.h int cli_resource_restart(pcmk__output_t *out, pe_resource_t *rsc, const char *host, out 86 tools/crm_resource.h crm_exit_t cli_resource_execute_from_params(pcmk__output_t *out, const char *rsc_name, out 110 tools/crm_resource.h int wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib); out 114 tools/crm_resource.h void crm_resource_register_messages(pcmk__output_t *out); out 17 tools/crm_resource_ban.c parse_cli_lifetime(pcmk__output_t *out, const char *move_lifetime) out 30 tools/crm_resource_ban.c out->err(out, "Invalid duration specified: %s\n" out 39 tools/crm_resource_ban.c out->err(out, "Unable to add %s to current time\n" out 53 tools/crm_resource_ban.c out->info(out, "Migration will take effect until: %s", later_s); out 77 tools/crm_resource_ban.c cli_resource_ban(pcmk__output_t *out, const char *rsc_id, const char *host, out 91 tools/crm_resource_ban.c rc = cli_resource_ban(out, rsc_id, target->details->uname, move_lifetime, out 97 tools/crm_resource_ban.c later_s = parse_cli_lifetime(out, move_lifetime); out 107 tools/crm_resource_ban.c out->info(out, "WARNING: Creating rsc_location constraint '%s' with a " out 160 tools/crm_resource_ban.c cli_resource_prefer(pcmk__output_t *out,const char *rsc_id, const char *host, out 164 tools/crm_resource_ban.c char *later_s = parse_cli_lifetime(out, move_lifetime); out 19 tools/crm_resource_print.c pcmk__output_t *out = data_set->priv; out 42 tools/crm_resource_print.c out->info(out, "Constraint %s %s %s %s %s %s %s", out 54 tools/crm_resource_print.c cli_resource_print_cts(pcmk__output_t *out, pe_resource_t * rsc) out 74 tools/crm_resource_print.c out->info(out, "Resource: %s %s %s %s %s %s %s %s %d %lld 0x%.16llx", out 83 tools/crm_resource_print.c cli_resource_print_cts(out, child); out 92 tools/crm_resource_print.c pcmk__output_t *out = data_set->priv; out 100 tools/crm_resource_print.c out->begin_list(out, NULL, NULL, "Resource Operations"); out 105 tools/crm_resource_print.c out->message(out, "node-and-op", data_set, xml_op); out 108 tools/crm_resource_print.c out->end_list(out); out 116 tools/crm_resource_print.c pcmk__output_t *out = data_set->priv; out 122 tools/crm_resource_print.c out->begin_list(out, NULL, NULL, "Resource Config"); out 123 tools/crm_resource_print.c out->message(out, crm_map_element_name(rsc->xml), opts, rsc, all, all); out 124 tools/crm_resource_print.c out->message(out, "resource-config", rsc, !expanded); out 125 tools/crm_resource_print.c out->end_list(out); out 133 tools/crm_resource_print.c attribute_list_default(pcmk__output_t *out, va_list args) { out 144 tools/crm_resource_print.c out->begin_list(out, NULL, NULL, "Attributes"); out 145 tools/crm_resource_print.c out->list_item(out, attr, "%s", value); out 146 tools/crm_resource_print.c out->end_list(out); out 148 tools/crm_resource_print.c out->err(out, "Attribute '%s' not found for '%s'", attr, rsc->id); out 156 tools/crm_resource_print.c attribute_list_text(pcmk__output_t *out, va_list args) { out 167 tools/crm_resource_print.c pcmk__formatted_printf(out, "%s\n", value); out 169 tools/crm_resource_print.c out->err(out, "Attribute '%s' not found for '%s'", attr, rsc->id); out 177 tools/crm_resource_print.c property_list_default(pcmk__output_t *out, va_list args) { out 184 tools/crm_resource_print.c out->begin_list(out, NULL, NULL, "Properties"); out 185 tools/crm_resource_print.c out->list_item(out, attr, "%s", value); out 186 tools/crm_resource_print.c out->end_list(out); out 194 tools/crm_resource_print.c property_list_text(pcmk__output_t *out, va_list args) { out 201 tools/crm_resource_print.c pcmk__formatted_printf(out, "%s\n", value); out 209 tools/crm_resource_print.c resource_check_list_default(pcmk__output_t *out, va_list args) { out 218 tools/crm_resource_print.c out->begin_list(out, NULL, NULL, "Resource Checks"); out 222 tools/crm_resource_print.c out->list_item(out, "check", "Configuration specifies '%s' should remain stopped", out 227 tools/crm_resource_print.c out->list_item(out, "check", "Configuration specifies '%s' should not be promoted", out 232 tools/crm_resource_print.c out->list_item(out, "check", "Configuration prevents cluster from stopping or starting unmanaged '%s'", out 237 tools/crm_resource_print.c out->list_item(out, "check", "'%s' is locked to node %s due to shutdown", out 242 tools/crm_resource_print.c out->end_list(out); out 251 tools/crm_resource_print.c resource_check_list_xml(pcmk__output_t *out, va_list args) { out 256 tools/crm_resource_print.c xmlNodePtr node = pcmk__output_create_xml_node(out, "check", out 281 tools/crm_resource_print.c resource_search_list_default(pcmk__output_t *out, va_list args) out 289 tools/crm_resource_print.c if (!out->is_quiet(out) && nodes == NULL) { out 290 tools/crm_resource_print.c out->err(out, "resource %s is NOT running", requested_name); out 298 tools/crm_resource_print.c out->begin_list(out, NULL, NULL, "Nodes"); out 303 tools/crm_resource_print.c if (out->is_quiet(out)) { out 304 tools/crm_resource_print.c out->list_item(out, "node", "%s", ni->node_name); out 315 tools/crm_resource_print.c out->list_item(out, "node", "resource %s is running on: %s%s", out 321 tools/crm_resource_print.c out->end_list(out); out 329 tools/crm_resource_print.c resource_search_list_xml(pcmk__output_t *out, va_list args) out 334 tools/crm_resource_print.c pcmk__output_xml_create_parent(out, "nodes", out 340 tools/crm_resource_print.c xmlNodePtr sub_node = pcmk__output_create_xml_text_node(out, "node", ni->node_name); out 353 tools/crm_resource_print.c resource_reasons_list_default(pcmk__output_t *out, va_list args) out 362 tools/crm_resource_print.c out->begin_list(out, NULL, NULL, "Resource Reasons"); out 373 tools/crm_resource_print.c out->list_item(out, "reason", "Resource %s is not running", rsc->id); out 375 tools/crm_resource_print.c out->list_item(out, "reason", "Resource %s is running", rsc->id); out 378 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 385 tools/crm_resource_print.c out->list_item(out, "reason", "Resource %s is running on host %s", out 388 tools/crm_resource_print.c out->list_item(out, "reason", "Resource %s is not running on host %s", out 392 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 403 tools/crm_resource_print.c out->list_item(out, "reason", "Resource %s is running on host %s", out 405 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 410 tools/crm_resource_print.c out->list_item(out, "reason", "Resource %s is assigned to host %s but not running", out 412 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 423 tools/crm_resource_print.c out->list_item(out, "reason", "Resource %s is %srunning", out 425 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 429 tools/crm_resource_print.c out->end_list(out); out 436 tools/crm_resource_print.c resource_reasons_list_xml(pcmk__output_t *out, va_list args) out 445 tools/crm_resource_print.c xmlNodePtr xml_node = pcmk__output_xml_create_parent(out, "reason", NULL); out 451 tools/crm_resource_print.c pcmk__output_xml_create_parent(out, "resources", NULL); out 458 tools/crm_resource_print.c pcmk__output_xml_create_parent(out, "resource", out 463 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 464 tools/crm_resource_print.c pcmk__output_xml_pop_parent(out); out 469 tools/crm_resource_print.c pcmk__output_xml_pop_parent(out); out 476 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 485 tools/crm_resource_print.c pcmk__output_xml_create_parent(out, "resources", NULL); out 490 tools/crm_resource_print.c pcmk__output_xml_create_parent(out, "resource", out 496 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 497 tools/crm_resource_print.c pcmk__output_xml_pop_parent(out); out 503 tools/crm_resource_print.c pcmk__output_xml_create_parent(out, "resource", out 509 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 510 tools/crm_resource_print.c pcmk__output_xml_pop_parent(out); out 513 tools/crm_resource_print.c pcmk__output_xml_pop_parent(out); out 523 tools/crm_resource_print.c cli_resource_check(out, cib_conn, rsc); out 531 tools/crm_resource_print.c add_resource_name(pcmk__output_t *out, pe_resource_t *rsc) { out 533 tools/crm_resource_print.c out->list_item(out, "resource", "%s", rsc->id); out 537 tools/crm_resource_print.c add_resource_name(out, child); out 544 tools/crm_resource_print.c resource_names(pcmk__output_t *out, va_list args) { out 548 tools/crm_resource_print.c out->err(out, "NO resources configured\n"); out 552 tools/crm_resource_print.c out->begin_list(out, NULL, NULL, "Resource Names"); out 556 tools/crm_resource_print.c add_resource_name(out, rsc); out 559 tools/crm_resource_print.c out->end_list(out); out 580 tools/crm_resource_print.c crm_resource_register_messages(pcmk__output_t *out) { out 581 tools/crm_resource_print.c pcmk__register_messages(out, fmt_functions); out 104 tools/crm_resource_runtime.c find_resource_attr(pcmk__output_t *out, cib_t * the_cib, const char *attr, out 161 tools/crm_resource_runtime.c out->info(out, "Multiple attributes match name=%s", attr_name); out 165 tools/crm_resource_runtime.c out->info(out, " Value: %s \t(id=%s)", out 169 tools/crm_resource_runtime.c out->spacer(out); out 187 tools/crm_resource_runtime.c find_matching_attr_resources_recursive(pcmk__output_t *out, GList/* <pe_resource_t*> */ ** result, out 199 tools/crm_resource_runtime.c find_matching_attr_resources_recursive(out, result, (pe_resource_t*)gIter->data, out 208 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, out 224 tools/crm_resource_runtime.c find_matching_attr_resources(pcmk__output_t *out, pe_resource_t * rsc, out 243 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, rsc_id, attr_set_type, out 249 tools/crm_resource_runtime.c out->info(out, "Performing %s of '%s' on '%s', the parent of '%s'", out 258 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, out 263 tools/crm_resource_runtime.c out->info(out, "A value for '%s' already exists in child '%s', performing %s on that instead of '%s'", out 273 tools/crm_resource_runtime.c find_matching_attr_resources_recursive(out, &result, rsc, rsc_id, attr_set, out 288 tools/crm_resource_runtime.c pcmk__output_t *out = data_set->priv; out 299 tools/crm_resource_runtime.c find_resource_attr (out, cib, XML_ATTR_ID, uber_parent(rsc)->id, NULL, out 305 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, uber_parent(rsc)->id, out 308 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok && !out->is_quiet(out)) { out 309 tools/crm_resource_runtime.c out->err(out, "WARNING: There is already a meta attribute for '%s' called '%s' (id=%s)", out 311 tools/crm_resource_runtime.c out->err(out, " Delete '%s' first or use the force option to override", out 322 tools/crm_resource_runtime.c resources = find_matching_attr_resources(out, rsc, requested_name, attr_set, attr_set_type, out 342 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, out 386 tools/crm_resource_runtime.c out->info(out, "Set '%s' option: id=%s%s%s%s%s value=%s", lookup_id, local_attr_id, out 438 tools/crm_resource_runtime.c pcmk__output_t *out = data_set->priv; out 443 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_ATTR_ID, uber_parent(rsc)->id, NULL, out 448 tools/crm_resource_runtime.c resources = find_matching_attr_resources(out, rsc, requested_name, attr_set, attr_set_type, out 462 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, out 488 tools/crm_resource_runtime.c out->info(out, "Deleted '%s' option: id=%s%s%s%s%s", lookup_id, local_attr_id, out 506 tools/crm_resource_runtime.c pcmk__output_t *out = data_set->priv; out 517 tools/crm_resource_runtime.c out->err(out, "Resource %s not found", rsc_id); out 521 tools/crm_resource_runtime.c out->err(out, "We can only process primitive resources, not %s", rsc_id); out 529 tools/crm_resource_runtime.c out->err(out, "Resource %s does not have a class and type", rsc_id); out 537 tools/crm_resource_runtime.c out->err(out, "Node %s not found", host_uname); out 543 tools/crm_resource_runtime.c out->err(out, "Node %s is not online", host_uname); out 552 tools/crm_resource_runtime.c out->err(out, "No cluster connection to Pacemaker Remote node %s detected", out 622 tools/crm_resource_runtime.c clear_rsc_failures(pcmk__output_t *out, pcmk_ipc_api_t *controld_api, out 727 tools/crm_resource_runtime.c pcmk__output_t *out = data_set->priv; out 792 tools/crm_resource_runtime.c out->err(out, "Unable to clean up %s because node %s not found", out 798 tools/crm_resource_runtime.c out->err(out, "Unable to clean up %s because resource discovery disabled on %s", out 804 tools/crm_resource_runtime.c out->err(out, "Dry run: skipping clean-up of %s on %s due to CIB_file", out 811 tools/crm_resource_runtime.c out->err(out, "Unable to clean up %s failures on %s: %s", out 817 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, host_uname, rsc->id, operation, out 823 tools/crm_resource_runtime.c out->err(out, "Cleaned %s failures on %s, but unable to clean history: %s", out 826 tools/crm_resource_runtime.c out->info(out, "Cleaned up %s on %s", rsc->id, host_uname); out 837 tools/crm_resource_runtime.c pcmk__output_t *out = data_set->priv; out 843 tools/crm_resource_runtime.c out->info(out, "Dry run: skipping clean-up of %s due to CIB_file", out 852 tools/crm_resource_runtime.c out->err(out, "Unknown node: %s", node_name); out 863 tools/crm_resource_runtime.c out->err(out, "Unable to clean up all failures on %s: %s", out 869 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, node_name, NULL, out 872 tools/crm_resource_runtime.c out->err(out, "Cleaned all resource failures on %s, but unable to clean history: %s", out 880 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, node->details->uname, NULL, out 883 tools/crm_resource_runtime.c out->err(out, "Cleaned all resource failures on all nodes, but unable to clean history: %s", out 890 tools/crm_resource_runtime.c out->info(out, "Cleaned up all resources on %s", display_name); out 895 tools/crm_resource_runtime.c cli_resource_check(pcmk__output_t *out, cib_t * cib_conn, pe_resource_t *rsc) out 903 tools/crm_resource_runtime.c find_resource_attr(out, cib_conn, XML_NVPAIR_ATTR_VALUE, parent->id, out 906 tools/crm_resource_runtime.c find_resource_attr(out, cib_conn, XML_NVPAIR_ATTR_VALUE, parent->id, out 912 tools/crm_resource_runtime.c rc = out->message(out, "resource-check-list", checks); out 1046 tools/crm_resource_runtime.c static void display_list(pcmk__output_t *out, GList *items, const char *tag) out 1051 tools/crm_resource_runtime.c out->info(out, "%s%s", tag, (const char *)item->data); out 1094 tools/crm_resource_runtime.c update_working_set_from_cib(pcmk__output_t *out, pe_working_set_t * data_set, out 1104 tools/crm_resource_runtime.c out->err(out, "Could not obtain the current CIB: %s (%d)", pcmk_strerror(rc), rc); out 1109 tools/crm_resource_runtime.c out->err(out, "Could not upgrade the current CIB XML"); out 1126 tools/crm_resource_runtime.c pcmk__output_t *out = data_set->priv; out 1129 tools/crm_resource_runtime.c rc = update_working_set_from_cib(out, data_set, cib); out 1142 tools/crm_resource_runtime.c out->err(out, "Could not create shadow cib: '%s'", pid); out 1150 tools/crm_resource_runtime.c out->err(out, "Could not populate shadow cib: %s (%d)", pcmk_strerror(rc), rc); out 1158 tools/crm_resource_runtime.c out->err(out, "Could not connect to shadow cib: %s (%d)", pcmk_strerror(rc), rc); out 1164 tools/crm_resource_runtime.c prev_quiet = out->is_quiet(out); out 1165 tools/crm_resource_runtime.c out->quiet = true; out 1167 tools/crm_resource_runtime.c out->quiet = prev_quiet; out 1266 tools/crm_resource_runtime.c cli_resource_restart(pcmk__output_t *out, pe_resource_t *rsc, const char *host, out 1291 tools/crm_resource_runtime.c out->err(out, "%s is not running on %s and so cannot be restarted", id, host); out 1293 tools/crm_resource_runtime.c out->err(out, "%s is not running anywhere and so cannot be restarted", id); out 1328 tools/crm_resource_runtime.c data_set->priv = out; out 1333 tools/crm_resource_runtime.c out->err(out, "Could not get new resource list: %s (%d)", pcmk_strerror(rc), rc); out 1344 tools/crm_resource_runtime.c out->quiet = true; out 1345 tools/crm_resource_runtime.c rc = cli_resource_ban(out, rsc_id, host, move_lifetime, NULL, cib, out 1355 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_NVPAIR_ATTR_VALUE, lookup_id, NULL, NULL, out 1364 tools/crm_resource_runtime.c out->err(out, "Could not set target-role for %s: %s (%d)", rsc_id, pcmk_strerror(rc), rc); out 1376 tools/crm_resource_runtime.c out->err(out, "Could not determine which resources would be stopped"); out 1384 tools/crm_resource_runtime.c out->info(out, "Waiting for %d resources to stop:", g_list_length(list_delta)); out 1385 tools/crm_resource_runtime.c display_list(out, list_delta, " * "); out 1403 tools/crm_resource_runtime.c out->err(out, "Could not determine which resources were stopped"); out 1420 tools/crm_resource_runtime.c out->err(out, "Could not complete shutdown of %s, %d resources remaining", rsc_id, g_list_length(list_delta)); out 1421 tools/crm_resource_runtime.c display_list(out, list_delta, " * "); out 1445 tools/crm_resource_runtime.c out->err(out, "Could not unset target-role for %s: %s (%d)", rsc_id, pcmk_strerror(rc), rc); out 1454 tools/crm_resource_runtime.c out->info(out, "Waiting for %d resources to start again:", g_list_length(list_delta)); out 1455 tools/crm_resource_runtime.c display_list(out, list_delta, " * "); out 1475 tools/crm_resource_runtime.c out->err(out, "Could not determine which resources were started"); out 1495 tools/crm_resource_runtime.c out->err(out, "Could not complete restart of %s, %d resources remaining", rsc_id, g_list_length(list_delta)); out 1496 tools/crm_resource_runtime.c display_list(out, list_delta, " * "); out 1572 tools/crm_resource_runtime.c print_pending_actions(pcmk__output_t *out, GList *actions) out 1576 tools/crm_resource_runtime.c out->info(out, "Pending actions:"); out 1585 tools/crm_resource_runtime.c out->info(out, "\tAction %d: %s\ton %s", a->id, a->uuid, a->node->details->uname); out 1587 tools/crm_resource_runtime.c out->info(out, "\tAction %d: %s", a->id, a->uuid); out 1613 tools/crm_resource_runtime.c wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib) out 1620 tools/crm_resource_runtime.c bool printed_version_warning = out->is_quiet(out); // i.e. don't print if quiet out 1635 tools/crm_resource_runtime.c print_pending_actions(out, data_set->actions); out 1645 tools/crm_resource_runtime.c rc = update_working_set_from_cib(out, data_set, cib); out 1665 tools/crm_resource_runtime.c out->info(out, "warning: wait option may not work properly in " out 1678 tools/crm_resource_runtime.c cli_resource_execute_from_params(pcmk__output_t *out, const char *rsc_name, out 1689 tools/crm_resource_runtime.c out->err(out, "Sorry, the %s option doesn't support %s resources yet", out 1752 tools/crm_resource_runtime.c out->info(out, "Overriding the cluster configuration for '%s' with '%s' = '%s'", out 1762 tools/crm_resource_runtime.c out->info(out, "Operation %s for %s (%s:%s:%s) returned: '%s' (%d)", out 1766 tools/crm_resource_runtime.c out->err(out, "Operation %s for %s (%s:%s:%s) failed: '%s' (%d)", out 1776 tools/crm_resource_runtime.c out->subprocess_output(out, op->rc, op->stdout_data, op->stderr_data); out 1795 tools/crm_resource_runtime.c pcmk__output_t *out = data_set->priv; out 1820 tools/crm_resource_runtime.c out->err(out, "It is not safe to %s %s here: the cluster claims it is already active", out 1822 tools/crm_resource_runtime.c out->err(out, "Try setting target-role=Stopped first or specifying " out 1840 tools/crm_resource_runtime.c out->err(out, "Sorry, the %s option doesn't support group resources", rsc_action); out 1857 tools/crm_resource_runtime.c exit_code = cli_resource_execute_from_params(out, rid, rclass, rprov, rtype, action, out 1870 tools/crm_resource_runtime.c pcmk__output_t *out = data_set->priv; out 1885 tools/crm_resource_runtime.c out->info(out, "Using parent '%s' for move instead of '%s'.", rsc->id, rsc_id); out 1890 tools/crm_resource_runtime.c out->info(out, "Ignoring master option: %s is not promotable", rsc_id); out 1945 tools/crm_resource_runtime.c rc = cli_resource_prefer(out, rsc_id, dest->details->uname, move_lifetime, out 1958 tools/crm_resource_runtime.c (void)cli_resource_ban(out, rsc_id, current->details->uname, move_lifetime, out 1962 tools/crm_resource_runtime.c out->info(out, "Resource '%s' is currently %s in %d locations. " out 1966 tools/crm_resource_runtime.c out->info(out, "To prevent '%s' from being %s at a specific location, " out 369 tools/crm_simulate.c pcmk__output_t *out = data_set->priv; out 376 tools/crm_simulate.c out->info(out, "Setting effective cluster time: %s", use_date); out 390 tools/crm_simulate.c out->info(out, "Using the original execution date of: %s", when); out 399 tools/crm_simulate.c pcmk__output_t *out = data_set->priv; out 405 tools/crm_simulate.c rc = out->message(out, "node-list", data_set->nodes, all, all, print_opts, out 407 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); out 408 tools/crm_simulate.c rc = out->message(out, "resource-list", data_set, print_opts, FALSE, TRUE, out 412 tools/crm_simulate.c out->message(out, "node-attribute-list", data_set, out 417 tools/crm_simulate.c out->message(out, "failed-action-list", data_set, all, all, out 690 tools/crm_simulate.c pcmk__output_t *out = data_set->priv; out 723 tools/crm_simulate.c out->message(out, "profile", xml_file, start, end); out 733 tools/crm_simulate.c pcmk__output_t *out = data_set->priv; out 742 tools/crm_simulate.c out->begin_list(out, NULL, NULL, "Timings"); out 762 tools/crm_simulate.c out->end_list(out); out 768 tools/crm_simulate.c profile_default(pcmk__output_t *out, va_list args) { out 773 tools/crm_simulate.c out->list_item(out, NULL, "Testing %s ... %.2f secs", xml_file, out 781 tools/crm_simulate.c profile_xml(pcmk__output_t *out, va_list args) { out 788 tools/crm_simulate.c pcmk__output_create_xml_node(out, "timing", out 805 tools/crm_simulate.c crm_simulate_register_messages(pcmk__output_t *out) { out 806 tools/crm_simulate.c pcmk__register_messages(out, fmt_functions); out 858 tools/crm_simulate.c pcmk__output_t *out = NULL; out 879 tools/crm_simulate.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); out 894 tools/crm_simulate.c crm_simulate_register_messages(out); out 895 tools/crm_simulate.c pe__register_messages(out); out 896 tools/crm_simulate.c pcmk__register_lib_messages(out); out 898 tools/crm_simulate.c out->quiet = args->quiet; out 901 tools/crm_simulate.c out->version(out, false); out 930 tools/crm_simulate.c data_set->priv = out; out 959 tools/crm_simulate.c data_set->priv = out; out 972 tools/crm_simulate.c if (!out->is_quiet(out)) { out 976 tools/crm_simulate.c printed = out->message(out, "maint-mode", data_set->flags); out 980 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 981 tools/crm_simulate.c printed = out->info(out, "%d of %d resource instances DISABLED and %d BLOCKED " out 987 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 991 tools/crm_simulate.c out->begin_list(out, NULL, NULL, "Current cluster status"); out 993 tools/crm_simulate.c out->end_list(out); out 998 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 1015 tools/crm_simulate.c data_set->priv = out; out 1045 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 1046 tools/crm_simulate.c out->begin_list(out, NULL, NULL, "Allocation Scores and Utilization Information"); out 1049 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 1050 tools/crm_simulate.c out->begin_list(out, NULL, NULL, "Allocation Scores"); out 1053 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 1054 tools/crm_simulate.c out->begin_list(out, NULL, NULL, "Utilization Information"); out 1068 tools/crm_simulate.c out->end_list(out); out 1072 tools/crm_simulate.c data_set->priv = out; out 1087 tools/crm_simulate.c if (!out->is_quiet(out)) { out 1090 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 1091 tools/crm_simulate.c out->begin_list(out, NULL, NULL, "Transition Summary"); out 1100 tools/crm_simulate.c out->end_list(out); out 1108 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 1115 tools/crm_simulate.c if (!out->is_quiet(out)) { out 1118 tools/crm_simulate.c PCMK__OUTPUT_SPACER_IF(out, printed == pcmk_rc_ok); out 1119 tools/crm_simulate.c out->begin_list(out, NULL, NULL, "Revised Cluster Status"); out 1131 tools/crm_simulate.c out->end_list(out); out 1181 tools/crm_simulate.c if (out != NULL) { out 1182 tools/crm_simulate.c out->finish(out, exit_code, true, NULL); out 1183 tools/crm_simulate.c pcmk__output_free(out); out 118 tools/crm_verify.c pcmk__output_t *out = NULL; out 133 tools/crm_verify.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); out 142 tools/crm_verify.c out->version(out, false); out 146 tools/crm_verify.c pcmk__register_lib_messages(out); out 231 tools/crm_verify.c out->err(out, "The cluster will NOT be able to use this configuration.\n" out 243 tools/crm_verify.c data_set->priv = out; out 298 tools/crm_verify.c if (out != NULL) { out 299 tools/crm_verify.c out->finish(out, exit_code, true, NULL); out 300 tools/crm_verify.c pcmk__output_free(out); out 187 tools/crmadmin.c pcmk__output_t *out = NULL; out 202 tools/crmadmin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); out 210 tools/crmadmin.c pcmk__register_lib_messages(out); out 212 tools/crmadmin.c out->quiet = args->quiet; out 219 tools/crmadmin.c out->version(out, false); out 224 tools/crmadmin.c out->err(out, "Cluster-wide health option not supported"); out 229 tools/crmadmin.c out->err(out, "error: Must specify a command option"); out 236 tools/crmadmin.c out->err(out, "%s", help); out 244 tools/crmadmin.c rc = pcmk__controller_status(out, options.optarg, options.timeout); out 247 tools/crmadmin.c rc = pcmk__pacemakerd_status(out, options.ipc_name, options.timeout); out 250 tools/crmadmin.c rc = pcmk__list_nodes(out, options.optarg, options.BASH_EXPORT); out 253 tools/crmadmin.c rc = pcmk__designated_controller(out, options.timeout); out 261 tools/crmadmin.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); out 270 tools/crmadmin.c pcmk__output_and_clear_error(error, out); out 272 tools/crmadmin.c if (out != NULL) { out 273 tools/crmadmin.c out->finish(out, exit_code, true, NULL); out 274 tools/crmadmin.c pcmk__output_free(out); out 348 tools/stonith_admin.c pcmk__output_t *out = NULL; out 365 tools/stonith_admin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); out 373 tools/stonith_admin.c stonith__register_messages(out); out 376 tools/stonith_admin.c out->version(out, false); out 477 tools/stonith_admin.c out->err(out, "%s", help); out 486 tools/stonith_admin.c out->err(out, "Please specify an agent to query using -a,--agent [value]"); out 487 tools/stonith_admin.c out->err(out, "%s", help); out 493 tools/stonith_admin.c out->quiet = args->quiet; out 502 tools/stonith_admin.c out->err(out, "Could not connect to fencer: %s", pcmk_strerror(rc)); out 509 tools/stonith_admin.c rc = pcmk__fence_installed(out, st, options.timeout*1000); out 511 tools/stonith_admin.c out->err(out, "Failed to list installed devices: %s", pcmk_strerror(rc)); out 517 tools/stonith_admin.c rc = pcmk__fence_registered(out, st, target, options.timeout*1000); out 519 tools/stonith_admin.c out->err(out, "Failed to list registered devices: %s", pcmk_strerror(rc)); out 533 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); out 535 tools/stonith_admin.c out->err(out, "Couldn't list targets: %s", pcmk_strerror(rc)); out 560 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); out 562 tools/stonith_admin.c out->err(out, "Can't get fence agent meta-data: %s", pcmk_strerror(rc)); out 588 tools/stonith_admin.c rc = pcmk__fence_last(out, target, options.as_nodeid); out 592 tools/stonith_admin.c rc = pcmk__fence_history(out, st, target, options.timeout*1000, args->verbosity, out 598 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params, out 610 tools/stonith_admin.c pcmk__output_and_clear_error(error, out); out 612 tools/stonith_admin.c if (out != NULL) { out 613 tools/stonith_admin.c out->finish(out, exit_code, true, NULL); out 614 tools/stonith_admin.c pcmk__output_free(out);